← Documents Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / Sound

Google SC7180 Trogdor sound card

LPASS 기반 Trogdor/CoachZ card의 CPU·codec DAI link와 DMIC switch를 설명합니다.

Source pathDocumentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

google,sc7180-trogdor.yaml:1-137

NXP XCVR와 Google Chameleon·ChromeOS EC·SC7180 audio 구성의 memory, interrupt, DAI graph를 먼저 해설하고, 접을 수 있는 영어 원문 전체와 source path·symbol·줄 좌표를 보존한 한국어 전문 번역을 제공합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/google,sc7180-trogdor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Google SC7180-Trogdor ASoC sound card driver
8
9 maintainers:
10 - Rohit kumar <[email protected]>
11 - Cheng-Yi Chiang <[email protected]>
12
13 description:
14 This binding describes the SC7180 sound card which uses LPASS for audio.
15
16 allOf:
17 - $ref: sound-card-common.yaml#
18
19 properties:
20 compatible:
21 enum:
22 - google,sc7180-trogdor
23 - google,sc7180-coachz
24
25 "#address-cells":
26 const: 1
27
28 "#size-cells":
29 const: 0
30
31 dmic-gpios:
32 maxItems: 1
33 description: GPIO for switching between DMICs
34
35 patternProperties:
36 "^dai-link(@[0-9])?$":
37 description:
38 Each subnode represents a dai link. Subnodes of each dai links would be
39 cpu/codec dais.
40
41 type: object
42
43 properties:
44 link-name:
45 description: Indicates dai-link name and PCM stream name.
46 $ref: /schemas/types.yaml#/definitions/string
47 maxItems: 1
48
49 reg:
50 maxItems: 1
51 description: dai link address.
52
53 cpu:
54 description: Holds subnode which indicates cpu dai.
55 type: object
56 additionalProperties: false
57
58 properties:
59 sound-dai:
60 maxItems: 1
61
62 codec:
63 description: Holds subnode which indicates codec dai.
64 type: object
65 additionalProperties: false
66
67 properties:
68 sound-dai:
69 minItems: 1
70 maxItems: 4
71
72 required:
73 - link-name
74 - cpu
75 - codec
76
77 additionalProperties: false
78
79 required:
80 - compatible
81 - "#address-cells"
82 - "#size-cells"
83
84 unevaluatedProperties: false
85
86 examples:
87
88 - |
89 sound {
90 compatible = "google,sc7180-trogdor";
91 model = "sc7180-rt5682-max98357a-2mic";
92
93 audio-routing =
94 "Headphone Jack", "HPOL",
95 "Headphone Jack", "HPOR";
96
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 dmic-gpios = <&tlmm 86 0>;
101
102 dai-link@0 {
103 link-name = "MultiMedia0";
104 reg = <0>;
105 cpu {
106 sound-dai = <&lpass_cpu 0>;
107 };
108
109 codec {
110 sound-dai = <&alc5682 0>;
111 };
112 };
113
114 dai-link@1 {
115 link-name = "MultiMedia1";
116 reg = <1>;
117 cpu {
118 sound-dai = <&lpass_cpu 1>;
119 };
120
121 codec {
122 sound-dai = <&max98357a>;
123 };
124 };
125
126 dai-link@2 {
127 link-name = "MultiMedia2";
128 reg = <2>;
129 cpu {
130 sound-dai = <&lpass_hdmi 0>;
131 };
132
133 codec {
134 sound-dai = <&msm_dp>;
135 };
136 };
137 };
138

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

SC7180 Trogdor ASoC card

1-18

이 binding은 audio에 LPASS를 사용하는 Google SC7180 sound card를 설명합니다. `sound-card-common.yaml#`을 상속하며 schema ID는 `http://devicetree.org/schemas/sound/google,sc7180-trogdor.yaml#`입니다.

Board compatible과 DMIC switch

19-34

`compatible`은 `google,sc7180-trogdor` 또는 `google,sc7180-coachz`입니다. `#address-cells`는 1, `#size-cells`는 0입니다. `dmic-gpios`는 DMIC 사이를 전환하는 GPIO 한 항목입니다.

Codec DAI와 link 필수 속성

62-78

`codec` subnode는 codec DAI를 나타내며 추가 속성을 허용하지 않습니다. `sound-dai`는 1~4개입니다. 각 DAI link에는 `link-name`, `cpu`, `codec`이 필수이고 link node에도 정의되지 않은 속성을 허용하지 않습니다.

Card 필수 속성과 확장 제한

79-85

Card의 필수 속성은 `compatible`, `#address-cells`, `#size-cells`입니다. 공통 sound card schema 평가 뒤 남는 속성은 허용하지 않습니다.

Trogdor 세 DAI link 예제

86-137

예제 `sc7180-rt5682-max98357a-2mic` card는 GPIO 86으로 DMIC을 전환합니다. `MultiMedia0`은 LPASS CPU 0과 ALC5682, `MultiMedia1`은 LPASS CPU 1과 MAX98357A, `MultiMedia2`는 LPASS HDMI 0과 DisplayPort codec `msm_dp`를 연결합니다.

- |
  sound {
      compatible = "google,sc7180-trogdor";
      model = "sc7180-rt5682-max98357a-2mic";

      audio-routing =
                  "Headphone Jack", "HPOL",
                  "Headphone Jack", "HPOR";

      #address-cells = <1>;
      #size-cells = <0>;

      dmic-gpios = <&tlmm 86 0>;

      dai-link@0 {
          link-name = "MultiMedia0";
          reg = <0>;
          cpu {
              sound-dai = <&lpass_cpu 0>;
          };

          codec {
              sound-dai = <&alc5682 0>;
          };
      };

      dai-link@1 {
          link-name = "MultiMedia1";
          reg = <1>;
          cpu {
              sound-dai = <&lpass_cpu 1>;
          };

          codec {
              sound-dai = <&max98357a>;
          };
      };

      dai-link@2 {
          link-name = "MultiMedia2";
          reg = <2>;
          cpu {
              sound-dai = <&lpass_hdmi 0>;
          };

          codec {
              sound-dai = <&msm_dp>;
          };
      };
  };