blob: 702aceaca372dc48fb97ae62ed0349de82f81710 (
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright (C) 2025 Toradex
*
* LT8912B MIPI DSI to HDMI accessory
*
* https://developer.toradex.com/hardware/accessories/add-ons/dsi-hdmi-adapter
* https://www.toradex.com/accessories/verdin-dsi-to-hdmi-adapter
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include "imx8mp-pinfunc.h"
/ {
compatible = "toradex,smarc-imx8mp";
};
&{/} {
dsi-hdmi-connector {
compatible = "hdmi-connector";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hdmi_hpd>;
/* I2C on DSI Connector Pins 52/54 */
ddc-i2c-bus = <&i2c_dsi_1>;
/* SMARC LCD1_BKLT_PWM as GPIO */
hpd-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
label = "DSI-HDMI";
type = "a";
port {
hdmi_connector_in: endpoint {
remote-endpoint = <<8912_hdmi_out>;
};
};
};
};
/* I2C on DSI Connector Pins 4/6 */
&i2c_dsi_0 {
#address-cells = <1>;
#size-cells = <0>;
bridge@48 {
compatible = "lontium,lt8912b";
reg = <0x48>;
/* SMARC LCD1_BKLT_EN */
reset-gpios = <&som_gpio_expander 7 GPIO_ACTIVE_LOW>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
lt8912_dsi_in: endpoint {
data-lanes = <1 2 3 4>;
remote-endpoint = <&mipi_dsi_bridge1_out>;
};
};
port@1 {
reg = <1>;
lt8912_hdmi_out: endpoint {
remote-endpoint = <&hdmi_connector_in>;
};
};
};
};
};
&lcdif1 {
status = "okay";
};
&mipi_dsi {
samsung,esc-clock-frequency = <16000000>;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
mipi_dsi_bridge1_out: endpoint {
attach-bridge;
remote-endpoint = <<8912_dsi_in>;
};
};
};
};
/* SMARC LCD1_BKLT_PWM - Used as GPIO */
&pwm1 {
status = "disabled";
};
&iomuxc {
/* SMARC LCD1_BKLT_PWM as GPIO */
pinctrl_hdmi_hpd: hdmihpdgpiogrp {
fsl,pins = <MX8MP_IOMUXC_SPDIF_EXT_CLK__GPIO5_IO05 0x104>; /* SMARC S122 - LCD1_BKLT_PWM */
};
};
|