Skip to contentSkip to conversation

ARM: dts: exynos: Add ADCs on 4412 and 5422 based odroid boards.

PATCH Applied Markus Reichl 2 participants 2 messages Nov 18, 2016

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

PATCH v2 1/1 ARM: dts: exynos: Add ADCs on 4412 and 5422 based odroid boards.

Odroid-X, -X2, -XU3 and -XU4 have SOC-ADC routed to an external connector. Enable the ADC for use as iio-device.

---
Changes in V2:
move ADC node from exynos4412-odroid-common.dtsi to exynos4412-odroidx.dts to exclude U3 as pointed to by Marek.

Tested on U3, X, XU3 and XU4.

---
 arch/arm/boot/dts/exynos4412-odroidx.dts           |  5 +++++
 arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 11 +++++++++++
 2 files changed, 16 insertions(+)
arch/arm/boot/dts/exynos4412-odroidx.dts +5 -0
index 61906b3..153a75f 100644
@@ -64,6 +64,11 @@
 	};
 };
 
+&adc {
+	vdd-supply = <&ldo10_reg>;
+	status = "okay";
+};
+
 /* VDDQ for MSHC (eMMC card) */
 &buck8_reg {
 	regulator-name = "BUCK8_VDDQ_MMC4_2.8V";
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +11 -0
index 246d298..9e63328 100644
@@ -147,6 +147,11 @@
 	};
 };
 
+&adc {
+	vdd-supply = <&ldo4_reg>;
+	status = "okay";
+};
+
 &bus_wcore {
 	devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>,
 			<&nocp_mem1_0>, <&nocp_mem1_1>;
@@ -293,6 +298,12 @@
 				regulator-max-microvolt = <1800000>;
 			};
 
+			ldo4_reg: LDO4 {
+				regulator-name = "vdd_adc";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+			};
+
 			ldo5_reg: LDO5 {
 				regulator-name = "vdd_ldo5";
 				regulator-min-microvolt = <1800000>;
Signature · 1 line
2.1.4
maintainer Applied
#1 lore raw
Quoted 9 lines · Markus Reichl

Odroid-X, -X2, -XU3 and -XU4 have SOC-ADC routed to an external connector. Enable the ADC for use as iio-device.

---
Changes in V2:
move ADC node from exynos4412-odroid-common.dtsi to exynos4412-odroidx.dts to exclude U3 as pointed to by Marek.

Quoted 6 lines

Tested on U3, X, XU3 and XU4.

---
 arch/arm/boot/dts/exynos4412-odroidx.dts           |  5 +++++
 arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 11 +++++++++++
 2 files changed, 16 insertions(+)

Thanks, applied.

Best regards,
Krzysztof