Skip to contentSkip to conversation

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

PATCH Superseded Markus Reichl 2 participants 3 messages Nov 17, 2016 – Nov 18, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

---
Tested on X, XU3 and XU4.

---
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi    |  5 +++++
 arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 11 +++++++++++
 2 files changed, 16 insertions(+)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +5 -0
index 8aa19ba..6f26b3d 100644
@@ -478,6 +478,11 @@
 	};
 };
 
+&adc {
+	vdd-supply = <&ldo10_reg>;
+	status = "okay";
+};
+
 &i2c_1 {
 	status = "okay";
 	max98090: max98090@10 {
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +11 -0
index 246d298..a8e1986 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
#1 lore raw

Hi Markus,

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.

---
Tested on X, XU3 and XU4.

---
  arch/arm/boot/dts/exynos4412-odroid-common.dtsi    |  5 +++++
  arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 11 +++++++++++

exynos4412-odroid-common.dtsi is also used on Odroid U3, which doesn't have ADC pins on the external connector, so please move ADC node to exynos4412-odroidx.dts, which is used on X and X2.

Quoted 37 lines
  2 files changed, 16 insertions(+)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +5 -0
index 8aa19ba..6f26b3d 100644
@@ -478,6 +478,11 @@
  	};
  };
 
+&adc {
+	vdd-supply = <&ldo10_reg>;
+	status = "okay";
+};
+
  &i2c_1 {
  	status = "okay";
  	max98090: max98090@10 {
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +5 -0
index 246d298..a8e1986 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>;
  			};

arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi line 309

Quoted 10 lines
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +6 -0
 
+			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>;

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland
#2 lore raw

Hi Marek,

Am 18.11.2016 um 08:01 schrieb Marek Szyprowski:

Quoted 14 lines

Hi Markus,

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.

---
Tested on X, XU3 and XU4.

---
  arch/arm/boot/dts/exynos4412-odroid-common.dtsi    |  5 +++++
  arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 11 +++++++++++
Quoted 4 lines

exynos4412-odroid-common.dtsi is also used on Odroid U3, which doesn't have ADC pins on the external connector, so please move ADC node to exynos4412-odroidx.dts, which is used on X and X2.

Yes, will send V2.

Quoted 38 lines
Quoted 38 lines
  2 files changed, 16 insertions(+)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +4 -0
index 8aa19ba..6f26b3d 100644
@@ -478,6 +478,11 @@
      };
  };
  +&adc {
+    vdd-supply = <&ldo10_reg>;
+    status = "okay";
+};
+
  &i2c_1 {
      status = "okay";
      max98090: max98090@10 {
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +6 -0
index 246d298..a8e1986 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>;
Quoted 8 lines

arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi line 309

Quoted 6 lines
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +3 -0
+                regulator-max-microvolt = <1800000>;
+            };
+
              ldo5_reg: LDO5 {
                  regulator-name = "vdd_ldo5";
                  regulator-min-microvolt = <1800000>;

Best regards

Thanks for looking at,
--
Markus