From e9277b7e857a4868136bc0b19c61a3b802acdd7d Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 29 Apr 2020 09:55:07 +0800 Subject: [PATCH 95/97] arch: arm64: dts: add gt9xx support Signed-off-by: brian --- .../dts/rockchip/overlays-rockpi4/Makefile | 1 + .../boot/dts/rockchip/overlays-rockpi4/README | 4 ++++ .../overlays-rockpi4/gt9xx-overlay.dts | 18 ++++++++++++++++++ .../rockchip/overlays-rockpi4/hw_intfc.conf | 3 +++ .../boot/dts/rockchip/rockpi-4-linux.dtsi | 10 ++++++++++ 5 files changed, 36 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/overlays-rockpi4/gt9xx-overlay.dts diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile index 7f063a5258b1..a37ba5a6f4c9 100644 --- a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/Makefile @@ -14,6 +14,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ hifiberry-dac.dtbo \ hifiberry-dacplus.dtbo \ raspberrypi-7-inch-lcd.dtbo \ + gt9xx.dtbo \ cpufreq.dtbo \ imx219.dtbo \ ov5647.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/README b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/README index 24b01d82a341..87b80b27c73d 100644 --- a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/README +++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/README @@ -180,3 +180,7 @@ Name: w1-gpio4-30 Info: Overlay for activation of 1-wire on GPIO4_D6 for devices such as DS18B20. Load: intfc:dtoverlay=w1-gpio4-30 + +Name: gt9xx +Info: Overlay for activation of gt9xx touchpanel. +Load: intfc:dtoverlay=gt9xx diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/gt9xx-overlay.dts b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/gt9xx-overlay.dts new file mode 100644 index 000000000000..d0583ecd0b1e --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/gt9xx-overlay.dts @@ -0,0 +1,18 @@ +/dts-v1/; +/plugin/; + +/ { + model = "ROCK PI 4B"; + compatible = "rockchip,rockpi","rockchip,rk3399"; + + fragment@0 { + target = <&i2c1>; + + __overlay__ { + gt9xx: gt9xx@14 { + x2y; + status = "okay"; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf index 15661550675d..1f16a4454e46 100644 --- a/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf +++ b/arch/arm64/boot/dts/rockchip/overlays-rockpi4/hw_intfc.conf @@ -56,6 +56,9 @@ intfc:dtoverlay=console-on-ttyS2 #enable raspberry pi official 7 inch LCD support #intfc:dtoverlay=raspberrypi-7-inch-lcd +#enable gt9xx touchpanel +#intfc:dtoverlay=gt9xx + # setting cpu frequency over-2GHz #intfc:dtoverlay=cpufreq -- 2.25.1