~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/sound/mt8186-mt6366-rt1019-rt5682s.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/sound/mt8186-mt6366-rt1019-rt5682s.yaml (Architecture i386) and /Documentation/devicetree/bindings/sound/mt8186-mt6366-rt1019-rt5682s.yaml (Architecture mips)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/sound/mt818      4 $id: http://devicetree.org/schemas/sound/mt8186-mt6366-rt1019-rt5682s.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Mediatek MT8186 with MT6366, RT1019 and      7 title: Mediatek MT8186 with MT6366, RT1019 and RT5682S ASoC sound card driver
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Jiaxin Yu <jiaxin.yu@mediatek.com>              10   - Jiaxin Yu <jiaxin.yu@mediatek.com>
 11                                                    11 
 12 description:                                       12 description:
 13   This binding describes the MT8186 sound card     13   This binding describes the MT8186 sound card.
 14                                                    14 
 15 allOf:                                             15 allOf:
 16   - $ref: sound-card-common.yaml#                  16   - $ref: sound-card-common.yaml#
 17                                                    17 
 18 properties:                                        18 properties:
 19   compatible:                                      19   compatible:
 20     enum:                                          20     enum:
 21       - mediatek,mt8186-mt6366-rt1019-rt5682s-     21       - mediatek,mt8186-mt6366-rt1019-rt5682s-sound
 22       - mediatek,mt8186-mt6366-rt5682s-max9836     22       - mediatek,mt8186-mt6366-rt5682s-max98360-sound
 23       - mediatek,mt8186-mt6366-rt5650-sound        23       - mediatek,mt8186-mt6366-rt5650-sound
 24                                                    24 
 25   audio-routing:                                   25   audio-routing:
 26     $ref: /schemas/types.yaml#/definitions/non     26     $ref: /schemas/types.yaml#/definitions/non-unique-string-array
 27     description:                                   27     description:
 28       A list of the connections between audio      28       A list of the connections between audio components. Each entry is a
 29       pair of strings, the first being the con     29       pair of strings, the first being the connection's sink, the second
 30       being the connection's source.               30       being the connection's source.
 31       Valid names could be the input or output     31       Valid names could be the input or output widgets of audio components,
 32       power supplies, MicBias of codec and the     32       power supplies, MicBias of codec and the software switch.
 33     minItems: 2                                    33     minItems: 2
 34     items:                                         34     items:
 35       enum:                                        35       enum:
 36         # Sinks                                    36         # Sinks
 37         - HDMI1                                    37         - HDMI1
 38         - Headphone                                38         - Headphone
 39         - IN1P                                     39         - IN1P
 40         - IN1N                                     40         - IN1N
 41         - Line Out                                 41         - Line Out
 42         - Speakers                                 42         - Speakers
 43                                                    43 
 44         # Sources                                  44         # Sources
 45         - Headset Mic                              45         - Headset Mic
 46         - HPOL                                     46         - HPOL
 47         - HPOR                                     47         - HPOR
 48         - Speaker                                  48         - Speaker
 49         - SPOL                                     49         - SPOL
 50         - SPOR                                     50         - SPOR
 51         - TX                                       51         - TX
 52                                                    52 
 53   mediatek,platform:                               53   mediatek,platform:
 54     $ref: /schemas/types.yaml#/definitions/pha     54     $ref: /schemas/types.yaml#/definitions/phandle
 55     description: The phandle of MT8186 ASoC pl     55     description: The phandle of MT8186 ASoC platform.
 56                                                    56 
 57   dmic-gpios:                                      57   dmic-gpios:
 58     maxItems: 1                                    58     maxItems: 1
 59     description:                                   59     description:
 60       dmic-gpios optional prop for switching b     60       dmic-gpios optional prop for switching between two DMICs.
 61       Ex, the GPIO can control a MUX HW compon     61       Ex, the GPIO can control a MUX HW component to select
 62       dmic clk and data form a Front or Rear d     62       dmic clk and data form a Front or Rear dmic.
 63                                                    63 
 64   headset-codec:                                   64   headset-codec:
 65     type: object                                   65     type: object
 66     deprecated: true                               66     deprecated: true
 67     additionalProperties: false                    67     additionalProperties: false
 68     properties:                                    68     properties:
 69       sound-dai:                                   69       sound-dai:
 70         maxItems: 1                                70         maxItems: 1
 71     required:                                      71     required:
 72       - sound-dai                                  72       - sound-dai
 73                                                    73 
 74   playback-codecs:                                 74   playback-codecs:
 75     type: object                                   75     type: object
 76     deprecated: true                               76     deprecated: true
 77     additionalProperties: false                    77     additionalProperties: false
 78     properties:                                    78     properties:
 79       sound-dai:                                   79       sound-dai:
 80         items:                                     80         items:
 81           - description: phandle of dp codec       81           - description: phandle of dp codec
 82           - description: phandle of l channel      82           - description: phandle of l channel speaker codec
 83           - description: phandle of r channel      83           - description: phandle of r channel speaker codec
 84         minItems: 2                                84         minItems: 2
 85     required:                                      85     required:
 86       - sound-dai                                  86       - sound-dai
 87                                                    87 
 88   mediatek,adsp:                                   88   mediatek,adsp:
 89     $ref: /schemas/types.yaml#/definitions/pha     89     $ref: /schemas/types.yaml#/definitions/phandle
 90     description: The phandle of MT8186 ADSP pl     90     description: The phandle of MT8186 ADSP platform.
 91                                                    91 
 92   mediatek,dai-link:                               92   mediatek,dai-link:
 93     $ref: /schemas/types.yaml#/definitions/str     93     $ref: /schemas/types.yaml#/definitions/string-array
 94     description:                                   94     description:
 95       A list of the desired dai-links in the s     95       A list of the desired dai-links in the sound card. Each entry is a
 96       name defined in the machine driver.          96       name defined in the machine driver.
 97                                                    97 
 98 patternProperties:                                 98 patternProperties:
 99   ".*-dai-link$":                                  99   ".*-dai-link$":
100     type: object                                  100     type: object
101     additionalProperties: false                   101     additionalProperties: false
102     description:                                  102     description:
103       Container for dai-link level properties     103       Container for dai-link level properties and CODEC sub-nodes.
104                                                   104 
105     properties:                                   105     properties:
106       link-name:                                  106       link-name:
107         description: Indicates dai-link name a    107         description: Indicates dai-link name and PCM stream name
108         enum: [ I2S0, I2S1, I2S2, I2S3 ]          108         enum: [ I2S0, I2S1, I2S2, I2S3 ]
109                                                   109 
110       codec:                                      110       codec:
111         description: Holds subnode which indic    111         description: Holds subnode which indicates codec dai.
112         type: object                              112         type: object
113         additionalProperties: false               113         additionalProperties: false
114         properties:                               114         properties:
115           sound-dai:                              115           sound-dai:
116             minItems: 1                           116             minItems: 1
117             maxItems: 2                           117             maxItems: 2
118         required:                                 118         required:
119           - sound-dai                             119           - sound-dai
120                                                   120 
121       dai-format:                                 121       dai-format:
122         description: audio format                 122         description: audio format
123         enum: [ i2s, right_j, left_j, dsp_a, d    123         enum: [ i2s, right_j, left_j, dsp_a, dsp_b ]
124                                                   124 
125       mediatek,clk-provider:                      125       mediatek,clk-provider:
126         $ref: /schemas/types.yaml#/definitions    126         $ref: /schemas/types.yaml#/definitions/string
127         description: Indicates dai-link clock     127         description: Indicates dai-link clock master.
128         enum: [ cpu, codec ]                      128         enum: [ cpu, codec ]
129                                                   129 
130     required:                                     130     required:
131       - link-name                                 131       - link-name
132                                                   132 
133 unevaluatedProperties: false                      133 unevaluatedProperties: false
134                                                   134 
135 required:                                         135 required:
136   - compatible                                    136   - compatible
137   - mediatek,platform                             137   - mediatek,platform
138                                                   138 
139 # Disallow legacy properties if xxx-dai-link n    139 # Disallow legacy properties if xxx-dai-link nodes are specified
140 if:                                               140 if:
141   not:                                            141   not:
142     patternProperties:                            142     patternProperties:
143       ".*-dai-link$": false                       143       ".*-dai-link$": false
144 then:                                             144 then:
145   properties:                                     145   properties:
146     headset-codec: false                          146     headset-codec: false
147     speaker-codecs: false                         147     speaker-codecs: false
148                                                   148 
149 examples:                                         149 examples:
150   - |                                             150   - |
151     #include <dt-bindings/gpio/gpio.h>            151     #include <dt-bindings/gpio/gpio.h>
152                                                   152 
153     sound: mt8186-sound {                         153     sound: mt8186-sound {
154         compatible = "mediatek,mt8186-mt6366-r    154         compatible = "mediatek,mt8186-mt6366-rt1019-rt5682s-sound";
155         model = "mt8186_rt1019_rt5682s";          155         model = "mt8186_rt1019_rt5682s";
156         pinctrl-names = "aud_clk_mosi_off",       156         pinctrl-names = "aud_clk_mosi_off",
157                         "aud_clk_mosi_on",        157                         "aud_clk_mosi_on",
158                         "aud_gpio_dmic_sec";      158                         "aud_gpio_dmic_sec";
159         pinctrl-0 = <&aud_clk_mosi_off>;          159         pinctrl-0 = <&aud_clk_mosi_off>;
160         pinctrl-1 = <&aud_clk_mosi_on>;           160         pinctrl-1 = <&aud_clk_mosi_on>;
161         pinctrl-2 = <&aud_gpio_dmic_sec>;         161         pinctrl-2 = <&aud_gpio_dmic_sec>;
162         mediatek,platform = <&afe>;               162         mediatek,platform = <&afe>;
163                                                   163 
164         dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH    164         dmic-gpios = <&pio 23 GPIO_ACTIVE_HIGH>;
165                                                   165 
166         audio-routing =                           166         audio-routing =
167                 "Headphone", "HPOL",              167                 "Headphone", "HPOL",
168                 "Headphone", "HPOR",              168                 "Headphone", "HPOR",
169                 "IN1P", "Headset Mic",            169                 "IN1P", "Headset Mic",
170                 "Speakers", "Speaker",            170                 "Speakers", "Speaker",
171                 "HDMI1", "TX";                    171                 "HDMI1", "TX";
172                                                   172 
173         hs-playback-dai-link {                    173         hs-playback-dai-link {
174                 link-name = "I2S0";               174                 link-name = "I2S0";
175                 dai-format = "i2s";               175                 dai-format = "i2s";
176                 mediatek,clk-provider = "cpu";    176                 mediatek,clk-provider = "cpu";
177                 codec {                           177                 codec {
178                         sound-dai = <&rt5682s     178                         sound-dai = <&rt5682s 0>;
179                 };                                179                 };
180         };                                        180         };
181                                                   181 
182         hs-capture-dai-link {                     182         hs-capture-dai-link {
183                 link-name = "I2S1";               183                 link-name = "I2S1";
184                 dai-format = "i2s";               184                 dai-format = "i2s";
185                 mediatek,clk-provider = "cpu";    185                 mediatek,clk-provider = "cpu";
186                 codec {                           186                 codec {
187                         sound-dai = <&rt5682s     187                         sound-dai = <&rt5682s 0>;
188                 };                                188                 };
189         };                                        189         };
190                                                   190 
191         spk-hdmi-playback-dai-link {              191         spk-hdmi-playback-dai-link {
192                 link-name = "I2S3";               192                 link-name = "I2S3";
193                 dai-format = "i2s";               193                 dai-format = "i2s";
194                 mediatek,clk-provider = "cpu";    194                 mediatek,clk-provider = "cpu";
195                 codec {                           195                 codec {
196                         sound-dai = <&it6505dp    196                         sound-dai = <&it6505dptx>, <&rt1019p>;
197                 };                                197                 };
198         };                                        198         };
199     };                                            199     };
200                                                   200 
201 ...                                               201 ...
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php