1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Copyright (c) Toradex 4 * 5 * Toradex DSI to HDMI Adapter on Verdin DSI_1 6 * 7 * https://developer.toradex.com/hardware/accessories/add-ons/dsi-hdmi-adapter 8 */ 9 10/dts-v1/; 11/plugin/; 12 13#include <dt-bindings/gpio/gpio.h> 14 15&{/} { 16 hdmi-connector { 17 compatible = "hdmi-connector"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&pinctrl_pwm3_dsi_gpio>; 20 ddc-i2c-bus = <&main_i2c2>; 21 /* Verdin PWM_3_DSI (SODIMM 19) */ 22 hpd-gpios = <&main_gpio1 17 GPIO_ACTIVE_HIGH>; 23 type = "a"; 24 25 port { 26 hdmi_connector_in: endpoint { 27 remote-endpoint = <&dsi_hdmi_bridge_out>; 28 }; 29 }; 30 }; 31}; 32 33&dsi_bridge { 34 status = "okay"; 35}; 36 37&dsi_bridge_ports { 38 #address-cells = <1>; 39 #size-cells = <0>; 40 41 port@1 { 42 reg = <1>; 43 44 dsi_bridge_out: endpoint { 45 remote-endpoint = <&dsi_hdmi_bridge_in>; 46 }; 47 }; 48}; 49 50&dss { 51 status = "okay"; 52}; 53 54/* Verdin PWM_3_DSI (SODIMM 19) repurposed as HDMI HPD GPIO */ 55&epwm1 { 56 status = "disabled"; 57}; 58 59/* Verdin I2C_1 */ 60&main_i2c1 { 61 #address-cells = <1>; 62 #size-cells = <0>; 63 64 hdmi@48 { 65 compatible = "lontium,lt8912b"; 66 reg = <0x48>; 67 pinctrl-names = "default"; 68 pinctrl-0 = <&pinctrl_dsi1_bkl_en>; 69 /* Verdin GPIO_10_DSI (SODIMM 21) */ 70 reset-gpios = <&main_gpio0 30 GPIO_ACTIVE_LOW>; 71 72 ports { 73 #address-cells = <1>; 74 #size-cells = <0>; 75 76 port@0 { 77 reg = <0>; 78 79 dsi_hdmi_bridge_in: endpoint { 80 data-lanes = <1 2 3 4>; 81 remote-endpoint = <&dsi_bridge_out>; 82 }; 83 }; 84 85 port@1 { 86 reg = <1>; 87 88 dsi_hdmi_bridge_out: endpoint { 89 remote-endpoint = <&hdmi_connector_in>; 90 }; 91 }; 92 }; 93 }; 94}; 95