From b98f376ee5d36d7afec50af88c2efc4517e36cbf Mon Sep 17 00:00:00 2001 From: Deokgyu Yang Date: Mon, 18 May 2020 17:33:43 +0900 Subject: [PATCH] ODROID-N2: arm64/dts: Add sx865x node to support HK 3.5 inch touchscreen shield Signed-off-by: Deokgyu Yang Change-Id: Iee5fa7ce0c43faf60fe651799b93bfb505a41378 --- .../boot/dts/amlogic/meson64_odroidn2.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidn2.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidn2.dts index 21ce09f44ebc..8b096c442a7f 100644 --- a/arch/arm64/boot/dts/amlogic/meson64_odroidn2.dts +++ b/arch/arm64/boot/dts/amlogic/meson64_odroidn2.dts @@ -829,6 +829,30 @@ spi-max-frequency = <100000000>; }; + /* SPI 3.2" Touch Screen Define */ + ads7846@1 { + status = "disabled"; + + spi-max-frequency = <1000000>; + + compatible = "ti,ads7846"; + + reg = <1>; + + /* ODROID-N2 Touch interrupt gpio */ + pendown-gpio = <&gpio GPIOX_3 GPIO_ACTIVE_HIGH>; + + ti,swap-xy = <1>; + ti,x-min = /bits/ 16 <0>; + ti,x-max = /bits/ 16 <8000>; + ti,y-min = /bits/ 16 <0>; + ti,y-max = /bits/ 16 <4800>; + ti,x-plate-ohms = /bits/ 16 <40>; + ti,pressure-max = /bits/ 16 <255>; + + linux,wakeup; + }; + hktft32@0 { status = "disabled"; compatible = "odroid,hktft32";