From b12c04ecbfc4aede531bd08b51219b73d66b2b39 Mon Sep 17 00:00:00 2001 From: Dongjin Kim Date: Fri, 5 Feb 2021 15:21:25 +0000 Subject: [PATCH 083/109] ODROID-C4: arm64/dts: add device tree overlay for Hardkernel 3.2" LCD Signed-off-by: Dongjin Kim Change-Id: Iaae4a9346c322ae3b7221ec306341c97ab020a05 --- .../dts/amlogic/overlays/odroidc4/Makefile | 1 + .../dts/amlogic/overlays/odroidc4/hktft32.dts | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/hktft32.dts diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile index 31b06704004e..e82456f99f2f 100644 --- a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile +++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile @@ -1,5 +1,6 @@ dtbo-y += \ spi0.dtbo \ + hktft32.dtbo \ hktft35.dtbo targets += $(dtbo-y) diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/hktft32.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/hktft32.dts new file mode 100644 index 000000000000..b4dc1a55862d --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/hktft32.dts @@ -0,0 +1,33 @@ +/dts-v1/; +/plugin/; + +#include +#include + +/ { + fragment@0 { + target = <&spicc0>; + + __overlay__ { + status = "okay"; + + cs-gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>; + + display: display@0 { + #address-cells = <0x1>; + #size-cells = <0x0>; + + status = "okay"; + + compatible = "hardkernel,hktft32"; + reg = <0>; + + spi-max-frequency = <40000000>; + rotation = <90>; + reset-gpios = <&gpio GPIOX_4 GPIO_ACTIVE_HIGH>; + dc-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_HIGH>; + }; + }; + }; +}; + -- 2.25.1