aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-03-25 10:34:51 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-03-25 13:47:09 +0200
commit3c9f8c47c3e9695e9eed3c8fab22fcb32664b6e4 (patch)
treea3f09eadfa03d06c4e98f32b448cc302efb27f73
parent4f712f413f38827369b2a921f3241983c4f795fc (diff)
downloadlinux-dt-3c9f8c47c3e9695e9eed3c8fab22fcb32664b6e4.tar.gz
Add dra76-evm-tfp410.dtso
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--arch/arm/boot/dts/ti/dra76-evm-tfp410.dtso120
1 files changed, 120 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/ti/dra76-evm-tfp410.dtso b/arch/arm/boot/dts/ti/dra76-evm-tfp410.dtso
new file mode 100644
index 0000000..6f3c603
--- /dev/null
+++ b/arch/arm/boot/dts/ti/dra76-evm-tfp410.dtso
@@ -0,0 +1,120 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+/dts-v1/;
+/plugin/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+ fragment@101 {
+ target-path = "/";
+
+ __overlay__ {
+ aliases {
+ display0 = "/display";
+ display1 = "/connector";
+ };
+
+ tfp410: encoder@0 {
+ compatible = "ti,tfp410";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ tfp410_in: endpoint@0 {
+ remote-endpoint = <&dpi_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ tfp410_out: endpoint@0 {
+ remote-endpoint = <&dvi_connector_in>;
+ };
+ };
+ };
+ };
+
+ dvi0: connector@0 {
+ compatible = "dvi-connector";
+ label = "dvi";
+
+ digital;
+
+ ddc-i2c-bus = <&i2c3>;
+
+ hpd-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; /* wakeup2/sys_nirq2/gpio1_2 HPD */
+
+ port {
+ dvi_connector_in: endpoint {
+ remote-endpoint = <&tfp410_out>;
+ };
+ };
+ };
+ };
+ };
+};
+
+&dss {
+ status = "ok";
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "ok";
+
+ port@0 {
+ reg = <0>;
+
+ dpi_out: endpoint {
+ remote-endpoint = <&tfp410_in>;
+ data-lines = <24>;
+ };
+ };
+ };
+};
+
+&gpio3 {
+ p1 {
+ /* GPIO3_1 CON_LCD_PWR_DN */
+ /* This affects the TFP410 and the USB */
+ gpio-hog;
+ gpios = <1 GPIO_ACTIVE_HIGH>;
+ output-low;
+ line-name = "CON_LCD_PWR_DN";
+ };
+};
+
+&i2c3 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ clock-frequency = <100000>;
+
+ pcf_tfp: pcf8757@20 {
+ compatible = "ti,pcf8575", "nxp,pcf8575";
+ reg = <0x27>;
+ gpio-controller;
+ #gpio-cells = <2>;
+
+ p2 {
+ gpio-hog;
+ gpios = <2 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "ct_hpd";
+ };
+
+ p3 {
+ gpio-hog;
+ gpios = <3 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "ls_oe";
+ };
+ };
+};