适配新七寸屏

This commit is contained in:
2026-11-09 10:18:46 +08:00
parent a19e595794
commit 7f6fd3bd9d
10 changed files with 131 additions and 126 deletions
@@ -10,6 +10,7 @@
__overlay__ {
lcds {
lcd_jd9365_mipi_wxga: lcd_jd9365_mipi_wxga {
/* Match the U-Boot handoff and the stable Unisoc burst path. */
sprd,dsi-work-mode = <1>;
sprd,dsi-lane-number = <4>;
sprd,dsi-color-format = "rgb888";
@@ -26,7 +27,13 @@
sprd,reset-on-sequence = <1 5>, <0 10>, <1 120>;
sprd,reset-off-sequence = <0 20>;
sprd,use-dcs-write;
/*
* The vendor register table uses packet type 0x23
* (generic short write, two parameters). Do not set
* sprd,use-dcs-write here: that makes the panel driver
* recode every entry as a DCS packet and the JD9365
* vendor-page registers are then not programmed.
*/
sprd,initial-command = [
23 00 00 02 E0 00
23 00 00 02 E1 93
@@ -241,13 +248,18 @@
native-mode = <&jd9365_timing0>;
jd9365_timing0: timing0 {
clock-frequency = <67750800>;
clock-frequency = <64000000>;
hactive = <800>;
vactive = <1280>;
hback-porch = <20>;
hfront-porch = <20>;
vback-porch = <8>;
vfront-porch = <17>;
/*
* DPU r6p0 requires vsync + vback-porch >= 32.
* Keep the 25-line total blanking unchanged while
* matching the visually clean U-Boot handoff.
*/
vback-porch = <24>;
vfront-porch = <1>;
hsync-len = <20>;
vsync-len = <8>;
};
@@ -8,7 +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/ums9620-tp.dtsi"
#include <dt-bindings/mfd/sprd,ump9620-regs.h>
#include <dt-bindings/mfd/sprd,ump9620-mask.h>
@@ -594,7 +594,7 @@
sprd,backlight = <&pwm_backlight>;
avdd-gpio = <&ap_gpio 153 GPIO_ACTIVE_HIGH>;
avee-gpio = <&ap_gpio 178 GPIO_ACTIVE_HIGH>;
iovdd-gpio = <&ap_gpio 187 GPIO_ACTIVE_HIGH>;
/* GPIO187 is kept high by the shared hdmi_5v_en gpio-hog above. */
reset-gpio = <&ap_gpio 152 GPIO_ACTIVE_HIGH>;
};
@@ -604,7 +604,7 @@
};
&lcd_ili9881c_truly_mipi_wxga {
&lcd_jd9365_mipi_wxga {
sprd,sr-width = <800>;
sprd,sr-height = <1280>;
};