From e88567c0efb1441da3184509fe91dfe1213434c8 Mon Sep 17 00:00:00 2001 From: Deokgyu Yang Date: Thu, 2 Apr 2020 10:14:19 +0900 Subject: [PATCH] ODROID-C4: arm64/dts: Add hktft32 node to support HK 3.2 inch touchscreen shield Signed-off-by: Deokgyu Yang Change-Id: Ide22f905ac50efcfaa6756dc8bb922ff84bfa62e --- .../boot/dts/amlogic/meson64_odroidc4.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts index 5de325a56f3e..47e70d61409b 100644 --- a/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts +++ b/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts @@ -907,4 +907,32 @@ linux,wakeup; }; + + hktft32@0 { + status = "disabled"; + compatible = "odroid,hktft32"; + reg = <0>; + pinctrl-names = "hktft32"; + pinctrl-0 = <&hktft32_pins>; + + spi-max-frequency = <40000000>; + rotate = <90>; + bgr; + backlight; + fps = <20>; + bpp = <16>; + reset-gpios = <&gpio GPIOX_4 GPIO_ACTIVE_LOW>; + dc-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>; + debug = <0>; + + hktft32_pins: hktft32_pins { + mux { + groups = "GPIOX_4", + "GPIOX_7"; + function = "gpio_periphs"; + output-high; + drive-strength = <3>; + }; + }; + }; };