Skip to content

Commit fae976a

Browse files
committed
ARM: dts: at91: sama5d27_som1_ek: add adc regulators
Add fixed regulators for the ADC. This board does not have a programmable PMIC, but fixed regulators. Adding them to DT so the ADC can probe correctly. Tested-by: Swapna Gurumani <swapna.gurumani@microchip.com> Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
1 parent 74f8d12 commit fae976a

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

arch/arm/boot/dts/at91-sama5d27_som1_ek.dts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@
306306
status = "okay";
307307
};
308308

309+
adc: adc@fc030000 {
310+
vddana-supply = <&vddana>;
311+
vref-supply = <&advref>;
312+
313+
status = "disabled";
314+
};
315+
309316
pinctrl@fc038000 {
310317

311318
pinctrl_can1_default: can1_default {
@@ -572,4 +579,39 @@
572579
linux,default-trigger = "heartbeat";
573580
};
574581
};
582+
583+
vddin_3v3: fixed-regulator-vddin_3v3 {
584+
compatible = "regulator-fixed";
585+
586+
regulator-name = "VDDIN_3V3";
587+
regulator-min-microvolt = <3300000>;
588+
regulator-max-microvolt = <3300000>;
589+
regulator-always-on;
590+
regulator-boot-on;
591+
status = "okay";
592+
};
593+
594+
vddana: fixed-regulator-vddana {
595+
compatible = "regulator-fixed";
596+
597+
regulator-name = "VDDANA";
598+
regulator-min-microvolt = <3300000>;
599+
regulator-max-microvolt = <3300000>;
600+
regulator-always-on;
601+
regulator-boot-on;
602+
vin-supply = <&vddin_3v3>;
603+
status = "okay";
604+
};
605+
606+
advref: fixed-regulator-advref {
607+
compatible = "regulator-fixed";
608+
609+
regulator-name = "advref";
610+
regulator-min-microvolt = <3300000>;
611+
regulator-max-microvolt = <3300000>;
612+
regulator-always-on;
613+
regulator-boot-on;
614+
vin-supply = <&vddana>;
615+
status = "okay";
616+
};
575617
};

0 commit comments

Comments
 (0)