Skip to content

Commit afca68d

Browse files
broonienoglitch
authored andcommitted
ARM: dts: at91: Describe regulators on at91sam9g20ek
The at91sam9g20ek has no software controllable regulators, only some fixed discrete regulators, but they are there and currently the wm8731 driver does try to use them. Show the supplies in the DT and map them for the wm8731 so things start up cleanly. Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20220404102806.581374-3-broonie@kernel.org
1 parent 0e486fe commit afca68d

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

arch/arm/boot/dts/at91sam9g20ek_common.dtsi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
24c512@50 {
215215
compatible = "atmel,24c512";
216216
reg = <0x50>;
217+
vcc-supply = <&reg_3v3>;
217218
};
218219

219220
wm8731: wm8731@1b {
@@ -225,6 +226,11 @@
225226
clock-names = "mclk";
226227
assigned-clocks = <&pmc PMC_TYPE_SYSTEM 8>;
227228
assigned-clock-rates = <12000000>;
229+
230+
HPVDD-supply = <&vcc_dac>;
231+
AVDD-supply = <&vcc_dac>;
232+
DCVDD-supply = <&reg_3v3>;
233+
DBVDD-supply = <&reg_3v3>;
228234
};
229235
};
230236

@@ -260,4 +266,35 @@
260266
atmel,ssc-controller = <&ssc0>;
261267
atmel,audio-codec = <&wm8731>;
262268
};
269+
270+
reg_5v: fixedregulator0 {
271+
compatible = "regulator-fixed";
272+
regulator-name = "5V";
273+
regulator-min-microvolt = <5000000>;
274+
regulator-max-microvolt = <5000000>;
275+
};
276+
277+
reg_3v3: fixedregulator1 {
278+
compatible = "regulator-fixed";
279+
regulator-name = "3V3";
280+
vin-supply = <&reg_5v>;
281+
regulator-min-microvolt = <3300000>;
282+
regulator-max-microvolt = <3300000>;
283+
};
284+
285+
reg_1v: fixedregulator2 {
286+
compatible = "regulator-fixed";
287+
regulator-name = "1V";
288+
vin-supply = <&reg_5v>;
289+
regulator-min-microvolt = <1000000>;
290+
regulator-max-microvolt = <1000000>;
291+
};
292+
293+
vcc_dac: fixedregulator3 {
294+
compatible = "regulator-fixed";
295+
regulator-name = "VCC_DAC";
296+
vin-supply = <&reg_3v3>;
297+
regulator-min-microvolt = <3300000>;
298+
regulator-max-microvolt = <3300000>;
299+
};
263300
};

0 commit comments

Comments
 (0)