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 reg_dsi_hdmi: regulator-dsi-hdmi { 17 compatible = "regulator-fixed"; 18 /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ 19 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 20 enable-active-high; 21 regulator-boot-on; 22 regulator-name = "DSI_1_PWR_EN"; 23 }; 24}; 25 26&hdmi_connector { 27 status = "okay"; 28 29 port { 30 hdmi_connector_in: endpoint { 31 remote-endpoint = <&dsi_hdmi_bridge_out>; 32 }; 33 }; 34}; 35 36&hdmi_lontium_lt8912 { 37 vdd-supply = <®_dsi_hdmi>; 38 39 status = "okay"; 40 41 ports { 42 #address-cells = <1>; 43 #size-cells = <0>; 44 45 port@0 { 46 reg = <0>; 47 48 dsi_hdmi_bridge_in: endpoint { 49 data-lanes = <1 2 3 4>; 50 remote-endpoint = <&mipi_dsi_out>; 51 }; 52 }; 53 54 port@1 { 55 reg = <1>; 56 57 dsi_hdmi_bridge_out: endpoint { 58 remote-endpoint = <&hdmi_connector_in>; 59 }; 60 }; 61 }; 62}; 63 64/* Verdin I2C_2_DSI */ 65&i2c2 { 66 clock-frequency = <10000>; 67 68 status = "okay"; 69}; 70 71&lcdif { 72 status = "okay"; 73}; 74 75&mipi_dsi { 76 samsung,esc-clock-frequency = <16000000>; 77 78 status = "okay"; 79}; 80 81&mipi_dsi_out { 82 remote-endpoint = <&dsi_hdmi_bridge_in>; 83}; 84 85/* Verdin PWM_3_DSI (SODIMM 19) repurposed as HDMI HPD GPIO */ 86&pwm1 { 87 status = "disabled"; 88}; 89