Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 --- $id: http://devicetree.org/schemas/mfd/cirrus,madera.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Cirrus Logic Madera class audio CODECs Multi-Functional Device maintainers: - patches@opensource.cirrus.com description: | These devices are audio SoCs with extensive digital capabilities and a range of analogue I/O. See also the child driver bindings in: bindings/pinctrl/cirrus,madera.yaml bindings/regulator/wlf,arizona.yaml bindings/sound/cirrus,madera.yaml allOf: - $ref: /schemas/pinctrl/cirrus,madera.yaml# - $ref: /schemas/regulator/wlf,arizona.yaml# - $ref: /schemas/sound/cirrus,madera.yaml# - if: properties: compatible: contains: enum: - cirrus,cs47l85 - wlf,wm1840 then: properties: SPKVDDL-supply: description: Left speaker driver power supply. SPKVDDR-supply: description: Right speaker driver power supply. required: - SPKVDDL-supply - SPKVDDR-supply else: required: - DCVDD-supply - if: properties: compatible: contains: enum: - cirrus,cs47l15 - cirrus,cs47l35 then: properties: SPKVDD-supply: description: Mono speaker driver power supply. required: - SPKVDD-supply - if: properties: compatible: contains: enum: - cirrus,cs47l35 - cirrus,cs47l85 - cirrus,cs47l90 - cirrus,cs47l91 - wlf,wm1840 then: properties: DBVDD2-supply: description: Databus power supply. required: - DBVDD2-supply - if: properties: compatible: contains: enum: - cirrus,cs47l85 - cirrus,cs47l90 - cirrus,cs47l91 - wlf,wm1840 then: properties: DBVDD3-supply: description: Databus power supply. DBVDD4-supply: description: Databus power supply. - if: properties: compatible: contains: enum: - cirrus,cs47l15 then: required: - MICVDD-supply else: properties: CPVDD2-supply: description: Secondary charge pump power supply. required: - CPVDD2-supply properties: compatible: enum: - cirrus,cs47l15 - cirrus,cs47l35 - cirrus,cs47l85 - cirrus,cs47l90 - cirrus,cs47l91 - cirrus,cs42l92 - cirrus,cs47l92 - cirrus,cs47l93 - cirrus,wm1840 reg: maxItems: 1 gpio-controller: true '#gpio-cells': description: The first cell is the pin number. The second cell is reserved for future use and must be zero const: 2 interrupt-controller: true '#interrupt-cells': description: The first cell is the IRQ number. The second cell is the flags, encoded as the trigger masks from bindings/interrupt-controller/interrupts.txt const: 2 interrupts: maxItems: 1 reset-gpios: description: One entry specifying the GPIO controlling /RESET. As defined in bindings/gpio.txt. Although optional, it is strongly recommended to use a hardware reset. maxItems: 1 clocks: description: Should reference the clocks supplied on MCLK1, MCLK2 and MCLK3. minItems: 1 maxItems: 3 clock-names: description: | May contain up to three strings: "mclk1" For the clock supplied on MCLK1, recommended to be a high quality audio reference clock. "mclk2" For the clock supplied on MCLK2, required to be an always on 32k clock. "mclk3" For the clock supplied on MCLK3. oneOf: - items: - const: mclk1 - items: - const: mclk2 - items: - const: mclk3 - items: - const: mclk1 - const: mclk2 - items: - const: mclk1 - const: mclk3 - items: - const: mclk2 - const: mclk3 - items: - const: mclk1 - const: mclk2 - const: mclk3 AVDD-supply: description: Analogue power supply. DBVDD1-supply: description: Databus power supply. CPVDD1-supply: description: Charge pump power supply. DCVDD-supply: description: Digital power supply, optional on CS47L85, WM1840 where it can be supplied internally. MICVDD-supply: description: Microphone power supply, normally supplied internally except on cs47l24, wm1831 where it is mandatory. required: - compatible - gpio-controller - '#gpio-cells' - interrupt-controller - '#interrupt-cells' - interrupts - AVDD-supply - DBVDD1-supply - CPVDD1-supply unevaluatedProperties: false examples: - | #include <dt-bindings/sound/madera.h> i2c@e0004000 { #address-cells = <1>; #size-cells = <0>; reg = <0xe0004000 0x1000>; cs47l85: codec@1a { compatible = "cirrus,cs47l85"; reg = <0x1a>; reset-gpios = <&gpio 0>; wlf,ldoena = <&gpio 1>; interrupt-controller; #interrupt-cells = <2>; interrupts = <4 1 0>; gpio-controller; #gpio-cells = <2>; AVDD-supply = <&vdd1v8>; DBVDD1-supply = <&vdd1v8>; DBVDD2-supply = <&vdd1v8>; DBVDD3-supply = <&vdd1v8>; DBVDD4-supply = <&vdd1v8>; CPVDD1-supply = <&vdd1v8>; CPVDD2-supply = <&vdd1v2>; SPKVDDL-supply = <&vdd5v>; SPKVDDR-supply = <&vdd5v>; clocks = <&clks 0>, <&clks 1>, <&clks 2>; clock-names = "mclk1", "mclk2", "mclk3"; cirrus,dmic-ref = <0 0 MADERA_DMIC_REF_MICBIAS1>; cirrus,inmode = < MADERA_INMODE_SE MADERA_INMODE_SE MADERA_INMODE_SE MADERA_INMODE_SE MADERA_INMODE_DIFF MADERA_INMODE_DIFF >; cirrus,max-channels-clocked = <2 0 0>; pinctrl-names = "default"; pinctrl-0 = <&pinsettings>; pinsettings: pin-settings { aif1-pins { groups = "aif1"; function = "aif1"; bias-bus-hold; }; aif2-pins { groups = "aif2"; function = "aif2"; bias-bus-hold; }; aif3-pins { groups = "aif3"; function = "aif3"; bias-bus-hold; }; }; }; }; |