ARM: dts: imx53-ppd: use PMIC's TSI pins in adc mode
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 15 Jan 2018 14:28:20 +0000 (15:28 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 12 Feb 2018 13:13:10 +0000 (21:13 +0800)
PPD uses the PMIC's TSI pins in general purpose ADC mode.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx53-ppd.dts

index 123297da43a795ee180ad58db692ed3d9315721e..57730ddfe000e0969298a9cab032084a07a56160 100644 (file)
                enable-active-high;
        };
 
+       reg_tsiref: regulator-tsiref {
+               compatible = "regulator-fixed";
+               regulator-name = "tsiref";
+               regulator-min-microvolt = <2500000>;
+               regulator-max-microvolt = <2500000>;
+               regulator-always-on;
+       };
+
        pwm_bl: backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm2 0 50000>;
                interrupt-parent = <&gpio3>;
                interrupts = <12 0x8>;
                spi-max-frequency = <1000000>;
+               dlg,tsi-as-adc;
+               tsiref-supply = <&reg_tsiref>;
 
                regulators {
                        buck1_reg: buck1 {