Skip to contentSkip to conversation

ARM: dts: at91: sama5d27_som1_ek: add adc regulators

PATCH Applied Eugen Hristev 2 participants 2 messages Sep 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 42 +++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts +42 -0
index e86e0c0..363a43d 100644
@@ -283,6 +283,13 @@
 				status = "okay";
 			};
 
+			adc: adc at fc030000 {
+				vddana-supply = <&vddana>;
+				vref-supply = <&advref>;
+
+				status = "disabled";
+			};
+
 			pinctrl at fc038000 {
 
 				pinctrl_can1_default: can1_default {
@@ -549,4 +556,39 @@
 			linux,default-trigger = "heartbeat";
 		};
 	};
+
+	vddin_3v3: fixed-regulator-vddin_3v3 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VDDIN_3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+		regulator-boot-on;
+		status = "okay";
+	};
+
+	vddana: fixed-regulator-vddana {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VDDANA";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+		regulator-boot-on;
+		vin-supply = <&vddin_3v3>;
+		status = "okay";
+	};
+
+	advref: fixed-regulator-advref {
+		compatible = "regulator-fixed";
+
+		regulator-name = "advref";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-always-on;
+		regulator-boot-on;
+		vin-supply = <&vddana>;
+		status = "okay";
+	};
 };
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 11 lines · Eugen Hristev

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.

---
 arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 42 +++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com