rockchip/rk356x/rp-lcd-mipi2hdmi-lt8912.dtsi
2025-04-28 11:36:59 +08:00

139 lines
3.1 KiB
Plaintext
Executable File

#include "rp-lcd-hdmi.dtsi"
&dsi1 {
status = "okay";
//rockchip,lane-rate = <480>;
dsi1_panel: panel@0 {
status = "okay";
compatible = "simple-panel-dsi";
reg = <0>;
init-delay-ms = <120>;
reset-delay-ms = <120>;
enable-delay-ms = <120>;
prepare-delay-ms = <120>;
unprepare-delay-ms = <60>;
disable-delay-ms = <60>;
// dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
// MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
// dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
// MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
MIPI_DSI_MODE_VIDEO_HBP | MIPI_DSI_MODE_LPM |
MIPI_DSI_MODE_EOT_PACKET)>;
dsi,format = <MIPI_DSI_FMT_RGB888>;
dsi,lanes = <4>;
/**
* power-supply = <>;
* reset-gpios = <>;
*
* lcd reset pin and power supply
* please refer to ***-lcd-gpio.dtsi
* that included in main dts.
*/
panel-init-sequence = [
05 78 01 11
05 05 01 29
];
panel-exit-sequence = [
05 00 01 28
05 78 01 10
];
disp_timings1: display-timings {
native-mode = <&dsi1_timing0>;
dsi1_timing0: timing0 {
clock-frequency = <148500000>;//140000000
hactive = <1920>;
vactive = <1080>;
hback-porch = <148>;//60
hfront-porch = <88>;
vback-porch = <36>;//23
vfront-porch = <4>;//12
hsync-len = <44>;
vsync-len = <5>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <0>;
pixelclk-active = <0>;
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
panel_in_dsi1: endpoint {
remote-endpoint = <&dsi1_out_panel>;
};
};
};
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi1_out_panel: endpoint {
remote-endpoint = <&panel_in_dsi1>;
};
};
};
};
&dsi1_in_vp0 {
status = "disabled";
};
&dsi1_in_vp1 {
status = "okay";
};
&video_phy1 {
status = "okay";
};
&video_phy0 {
status = "disabled";
};
&route_dsi1 {
status = "okay";
connect = <&vp1_out_dsi1>;
};
&i2c4 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c4m0_xfer>;
clock-frequency = <100000>;
/delete-node/ gt1x@14;
lt89121: lt89121@48 {
status = "okay";
compatible = "lt8912_i2c";
reg = <0x48>;
reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
};
};