lkml.org 
[lkml]   [2020]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 10/13] arm: dts: s5pv210: aries: Enable ADC node
Date
On aries boards, the ADC is used for things such as jack detection
and battery temperature monitoring. It is connected to ldo4 of max8998,
so only enable that regulator when we are actually using the ADC.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
---
arch/arm/boot/dts/s5pv210-aries.dtsi | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi
index f30bdcb9c083..a103ddb0d720 100644
--- a/arch/arm/boot/dts/s5pv210-aries.dtsi
+++ b/arch/arm/boot/dts/s5pv210-aries.dtsi
@@ -193,11 +193,6 @@
regulator-name = "VADC_3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
- regulator-always-on;
-
- regulator-state-mem {
- regulator-off-in-suspend;
- };
};

ldo5_reg: LDO5 {
@@ -530,6 +525,12 @@
};
};

+&adc {
+ vdd-supply = <&ldo4_reg>;
+
+ status = "okay";
+};
+
&fimd {
pinctrl-names = "default";
pinctrl-0 = <&lcd_clk &lcd_data24>;
--
2.20.1
\
 
 \ /
  Last update: 2020-04-26 20:37    [W:0.078 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site