summaryrefslogtreecommitdiff
path: root/overlays/colibri-imx8x_dsihdmi_overlay.dts
blob: 0b5b1d72ad6587be7fe4c60b4908671e01ef1354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Enable the dsi to hdmi adapter orderable at Toradex for Colibri iMX8X

#include "dt-bindings/gpio/gpio.h"
#include "dt-bindings/pinctrl/pads-imx8qxp.h"

/dts-v1/;
/plugin/;
/ {
	compatible = "toradex,colibri-imx8x";
};

&i2c0_mipi_lvds0 {
	status = "okay";

	#address-cells = <1>;
	#size-cells = <0>;

	/* DSI to HDMI Adapter V1.1A */
	i2c-switch@70 {
		compatible = "nxp,pca9540";
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0x70>;
		i2c-mux-idle-disconnect;

		i2c_sw0: i2c-sw@0 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <0>;

			/* DDC/EDID */
		};

		i2c-sw@1 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <1>;

			lt8912@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_1_in: endpoint {
						remote-endpoint = <&mipi0_dsi_host_out>;
					};
				};
			};
		};
	};
};

&iomuxc {
	colibri-imx8qxp {
		/* DSI/LVDS Hot Plug Detect on FFC (X2) */
		pinctrl_gpio_hpd: gpio-hpd {
			fsl,pins = <
				IMX8QXP_MIPI_DSI1_GPIO0_00_LSIO_GPIO1_IO31		0x20		/* SODIMM 138 */
			>;
		};
	};
};

&mipi0_dsi_host {
	status = "okay";

	#address-cells = <1>;
	#size-cells = <0>;

	ports {
		#address-cells = <1>;
		#size-cells = <0>;
		port@1 {
			#address-cells = <1>;
			#size-cells = <0>;
			reg = <1>;
			mipi0_dsi_host_out: endpoint@0 {
				reg = <0>;
				remote-endpoint = <&lt8912_1_in>;
			};
		};
	};
};

&mipi0_dphy {
	status = "okay";
};