ARM: dts: s5pv210: Enable ADC on Aries boards
authorJonathan Bakker <xc-racer2@live.ca>
Fri, 1 May 2020 23:50:15 +0000 (16:50 -0700)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 4 May 2020 15:13:04 +0000 (17:13 +0200)
On Aries boards, the ADC is used for things such as jack detection
and battery temperature monitoring.  It is supplied by LDO4 of max8998,
so only enable that regulator when we are actually using the ADC.

Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/s5pv210-aries.dtsi

index 945259aa5d55a772911724d10232ef135b36ad7a..9f4694d712032b6d3924481fee70d4b182a6461f 100644 (file)
                                        regulator-name = "VADC_3.3V";
                                        regulator-min-microvolt = <3300000>;
                                        regulator-max-microvolt = <3300000>;
-                                       regulator-always-on;
 
                                        regulator-state-mem {
                                                regulator-off-in-suspend;
        };
 };
 
+&adc {
+       vdd-supply = <&ldo4_reg>;
+
+       status = "okay";
+};
+
 &fimd {
        pinctrl-names = "default";
        pinctrl-0 = <&lcd_clk &lcd_data24>;