UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 29 Jun 2016 07:01:49 +0000 (15:01 +0800)
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>
(cherry picked from git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git
v4.8-armsoc/dts32 commit 26f5e19dfb07de627112074721f254482f941dab)

Change-Id: I12ce9b1e2fb2c740bef100a22d746d5e128253e6
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
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";
 };