Gate the two-panel DT behind an opt-in build after live phone regression

This commit is contained in:
Luxferre committed 2026-11-10 14:53:47 +02:00
1 parent 31db372779
commit a7b1a75465
15 files changed
+2757 -265

No files matched your search

+9 -4
View File
@@ -3,10 +3,15 @@
// Nokia 2720 Flip (nokia-beatles) external 240x240 GC9305 panel.
//
// Reference overlay for a DTB that still has the old single-panel layout.
// The shipping qcom-msm8905-nokia-beatles.dts now carries these exact nodes,
// so /dev/fb1 is available without applying an overlay at boot. Do NOT apply
// this overlay to the current shipping DTB (it would duplicate the mux); use
// scripts/build-beatles-no-cover-dtb.py instead to roll the cover panel back.
// The two-panel wiring is NOT applied to the shipping DTB: it lives in
// qcom-msm8905-nokia-beatles-cover.dts (opt-in, built by
// scripts/build-beatles-cover-panel.py). A live 2720 Flip test produced
// /dev/fb1 (240x240, 32bpp) and the full cover state machine, but the main
// 240x320 panel went dark with both panels registered; the gpio13 mux select
// and gpio21/gpio23 external DC/reset routing therefore still need physical
// probing before the opt-in DT can become the default. This file documents
// the wiring for older/stock DTBs; do not apply it to the current shipping
// DTB (it would duplicate the mux).
//
// Both panels share BLSP1 QUP5 SPI; gpio13 selects which one the bus reaches.
// spi-mux selects the mux state from the child chip-select number, so
+3
View File
@@ -3,3 +3,6 @@ pm8916-bms-vm
panel-mipi-dbi
matrix_keypad
matrix_keymap
mux-core
mux-gpio
spi-mux
File diff suppressed because it is too large. Load diff
Binary file not shown.
@@ -1033,24 +1033,12 @@
};
cover-panel-gpios-default-state {
/* External DC (gpio21) and reset (gpio23) only. gpio13 is the
* SPI mux select and must not be re-biased by the panel probe. */
pins = "gpio21", "gpio23";
pins = "gpio21", "gpio23", "gpio13";
function = "gpio";
drive-strength = <0x02>;
bias-pull-down;
phandle = <0x92>;
};
cover-mux-gpio-default-state {
/* Hold the mux on the internal panel until gpio-mux drives it,
* so the boot chain and Xorg keep the 240x320 main display. */
pins = "gpio13";
function = "gpio";
drive-strength = <0x02>;
bias-pull-down;
phandle = <0x93>;
};
};
clock-controller@1800000 {
@@ -1863,80 +1851,39 @@
#size-cells = <0x00>;
status = "okay";
spi-mux@0 {
compatible = "spi-mux";
display@0 {
compatible = "nokia,beatles-gc9305-panel", "nokia,argon-gc9305-v2-panel", "panel-mipi-dbi-spi";
reg = <0x00>;
#address-cells = <0x01>;
#size-cells = <0x00>;
backlight = <0x6b>;
reset-gpios = <0x27 0x19 0x00>;
dc-gpios = <0x27 0x6e 0x00>;
/* 25 MHz avoids high-backlight PWM noise corrupting the panel link. */
spi-max-frequency = <0x17d7840>;
mux-controls = <0x96>;
power-supply = <0x6c>;
io-supply = <0x6d>;
width-mm = <0x24>;
height-mm = <0x30>;
pinctrl-0 = <0x6e>;
pinctrl-names = "default";
display@0 {
compatible = "nokia,beatles-gc9305-panel", "nokia,argon-gc9305-v2-panel", "panel-mipi-dbi-spi";
reg = <0x00>;
backlight = <0x6b>;
reset-gpios = <0x27 0x19 0x00>;
dc-gpios = <0x27 0x6e 0x00>;
/* 25 MHz avoids high-backlight PWM noise corrupting the panel link. */
spi-max-frequency = <0x17d7840>;
power-supply = <0x6c>;
io-supply = <0x6d>;
width-mm = <0x24>;
height-mm = <0x30>;
pinctrl-0 = <0x6e>;
pinctrl-names = "default";
panel-timing {
hactive = <0xf0>;
vactive = <0x140>;
hback-porch = <0x00>;
vback-porch = <0x00>;
hfront-porch = <0x00>;
vfront-porch = <0x00>;
hsync-len = <0x00>;
vsync-len = <0x00>;
clock-frequency = "", "#(";
};
panel-timing {
hactive = <0xf0>;
vactive = <0x140>;
hback-porch = <0x00>;
vback-porch = <0x00>;
hfront-porch = <0x00>;
vfront-porch = <0x00>;
hsync-len = <0x00>;
vsync-len = <0x00>;
clock-frequency = "", "#(";
};
display@1 {
compatible = "nokia,beatles-gc9305-ext-panel", "panel-mipi-dbi-spi";
reg = <0x01>;
/* gpio21 is the external D/C line: 8-bit SPI works on QUP
* and gpio110 stays owned by the internal panel. */
dc-gpios = <0x27 0x15 0x00>;
reset-gpios = <0x27 0x17 0x00>;
/* Same verified 25 MHz clock as the internal panel. */
spi-max-frequency = <0x17d7840>;
power-supply = <0x6c>;
io-supply = <0x6d>;
width-mm = <0x1e>;
height-mm = <0x1e>;
pinctrl-0 = <0x92>;
pinctrl-names = "default";
write-only;
panel-timing {
hactive = <0xf0>;
vactive = <0xf0>;
hback-porch = <0x00>;
vback-porch = <0x00>;
hfront-porch = <0x00>;
vfront-porch = <0x00>;
hsync-len = <0x00>;
vsync-len = <0x00>;
clock-frequency = "", "#(";
};
};
};
spidev@1 {
compatible = "rohm,dh2228fv";
reg = <0x01>;
spi-max-frequency = <0x2faf080>;
/* spi-mux owns chip select 1 now; keep the node for the
* diagnostic spidev fallback, but leave it disabled. */
status = "disabled";
status = "okay";
};
};
@@ -2357,16 +2304,6 @@
phandle = <0x29>;
};
spi-panel-mux {
compatible = "gpio-mux";
#mux-control-cells = <0x00>;
mux-gpios = <0x27 0x0d 0x00>;
idle-state = <0x00>;
pinctrl-0 = <0x93>;
pinctrl-names = "default";
phandle = <0x96>;
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-0 = <0x86 0x87>;