aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-08-12 16:08:47 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-08-18 11:01:17 +0300
commit3bc78b3a197dd0608954cf8bc13aaece91efbc7c (patch)
tree8413c0724e2ce5d46c6f7009990941c1aa589a8e
parentfc4f312478b64b9c7bb97f7c7d3240fb2cb76c17 (diff)
downloadlinux-dt-3bc78b3a197dd0608954cf8bc13aaece91efbc7c.tar.gz
Add K2G EVM LCD overlay
Add overlay for K2G EVM LCD, including touchscreen. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--Makefile6
-rw-r--r--arch/arm/boot/dts/ti/keystone-k2g-evm-lcd.dtso85
2 files changed, 90 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 520a5b4..9417b05 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,8 @@ dtb_src_arm = \
dra72-evm.dts \
dra72-evm-revc.dts \
dra71-evm.dts \
- dra76-evm.dts
+ dra76-evm.dts \
+ keystone-k2g-evm.dts
dtb_src_arm := $(dtb_src_arm:%=$(LINUX)/arch/arm/boot/dts/%)
@@ -118,6 +119,9 @@ dtb-tests-arm += \
am572x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am572x-idk-touchscreen.dtbo,ti/lcd-osd101t2587.dtbo \
am574x-idk.dtb,ti/am57xx-idk-osd-lcd-common.dtbo,ti/am572x-idk-touchscreen.dtbo,ti/lcd-osd101t2587.dtbo
+dtb-tests-arm += \
+ keystone-k2g-evm.dtb,ti/keystone-k2g-evm-lcd.dtbo
+
dtb-tests-arm64 := \
ti/k3-am654-base-board.dtb,ti/k3-am654-gp.dtbo \
ti/k3-am654-base-board.dtb,ti/k3-am654-evm-hdmi.dtbo \
diff --git a/arch/arm/boot/dts/ti/keystone-k2g-evm-lcd.dtso b/arch/arm/boot/dts/ti/keystone-k2g-evm-lcd.dtso
new file mode 100644
index 0000000..43ac187
--- /dev/null
+++ b/arch/arm/boot/dts/ti/keystone-k2g-evm-lcd.dtso
@@ -0,0 +1,85 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pinctrl/keystone.h>
+
+/dts-v1/;
+/plugin/;
+
+
+/ {
+ fragment@101 {
+ target-path = "/";
+
+ __overlay__ {
+ lcd0: display {
+ compatible = "newhaven,nhd-4.3-480272ef-atxl";
+ label = "lcd";
+
+ backlight = <&lcd_bl>;
+
+ port {
+ lcd_in: endpoint {
+ remote-endpoint = <&dpi_out>;
+ };
+ };
+ };
+
+ lcd_bl: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
+ brightness-levels = <0 32 64 96 128 160 192 224 255>;
+ default-brightness-level = <8>;
+ };
+ };
+ };
+};
+
+&k2g_pinctrl {
+ edt_ft5306_ts_pins: edt_ft5306_ts_pins {
+ pinctrl-single,pins = <
+ K2G_CORE_IOPAD(0x1364) (BUFFER_CLASS_B | PIN_PULLDOWN | MUX_MODE3) /* pr1_pru1_gpo16.gpio1_42 */
+ >;
+ };
+};
+
+&i2c1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ edt-ft5306@38 {
+ status = "okay";
+ compatible = "edt,edt-ft5306", "edt,edt-ft5x06";
+ reg = <0x38>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&edt_ft5306_ts_pins>;
+
+ interrupt-parent = <&gpio1>;
+ interrupts = <42 IRQ_TYPE_EDGE_FALLING>;
+
+ touchscreen-size-x = <480>;
+ touchscreen-size-y = <272>;
+ };
+};
+
+&dss {
+ port {
+ dpi_out: endpoint {
+ remote-endpoint = <&lcd_in>;
+ data-lines = <24>;
+ };
+ };
+};
+
+&sii9022 {
+ status = "disabled";
+};
+
+&hdmi {
+ status = "disabled";
+};