From 813e0ec0d42e9b804eb116e41e1ec6690a36b421 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 0e55dc92234e..5b633b0114ca 100644 --- a/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts +++ b/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts @@ -905,4 +905,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>; + }; + }; + }; };