From acd7fd0747ce75fed7ee2ea440aa92baf08e1d25 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Mon, 15 Feb 2021 15:45:03 +0200 Subject: arm64: dts: colibri-imx8x: add dsi-hdmi adapter Return back the definitions of the DSI-HDMI converter and all related stuff to the main devicetree to keep an overlay as simple as possible. Remains it disabled in the main devicetree. Related-to: ELB-3246 Signed-off-by: Oleksandr Suvorov --- arch/arm64/boot/dts/freescale/imx8qxp-colibri.dtsi | 65 +++++++++++++++++++++- 1 file changed, 62 insertions(+), 3 deletions(-) (limited to 'arch/arm64/boot/dts/freescale/imx8qxp-colibri.dtsi') diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-colibri.dtsi index 1264eb3efac6..464828618620 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp-colibri.dtsi @@ -438,11 +438,52 @@ /* MIPI DSI accessible on FFC (X2) */ &i2c0_mipi_lvds0 { - #address-cells = <1>; - #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c0_mipi_lvds0>; clock-frequency = <100000>; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + /* DSI to HDMI Adapter V1.1A */ + pca9540_switch: i2c-switch@70 { + compatible = "nxp,pca9540"; + reg = <0x70>; + i2c-mux-idle-disconnect; + status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; + + /* DDC/EDID */ + i2c_sw0: i2c-sw@0 { + reg = <0>; + }; + + /* DSI-HDMI converter */ + i2c-sw@1 { + reg = <1>; + + #address-cells = <1>; + #size-cells = <0>; + + lt8912_hdmi: dsihdmi@48 { + compatible = "lontium,lt8912"; + ddc-i2c-bus = <&i2c_sw0>; + hpd-gpios = <&lsio_gpio1 31 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_hpd>; + reg = <0x48>; + + port { + lt8912_in: endpoint { + remote-endpoint = <&mipi0_dsi_host_out>; + }; + }; + }; + }; + }; }; /* On-module MIPI CSI I2C accessible on FFC (X3) */ @@ -477,7 +518,7 @@ pinctrl_ad7879_int: ad7879-int { fsl,pins = < IMX8QXP_MIPI_CSI0_I2C0_SCL_LSIO_GPIO3_IO05 0x21 - > + >; }; /* Colibri Analogue Inputs */ @@ -587,6 +628,13 @@ >; }; + /* HDMI Hot Plug Detect on FFC (X2) */ + pinctrl_gpio_hpd: gpio-hpd { + fsl,pins = < + IMX8QXP_MIPI_DSI1_GPIO0_00_LSIO_GPIO1_IO31 0x20 /* SODIMM 138 */ + >; + }; + pinctrl_hog0: hog0grp { fsl,pins = < IMX8QXP_COMP_CTL_GPIO_1V8_3V3_GPIORHB_PAD 0x000514a0 /* Use pads in 3.3V mode */ @@ -1170,6 +1218,17 @@ &mipi0_dsi_host { pwr-delay = <10>; + + ports { + port@1 { + #address-cells = <1>; + #size-cells = <0>; + mipi0_dsi_host_out: endpoint@0 { + reg = <0>; + remote-endpoint = <<8912_in>; + }; + }; + }; }; &mipi1_dsi_host { -- cgit v1.2.3