兼容新旧七寸屏

This commit is contained in:
2026-11-12 09:04:39 +08:00
parent e803065c86
commit a3d4b98765
5 changed files with 24 additions and 10 deletions
@@ -9,11 +9,12 @@
lcd_ili9881c_truly_mipi_wxga: lcd_ili9881c_truly_mipi_wxga {
sprd,dsi-work-mode = <1>;
sprd,dsi-lane-number = <4>;
/* Keep the host and ILI9881C internal lane selection in 2-lane mode. */
sprd,dsi-lane-number = <2>;
/*sprd,dual-dsi-en <1>;*/
sprd,dsi-color-format = "rgb888";
sprd,phy-bit-clock = <460800>;
sprd,phy-bit-clock = <921600>;
sprd,phy-escape-clock = <20000>;/* kHz */
/* panel interface type: 2:MIPI; 3:SPI */
sprd,panel-if-type = <2>;
@@ -192,7 +193,8 @@
23 00 00 02 51 99
23 00 00 02 60 06
23 00 00 02 62 20
23 00 00 02 B7 00
/* B7[1:0] = 11: software lane select enabled, 2-lane mode. */
23 00 00 02 B7 03
23 00 00 02 A0 00
23 00 00 02 A1 17
23 00 00 02 A2 26
@@ -262,4 +264,4 @@
};
};
};
};};
};};
@@ -19,11 +19,11 @@
sprd,power-gpio-delay = <20>;
sprd,mipi-port = <1>;
/*
* The vendor did not provide a readable panel ID. HDMI is probed
* first; when it is absent this DSI1 panel is the fallback.
*/
sprd,lcd-id-tokernel = <0xffff>;
/* JD9365DA-H3 standard DCS ID: DA/DB/DC = 93/65/04. */
sprd,lcd-id-register = [DA DB DC];
sprd,lcd-id-value-len = <1 1 1>;
sprd,lcd-id-value = [93 65 04];
sprd,lcd-id-tokernel = <0x936504>;
sprd,reset-on-sequence = <1 5>, <0 10>, <1 120>;
sprd,reset-off-sequence = <0 20>;
@@ -255,4 +255,3 @@
};
};
};};
@@ -10,6 +10,7 @@
//#include "lcd/lcd_nt36672e_truly_mipi_fhd_nodsc.dtsi"
//#include "lcd/lcd_ili7806s_truly_mipi_hdplus.dtsi"
#include "lcd/lcd_lt8912b_mipi_hdmi_1080p.dtsi"
#include "lcd/lcd_ili9881c_truly_mipi_wxga.dtsi"
#include "lcd/lcd_jd9365_mipi_wxga.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
@@ -8,6 +8,7 @@
//#include "lcd/lcd_g40396_truly_mipi_fhd.dtsi"
//#include "lcd/lcd_nt36672e_truly_mipi_fhd_nodsc.dtsi"
#include "lcd/lcd_lt8912b_mipi_hdmi_1080p.dtsi"
#include "lcd/lcd_ili9881c_truly_mipi_wxga.dtsi"
#include "lcd/lcd_jd9365_mipi_wxga.dtsi"
#include "tp/uis7885-2h10-gt911.dtsi"
#include <dt-bindings/mfd/sprd,ump9620-regs.h>
@@ -609,6 +610,11 @@
sprd,sr-height = <1280>;
};
&lcd_ili9881c_truly_mipi_wxga {
sprd,sr-width = <800>;
sprd,sr-height = <1280>;
};
//&lcd_g40396_truly_mipi_fhd {
// sprd,sr-width = <720>;
// sprd,sr-height = <1600>;