SM8550: switch Pocket DS lower panel to mainline ST7703 driver#3051
Open
Azkali wants to merge 3 commits into
Open
SM8550: switch Pocket DS lower panel to mainline ST7703 driver#3051Azkali wants to merge 3 commits into
Azkali wants to merge 3 commits into
Conversation
added 3 commits
July 23, 2026 18:21
The lower panel was carried as a generated standalone driver (panel-ar11-5inch.c, DRM_PANEL_AR11_5INCH) with a FIXME author that did not identify the DDIC. Its init sequence is in fact a Sitronix ST7703 command set: SETEXTC 0xB9 unlock (f1 12 87), SETMIPI 0xBA, SETRGBIF, SETGIP1/2 0xE9/0xEA, every opcode mapping 1:1 to panel-sitronix-st7703, with the SETMIPI/SETRGBIF payloads near-identical to the Powkiddy RGB10MAX3. Replace the bespoke driver with an extension of the in-tree sitronix-st7703 driver: add the ayaneo,pocket-ds-lower-panel compatible, init sequence, mode and desc, plus the binding enum entry. This is the same pattern the anbernic/powkiddy/gameforce ST7703 panels already use. Validated on real Pocket DS hardware: the lower panel comes up at 768x1024@60 driven by sitronix-st7703. Signed-off-by: Alexandre Hamamdjian <azkali.limited@gmail.com>
The lower panel is now driven by sitronix-st7703 via the
"ayaneo,pocket-ds-lower-panel" compatible. That driver's DT contract is
vcc-supply + iovcc-supply + reset-gpios, not the generator's avdd + an
enable-gpio, so re-express the wiring:
- vcc-supply -> the SGM3804 charge pump (the "panel-avdd" rail),
- iovcc-supply -> a fixed regulator wrapping the expander GPIO that
previously drove enable-gpio,
- reset-gpios -> unchanged.
The enable line only gates a board rail, so modelling it as a fixed
regulator (as vdd_ts already does for the touch controller) keeps the
prepare/enable ordering the vendor driver relied on. The iovcc level is
the ST7703 IOVCC nominal and should be confirmed on hardware.
Signed-off-by: Alexandre Hamamdjian <azkali.limited@gmail.com>
The lower panel now uses the mainline sitronix-st7703 driver instead of the removed standalone panel-ar11-5inch.c, so enable CONFIG_DRM_PANEL_SITRONIX_ST7703 and drop the now-nonexistent CONFIG_DRM_PANEL_AR11_5INCH. Signed-off-by: Alexandre Hamamdjian <azkali.limited@gmail.com>
Azkali
marked this pull request as ready for review
July 23, 2026 11:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The AYANEO Pocket DS lower panel is currently carried as an auto-generated
standalone driver (
patches/linux/0053-gpu-panel-add-Pocket-DS-lower-panel-driver.patch→
panel-ar11-5inch.c,CONFIG_DRM_PANEL_AR11_5INCH) with aFIXMEauthorthat never identified the DDIC. It is a Sitronix ST7703, and this PR replaces
the bespoke driver with an extension of the in-tree
panel-sitronix-st7703driver — the same pattern the anbernic / powkiddy / gameforce ST7703 panels
already use upstream.
DDIC identification (Sitronix ST7703)
The generated init sequence is an ST7703 manufacturer command set:
0xB9 f1 12 87— SETEXTC unlock.B9 F1 12is the canonical ST7703 key;the trailing byte is a vendor variant (
0x87here vs the usual0x83), keptverbatim.
0xBASETMIPI,0xB3SETRGBIF,0xC0SETSCR,0xC1SETPOWER,0xE0SETGAMMA,0xE9/0xEASETGIP1/2 — every opcode maps 1:1 to anST7703_CMD_*inpanel-sitronix-st7703.c.supported Powkiddy RGB10MAX3 ST7703 panel.
What changed
ayaneo,pocket-ds-lower-paneltopanel-sitronix-st7703.c(init sequence,mode,
st7703_panel_desc,of_matchentry, plus oneST7703_CMD_UNKNOWN_E1define) and to the
rocktech,jh057n00900.yamlbinding enum.qcs8550-ayaneo-pocketds.dts): re-model the panel rails to theST7703 driver contract —
avdd-supply→vcc-supply(same SGM3804panel-avddcharge pump), and the formerenable-gpiobecomes a fixedregulator referenced as
iovcc-supply(modelled like the existingvdd_tsregulator).
reset-gpios,rotation = <270>,backlightand the portendpoint are unchanged.
linux.aarch64.conf): enableCONFIG_DRM_PANEL_SITRONIX_ST7703, dropCONFIG_DRM_PANEL_AR11_5INCH.Validation
Validated on real Pocket DS hardware: both screens light up, the lower panel
comes up at 768x1024@60 driven by
sitronix-st7703(rails re-modelled to thevcc/iovcc contract).
Notes for reviewers
7.1.2, per
projects/ROCKNIX/packages/linux/package.mk):git apply --checkapplies with zero offset/fuzz to the pristine
panel-sitronix-st7703.candrocktech,jh057n00900.yaml. No other SM8550 patch touches either file, so itapplies at patch-time as well.
iovccregulator level is set to the ST7703 IOVCC nominal (1.8 V); itgates the same expander GPIO the old
enable-gpiodrove and wants a finalconfirmation against the board schematic.