]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: rockchip: enable the tsadc for rk3228 evb
authorCaesar Wang <wxt@rock-chips.com>
Mon, 15 Feb 2016 07:33:33 +0000 (15:33 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 26 Mar 2016 23:54:13 +0000 (00:54 +0100)
This patch enables the tsadc for rk3228 evb board.

The rk3228 evb board uses the CRU to reset the chip since it hasn't the
PMIC to connect it, and TSHUT is low active on evb board.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rk3228-evb.dts

index e3898b8101506b16ed25b3b482fd93c2cac28b05..c75cc41d8c1f222e2aec766359e4b8f9afc7bd67 100644 (file)
        status = "okay";
 };
 
+&tsadc {
+       status = "okay";
+
+       rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
+       rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
+};
+
 &uart2 {
        status = "okay";
 };