Repository navigation
Conversation
Allow the H9G display controller node to carry a standard panel-timing subnode describing the attached internal panel's native 120 Hz active scanout (two active subframes), so per-panel timings live in the board device trees instead of a lookup table in simpledrm. Assisted-by: LLM Signed-off-by: Grier Johnson <grier@scooterfarm.com>
Add the panel-timing subnode to h9g_display for the 12.9-inch (J120/J121, 2048x2732, htotal 2088, 1497 lines/subframe, 750.001 MHz) and 10.5-inch (J207/J208, 1668x2224, htotal 1756, 1227 lines/subframe, 517.107 MHz) iPad Pro 2 models so simpledrm can read per-panel H9G timings from the device tree. Assisted-by: LLM Signed-off-by: Grier Johnson <grier@scooterfarm.com>
Replace the hardcoded simpledrm_h9g_panels[] lookup table with of_get_display_timing() on the H9G display controller's panel-timing subnode, deriving htotal, sync positions, pixel clock, and subframe_lines (half of the 2-subframe native vtotal) directly from the device tree. Select VIDEOMODE_HELPERS if OF for DRM_SIMPLEDRM so of_get_display_timing() is always available when OF is enabled, while non-OF builds keep using the inline stub without calling videomode_from_timing(). Assisted-by: LLM Signed-off-by: Grier Johnson <grier@scooterfarm.com>
Author
|
Also verified live in the full Omarchy A Wayland desktop ( |
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.
Follow-up to #173 (per #173 (comment)): move the per-panel H9G timing table out of
drivers/gpu/drm/sysfb/simpledrm.cinto standardpanel-timingdevice tree subnodes onapple,t8011-h9g-display.Commits
dt-bindings: display: apple,t8011-h9g-display: Document panel-timing— Add optionalpanel-timing($ref: /schemas/display/panel/panel-timing.yaml#) and an example describing the attached panel's native progressive 120 Hz active scanout (two active subframes).arm64: dts: apple: t8011: Describe iPad Pro 2 H9G panel timings— Populate&h9g_display { panel-timing { ... }; }on all four iPad Pro 2 boards:t8011-j120.dts,t8011-j121.dts):2048×2732,htotal 2088,vtotal 2994(2 × 1497subframe lines),750.001 MHz.t8011-j207.dts,t8011-j208.dts):1668×2224,htotal 1756(hfp 62 / hsync 8 / hbp 18),vtotal 2454(2 × 1227subframe lines),517.107 MHz.drm/simpledrm: Read H9G panel timings from device tree— Replacesimpledrm_h9g_panels[]andsimpledrm_h9g_find_panel()withsimpledrm_h9g_parse_timing()usingof_get_display_timing()(selectingVIDEOMODE_HELPERS if OFonDRM_SIMPLEDRMwhile keeping non-OF builds stub-clean), validating active dimensions, progressive scan flags,u16bounds across all cadences, andH9G_SUBFRAME_LINES.panel-timinggracefully stays on standard 60 Hzsimpledrmrather than keeping a duplicate table in C.Verification
orchard build --device j207 --kernel /home/grier/git/linux hardware-check(zero warnings onsimpledrm.oandt8011-{j120,j121,j207,j208}.dtb).j105a,j120,j121,j207,j208).J207):/proc/device-tree/soc/display-controller@206000000/panel-timing/*present and matching DTS.simpledrmwith zero warnings/errors indmesg:Assisted-by: LLM