* [PATCH v8 00/18] drm: starfive: jh7110: Enable display subsystem [not found] <CGME20261124155359eucas1p2f7d4e5137f38415561ce77fd55023466@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski [not found] ` <CGME20261124155401eucas1p23c6e29781ee1e0d34bb8539a0a848625@eucas1p2.samsung.com> ` (17 more replies) 0 siblings, 18 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir, Conor Dooley, Krzysztof Kozlowski This series enables the display subsystem on the StarFive JH7110. Merging: everything except the DT patch goes through drm-misc: drm-misc 1-16, 18 drivers/gpu/drm/bridge/, include/drm/bridge/, the display bindings, and, as Conor asked, the StarFive SoC drivers and bindings (patches 4-6, 14 and 15, which carry his Acked-by), since the display bindings and drivers belong together. Patches 1 and 2 are inno-hdmi fixes with Fixes: tags; they apply to Rockchip as much as to StarFive and are independent of the rest, so they can go on their own. Conor's tree 17 The DT patch is included for review and testing only. As Conor asked, I will resend it to him on its own once the rest is applied. The dc8200 compatible from v7 is already in drm-misc-next, so this series is based on drm-misc-next. This series depends on the PHY series for linux-phy, "phy: Add the StarFive JH7110 Innosilicon HDMI PHY" [1], now at v8: the jh7110-hdmi-subsystem binding (patch 4) and the vout-subsystem example (patch 6) reference the PHY binding, so they need it to pass dt_binding_check, and the DT needs the PHY driver at runtime. There is no build dependency. [1] https://lore.kernel.org/all/20261124-jh7110-inno-hdmi-phy-v8-0-5e3008122cba@samsung.com/ There are no out-of-tree dependencies: the dc8200 driver, the th1520 reset controller and the inno-hdmi bridge that the RFC listed as prerequisites are all upstream now. The clk patch that was 14/20 in v4 went in through the clk tree and is in v7.4-rc1 (af384d6e0573). The DT patch needs it at runtime for the pixel MUXes to follow the PHY. The dom_vout block holds the display controller (dc8200), the clock generator (voutcrg) and the HDMI IP, all inside PD_VOUT. The HDMI IP is a single register block containing both the controller and the PHY, which are described as separate children because they have separate resources: - the PHY takes only the 24 MHz reference clock, and provides the pixel clock that voutcrg routes on to the dc8200 pixel MUXes, and the phy the controller uses - the controller takes pclk/mclk/bclk from voutcrg It is the same Innosilicon PHY that the RK3328 describes as its own hdmiphy node; here it shares a register window with the controller. The parent maps the register block and owns the regmap its two children share. Everything in the region sits behind one NoC port whose clock and reset gate access to it, inside PD_VOUT, so the vout subsystem node from the RFC is back and owns those for as long as any child exists. Patch 10 adds a .mode_valid platform op to inno-hdmi. inno_hdmi_bridge_mode_valid() checks the pixel clock against hdmi->refclk, but that clock only exists where a "ref" clock is described. The JH7110 gets its pixel clock from the PHY, so refclk is NULL and the check was skipped: unsupported modes were advertised, the modeset then "succeeded" because the atomic enable path cannot fail, and the display stayed blank. Patch 11 makes the inno-hdmi PHY configuration table optional. The JH7110 drives its PHY through a separate driver, so the table only ever existed to get past a probe time check, and the pre-emphasis and drive-strength writes it fed belong to the integrated PHY the JH7110 does not have. Patch 13 makes the HDMI version inno-hdmi advertises selectable. Since v7.4-rc1 it advertises HDMI 1.2 for every integration, which caps the TMDS character rate at 165 MHz. That fits Rockchip, but on the JH7110, which supports HDMI 1.4b, it hid all eight 3840x2160 and 4096x2160 modes. Rockchip keeps HDMI 1.2. Patches 1, 2 and 7-13 change the inno-hdmi bridge, which the Rockchip RK3036 and RK3128 use as well. Patch 8 moves its register access to a regmap, Rockchip included. I have no Rockchip hardware, so on Rockchip they are build tested only (arm and riscv). A Tested-by would help. Testing ======= Tested on a VisionFive 2 v1.3B using modetest, with the PHY series applied. All 42 modes the sink advertises work, with nothing in dmesg. Pixel clocks run from 25.175 MHz (640x480@59.94) up to 297 MHz (4096x2160@30), including 3840x2160 and the full 1920x1080 and 1280x720 rate families. The four modes the RFC reported as broken work now too: 2560x1440@59.95, 2048x1080@60.00, 2048x1080@24.00 and 720x400@70.08. Before patch 10, four of the advertised modes failed: 1680x1050@59.95 (146.250 MHz), 1400x1050@59.98 (121.750), 1152x864@59.97 (81.768) and 1280x768@60.35 (80.140). Those pixel clocks are not in the PHY pre-PLL table, so clk_set_rate() returned -EINVAL and the screen stayed black while userspace saw a successful modeset. They are rejected in .mode_valid now; the other refresh rates of those resolutions still work. The mux the HDMI controller programs in dom_vout_syscon has a DP and a DPI branch, and the DT wires the DPI one, so the DP branch was checked separately by moving the input endpoint to the DC8200's DP output on a throwaway branch. SYSCFG_4 reads 0x4c0b0000 instead of 0x0c0b0000, the output is identical to the DPI path and all 42 modes set. Sweeping VOUT_HDMI_DP_YUV_MODE over its four values with a mode held shows only RGB giving a correct picture, as documented. Every commit builds for riscv, and the Rockchip inno-hdmi glue also for arm. Notes ===== The JH7110 has no central MAINTAINERS entry and maintainership is fragmented, so patch 18 adds one for the display subsystem and I am happy to help maintain it. The PHY series adds its own entry for the JH7110 HDMI PHY. checkpatch warns "does MAINTAINERS need updating?" on the patches adding files, because that entry comes in patch 18. Thanks to Icenowy Zheng for the dc8200 driver and for explaining how the SoC and the display pipeline fit together. Thanks also to Dominique Belhachemi, who got rid of the vout-subsystem wrapper and helped with the testing, to Maud Spierings for testing on a Framework 13 panel, to Byron Stanoszek and Owen O'Hehir for testing, and to Graham Markall for testing the JH7110 display patches independently and writing up the results: https://big-grey.co.uk/2026/01/26/testing-starfive-jh7110-display-controller-patches/ Link to v1: https://lore.kernel.org/all/20251108-jh7110-clean-send-v1-0-06bf43bb76b1@samsung.com/ --- Changes in v8: - Rebased onto drm-misc-next, which already has the dc8200 compatible (v7 patch 6, applied by Icenowy), so that patch is dropped - Everything except the DT patch now goes through drm-misc, and the DT patch is for review and testing only, to be resent separately (Conor) - Patch 2 reports hotplug through drm_bridge_hpd_notify() instead of checking bridge.dev, which also covers the bridge being detached while the interrupt is live, and requests the interrupt after the bridge is added; Heiko's Reviewed-by dropped because the approach changed - DT: dc8200 and the HDMI controller are disabled in jh7110.dtsi and enabled in jh7110-common.dtsi; dropped the no-op &voutcrg override - Patch 11 commit message says which writes it skips - Depends on PHY series v8 - Collected Conor's Acked-by and Owen O'Hehir's Tested-by - Link to v7: https://lore.kernel.org/r/20261106-jh7110-clean-send-v7-0-68f7ea9913db@samsung.com Changes in v7: - Moved the hdmi-subsystem and vout-subsystem bindings from bindings/soc/starfive/ to bindings/display/starfive/ (Conor) - inno-hdmi: access the registers only through a regmap, the parent's or an MMIO one over the controller's own resource, instead of keeping two register paths (Heiko). Patch 9 is renamed to "Use a regmap for register access" and drops its Reviewed-by and Tested-by tags, since the Rockchip path changed - Trimmed the comment in the NULL drm_device fix (Heiko) - Collected Heiko's Reviewed-by on patches 1 and 2 - Rebased onto v7.4-rc1, which has the clk patch and now creates drivers/soc/starfive/ itself, so patches 15 and 16 add their Kconfig entries to its existing menu - New patch 14 makes the advertised HDMI version selectable, and the JH7110 advertises HDMI 1.4. The HDMI 1.2 that v7.4-rc1 advertises for every inno-hdmi user hid the 3840x2160 and 4096x2160 modes - Link to v6: https://lore.kernel.org/r/20261029-jh7110-clean-send-v6-0-759594e43acf@samsung.com Changes in v6: - Split the PHY patches into their own series (Vinod) - New patch 2: the hotplug NULL drm_device guard is split out of "Split probe out of bind" into its own patch (Heiko) - inno_hdmi_bind() takes a platform_device, like dw_hdmi_bind() (Heiko) - Describe the HDMI PHY node by its resources rather than by the probe cycle, in the commit messages and the Kconfig help (Krzysztof) - Rebased onto v7.3, collected tags - Link to v5: https://lore.kernel.org/r/20260929-jh7110-clean-send-v5-0-82b4d8e3c6c7@samsung.com Changes in v5: - Rebased onto v7.3-rc5. - Dropped the clk patch, applied as af384d6e0573. - New patch 13 makes the HDMI_SYS_CTRL register clock source selectable per platform, and the JH7110 selects the TMDS clock. The driver drove the register interface from the system clock for everyone, and a Framework 13 panel flickers continuously that way (Maud Spierings). Rockchip keeps the system clock, so this is a no-op there. This was listed as a known limitation in v4. - New patch 1 fixes v_HSYNC_POLARITY and v_VSYNC_POLARITY, which have been swapped in inno-hdmi since the driver was merged. The hardware puts HSYNC in bit 2 and VSYNC in bit 3, and the driver had them the other way round. Almost all CEA modes drive both syncs with the same polarity, so the two writes are indistinguishable and the bug only shows on a mode whose polarities differ - a band of black rows at the top of the screen, vsync_end - vsync_start + 1 rows tall. Reported independently by Dominique Belhachemi, Maud Spierings and Byron Stanoszek, and confirmed against the RK3128 TRM by Icenowy Zheng, so this is a Rockchip fix too. - Added a 201 MHz entry to the JH7110 pre-PLL table for a 2560x1440 mode Byron Stanoszek runs on a Dell U2711. It is derived the same way as the neighbouring entries (fbdiv 134, /16, VCO 3.216 GHz) but I have no sink that asks for it, so it is untested on my hardware. - Moved the hdmi-subsystem binding from bindings/mfd/ to bindings/soc/starfive/, next to the vout-subsystem binding and matching its driver in drivers/soc/starfive/. The mfd/ path was left over from when the driver was called hdmi-mfd; nothing in the series is an MFD device, and it meant one isolated binding patch would have had to go through the MFD tree on its own. - The commit message for "Split probe out of bind" claimed a matching inno_hdmi_remove(); no such function exists, so the claim is gone. - Dropped Joshua Peisach's Reviewed-by from the PHY driver patch as well, since that patch changed in v5. - Dropped Joshua Peisach's Reviewed-by from the binding patches; he said he is not reviewing DT (Krzysztof Kozlowski). It is kept on the driver patches he did look at. - Removed a probe-time clk_set_rate() from the PHY driver. It programmed a default rate, and .set_rate writes PHY registers that live in the window gated by the controller's system clock - a clock the PHY cannot hold without creating a probe cycle with voutcrg. - Link to v4: https://lore.kernel.org/r/20260915-jh7110-clean-send-v4-0-f0e4fd6f2cc8@samsung.com Changes in v4: - New patch 11 makes the inno-hdmi PHY configuration table optional, so the JH7110 controller can drop the dummy two entry table it carried only to satisfy the probe time check, along with the integrated PHY register writes that table fed (Icenowy Zheng). That table was also acting as an upper bound: inno_hdmi_find_phy_config() runs before the platform .mode_valid and returns early, so its 297 MHz sentinel rejected every mode above that even though the PHY pre-PLL table has a 594 MHz entry. Nothing here advertises such a mode, so it was latent. - Fixed a v3 regression: CLK_SET_RATE_NO_REPARENT stops clk_set_rate() from reparenting the dc8200 pixel MUXes, so they kept whatever the bootloader had selected and the display stayed black on boards where that was not the HDMI PHY. They get assigned-clock-parents now (Maud Spierings, Dominique Belhachemi). - vout-subsystem binding: describe the children by compatible instead of $ref, as qcom,sm8750-mdss does, and show the whole subsystem with all four children in the example (Krzysztof Kozlowski). - Dropped the vout-syscon example from starfive,jh7110-syscon.yaml, it is part of the vout subsystem example now (Krzysztof Kozlowski). - Renamed the xin24m node to xin24m-clock (Krzysztof Kozlowski). - Fixed the HDMI HPD pinmux: it drove the pin high (GPOUT_HIGH with the output enabled) while also reading it as the hotplug input, so HPD could only ever read asserted. It is an input now. - jh7110-inno-hdmi: dropped a regmap lookup whose result was never used; inno_hdmi_probe() fetches the parent regmap itself. The commit message claimed otherwise and is corrected. - phy: rockchip: dropped two now unused RK3328 spread spectrum macros the v3 cleanup missed. The register write itself moved to the shared helper and is unchanged, so Chaoyi's Reviewed-by is carried over. - inno-hdmi: the hotplug handler dereferenced bridge.dev unconditionally. Splitting probe out of bind moved the interrupt request to probe, so an HPD event before the DRM master attaches the bridge would oops. Guarded. - Dropped the <linux/mod_devicetable.h> includes (Uwe Kleine-König). - jh7110-inno-hdmi: __free(device_node) for the graph lookups, and dropped the redundant negative check on clk_round_rate() (Chaoyi Chen). - phy: rockchip: dropped the recalc_rate debug print that the shared helper already emits (Chaoyi Chen). - Rebased onto v7.3-rc3. - Link to v3: https://lore.kernel.org/r/20260904-jh7110-clean-send-v3-0-484f9ae72715@samsung.com Changes in v3: - Brought back the vout subsystem node and driver, now owning the NoC bus clock, its reset and PD_VOUT for the whole region, with dc8200, the HDMI block, the syscon and voutcrg as its children (Icenowy Zheng). - Fixed a hard hang when the bridge is built as a module: the PHY's .is_prepared read a register in the window gated by the controller's system clock, so clk_disable_unused() wedged the CPU before the controller had bound. The op is gone; the framework uses the software prepare count instead. (Marek Szyprowski) - The HDMI controller now programs the display mux in dom_vout_syscon from the port graph rather than inheriting whatever the bootloader left, with a phandle to the syscon (Icenowy Zheng). - The register access clock is named "pclk" to match the existing inno-hdmi binding, so the generic driver no longer picks up the pixel clock. Previously it held the pre-PLL powered from probe and sized the DDC divider from the wrong rate. - Dropped the clk suffixes and the single-entry -names properties from the bindings (Conor Dooley). mclk and bclk keep their names: per TRM 5.3 they are the HDMI audio clocks, not module and bus clocks, so the descriptions say that instead. - Replaced patternProperties with plain properties in the hdmi-subsystem binding (Conor Dooley). - dc8200 gets an SoC specific compatible, and inherits dma-noncoherent from the subsystem bus node, so it validates against verisilicon,dc. - Added the pre-PLL entry for the Framework 13 panel and fixed two devicetree whitespace nits (Maud Spierings). - select REGMAP_MMIO, CLK_SET_RATE_NO_REPARENT on the dc8200 pixel MUXes so clk_set_rate() cannot reroute them, and inno-hdmi register reads return 0 instead of stack garbage when regmap_read() fails. - phy: rockchip: dropped the local pre-PLL lookup wrapper and the 28 now unused RK3328 pre-PLL macros, and restored the VCO debug output, this time in the shared helper so both drivers get it (Jonas Karlman). - Rebased onto v7.3-rc1. - Link to v2: https://lore.kernel.org/r/20260828-jh7110-clean-send-v2-0-331680c8b9d1@samsung.com Changes since the RFC: - Dropped the vout-subsystem wrapper driver and its binding, along with the patch relaxing the voutcrg binding; genpd handles PD_VOUT per node. - Renamed the compatible to starfive,jh7110-hdmi-subsystem, dropping "mfd" as a Linux term (Conor Dooley). - Absolute $refs in the bindings, unused example labels dropped, and the examples deduplicated between parent and children (Conor Dooley). - Added the .mode_valid platform operation (patch 7). - Split the inno-hdmi rework into a mechanical probe/bind split (patch 4) and the regmap-from-parent change (patch 5). struct inno_hdmi is no longer exported; no platform glue dereferences it. - Replaced the duplicated PHY driver with a shared Innosilicon library and moved Rockchip onto it (patches 11-13). - Fixed pre-PLL lock detection, which masked the status read with the register address instead of the lock bit. - Fixed a pixel clock refcount underflow: enable returns early on failure while disable tore down unconditionally. - voutcrg patch reduced to adding CLK_SET_RATE_PARENT to the two dc8200 pixel MUXes. - Rebased onto v7.2. --- Michal Wilczynski (18): drm/bridge: inno-hdmi: fix swapped HSYNC and VSYNC polarity drm/bridge: inno-hdmi: Report hotplug through drm_bridge_hpd_notify() dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem drm/bridge: inno-hdmi: Split probe out of bind drm/bridge: inno-hdmi: Use a regmap for register access drm/bridge: inno-hdmi: Add .disable platform operation drm/bridge: inno-hdmi: Add .mode_valid platform operation drm/bridge: inno-hdmi: Make the PHY configuration table optional drm/bridge: inno-hdmi: Make the register clock source selectable drm/bridge: inno-hdmi: Make the supported HDMI version selectable soc: starfive: Add jh7110-hdmi-subsystem driver soc: starfive: Add jh7110-vout-subsystem driver drm/bridge: starfive: Add JH7110 HDMI controller driver riscv: dts: starfive: jh7110: Update DT for display subsystem MAINTAINERS: Add StarFive JH7110 display subsystem entry .../starfive,jh7110-inno-hdmi-controller.yaml | 121 +++++++++ .../starfive/starfive,jh7110-hdmi-subsystem.yaml | 95 +++++++ .../starfive/starfive,jh7110-vout-subsystem.yaml | 218 +++++++++++++++ .../soc/starfive/starfive,jh7110-syscon.yaml | 1 + MAINTAINERS | 11 + arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 117 +++++++- arch/riscv/boot/dts/starfive/jh7110.dtsi | 107 ++++++-- drivers/gpu/drm/bridge/Kconfig | 12 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/inno-hdmi.c | 140 +++++++--- drivers/gpu/drm/bridge/jh7110-inno-hdmi.c | 297 +++++++++++++++++++++ drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c | 2 +- drivers/soc/starfive/Kconfig | 34 +++ drivers/soc/starfive/Makefile | 2 + drivers/soc/starfive/jh7110-hdmi-subsystem.c | 72 +++++ drivers/soc/starfive/jh7110-vout-subsystem.c | 82 ++++++ include/drm/bridge/inno_hdmi.h | 17 +- 17 files changed, 1272 insertions(+), 57 deletions(-) --- base-commit: 56fcba438df5d6c0fbbeb1107fd6f5ff4bd29c20 change-id: 20251031-jh7110-clean-send-7d2242118026 prerequisite-change-id: 20261028-jh7110-inno-hdmi-phy-83e5cfa643e3:v8 prerequisite-patch-id: e78b1dab85d70fa7ec3e551560dfc90891546de9 prerequisite-patch-id: e3b5adebb535b30ccc1690a000cfab7b1d9d7467 prerequisite-patch-id: 4a3488cc151ae0e9ef053ea67e8e520520c7df15 prerequisite-patch-id: a141b181a25039b8ab0f3dd0c8002b62a3c096d2 prerequisite-patch-id: 997da9a6177a5a3fa159178268371a97a5fc1048 Best regards, -- Michal Wilczynski <m.wilczynski@samsung.com> ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155401eucas1p23c6e29781ee1e0d34bb8539a0a848625@eucas1p2.samsung.com>]
* [PATCH v8 01/18] drm/bridge: inno-hdmi: fix swapped HSYNC and VSYNC polarity [not found] ` <CGME20261124155401eucas1p23c6e29781ee1e0d34bb8539a0a848625@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir v_HSYNC_POLARITY() and v_VSYNC_POLARITY() write the wrong bits: the hardware puts HSYNC in bit 2 and VSYNC in bit 3, the macros do the opposite. Most CEA modes drive both syncs with the same polarity so it goes unnoticed; it only shows up on modes where the two differ. Fixes: 412d4ae6b7a5 ("drm/rockchip: hdmi: add Innosilicon HDMI support") Reported-by: Maud Spierings <maud_spierings@murena.io> Closes: https://lore.kernel.org/all/e780ecb8-918f-4816-99c8-b69b10b25a18@murena.io/ Reported-by: Byron Stanoszek <gandalf@winds.org> Closes: https://lore.kernel.org/all/b8b046ee-c574-3e16-6079-2fc415633dae@winds.org/ Suggested-by: Dominique Belhachemi <db@domibel.de> Tested-by: Maud Spierings <maud_spierings@murena.io> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 9470d51418aa79275196ca9604cc1c3b5fbbc531..6534ad7b16a7c6dfb9718269821b4dd1cd7c5d54 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -121,8 +121,8 @@ enum { #define v_VIDEO_MUTE(n) ((n) << 0) #define HDMI_VIDEO_TIMING_CTL 0x08 -#define v_HSYNC_POLARITY(n) ((n) << 3) -#define v_VSYNC_POLARITY(n) ((n) << 2) +#define v_VSYNC_POLARITY(n) ((n) << 3) +#define v_HSYNC_POLARITY(n) ((n) << 2) #define v_INETLACE(n) ((n) << 1) #define v_EXTERANL_VIDEO(n) ((n) << 0) -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155403eucas1p26cc9bf09dc326b2e48c3d2e7100b4ecf@eucas1p2.samsung.com>]
* [PATCH v8 02/18] drm/bridge: inno-hdmi: Report hotplug through drm_bridge_hpd_notify() [not found] ` <CGME20261124155403eucas1p26cc9bf09dc326b2e48c3d2e7100b4ecf@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea inno_hdmi_irq() passes hdmi->bridge.dev to drm_helper_hpd_irq_event(), which dereferences it in its first statement: if (!dev->mode_config.poll_enabled) bridge.dev is assigned only by drm_bridge_attach(), but inno_hdmi_bind() unmutes the hotplug interrupt in inno_hdmi_init_hw() and installs the handler well before it attaches the bridge: inno_hdmi_init_hw(hdmi); /* unmutes hotplug */ devm_request_threaded_irq(...); /* handler goes live */ ... hdmi->bridge.ddc = inno_hdmi_i2c_adapter(hdmi); devm_drm_bridge_add(dev, &hdmi->bridge); drm_bridge_attach(...); /* bridge.dev set here */ The bridge is allocated by devm_drm_bridge_alloc(), which kzalloc()s it, so bridge.dev is NULL for all of that window, and a hotplug event arriving in it enters drm_helper_hpd_irq_event(NULL). Checking bridge.dev first would not be enough either: nothing orders that read against drm_bridge_detach() clearing it while the drm_device is torn down. Before the conversion to a bridge the ordering was safe: inno_hdmi_register() called drmm_connector_hdmi_init(), which set connector.dev, before the interrupt was requested. The bridge already sets DRM_BRIDGE_OP_HPD, so report hotplug with drm_bridge_hpd_notify() instead. It only calls into the connector while the bridge connector has HPD enabled, under bridge->hpd_mutex, which covers both the window before attach and the teardown. That mutex is initialised by drm_bridge_add(), so request the interrupt after devm_drm_bridge_add(); devres then also frees the interrupt before it removes the bridge. Fixes: 969325a2597e ("drm/rockchip: inno-hdmi: Convert to drm bridge") Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 6534ad7b16a7c6dfb9718269821b4dd1cd7c5d54..48bb19d59314067343db2c1f3fa6be4d3f8dd1da 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -928,7 +928,8 @@ static irqreturn_t inno_hdmi_irq(int irq, void *dev_id) { struct inno_hdmi *hdmi = dev_id; - drm_helper_hpd_irq_event(hdmi->bridge.dev); + drm_bridge_hpd_notify(&hdmi->bridge, + inno_hdmi_bridge_detect(&hdmi->bridge, NULL)); return IRQ_HANDLED; } @@ -1103,12 +1104,6 @@ struct inno_hdmi *inno_hdmi_bind(struct device *dev, if (irq < 0) return ERR_PTR(irq); - ret = devm_request_threaded_irq(dev, irq, inno_hdmi_hardirq, - inno_hdmi_irq, IRQF_SHARED, - dev_name(dev), hdmi); - if (ret) - return ERR_PTR(ret); - hdmi->bridge.driver_private = hdmi; hdmi->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID | @@ -1128,6 +1123,16 @@ struct inno_hdmi *inno_hdmi_bind(struct device *dev, if (ret) return ERR_PTR(ret); + /* + * The hotplug handler takes the bridge's HPD mutex, which + * drm_bridge_add() initialises, so request the interrupt only now. + */ + ret = devm_request_threaded_irq(dev, irq, inno_hdmi_hardirq, + inno_hdmi_irq, IRQF_SHARED, + dev_name(dev), hdmi); + if (ret) + return ERR_PTR(ret); + ret = drm_bridge_attach(encoder, &hdmi->bridge, NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR); if (ret) return ERR_PTR(ret); -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155405eucas1p16e1890307874ae88842b4aa4c852f5af@eucas1p1.samsung.com>]
* [PATCH v8 03/18] dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller [not found] ` <CGME20261124155405eucas1p16e1890307874ae88842b4aa4c852f5af@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea Add the dt-binding for the StarFive JH7110 Innosilicon HDMI controller (DRM bridge). This device is the second child of the starfive,jh7110-hdmi-subsystem node. It consumes its register access, audio master and audio bit clocks (pclk, mclk, bclk) from voutcrg, and both the pixel clock (pixel) and the PHY from its hdmi_phy sibling. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- .../starfive,jh7110-inno-hdmi-controller.yaml | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml b/Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml new file mode 100644 index 0000000000000000000000000000000000000000..eb03404d8c60a6ecadd0a4f5aee7c46b6f4da3ee --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml @@ -0,0 +1,121 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 Innosilicon HDMI Controller + +maintainers: + - Michal Wilczynski <m.wilczynski@samsung.com> + +description: + The controller portion of the StarFive JH7110 INNO HDMI IP. + +properties: + compatible: + const: starfive,jh7110-inno-hdmi-controller + + interrupts: + maxItems: 1 + + clocks: + items: + - description: The HDMI controller main clock + - description: Audio master clock + - description: Audio bit clock, from the I2S transmitter + - description: The pixel clock, generated by the PHY + + clock-names: + items: + - const: pclk + - const: mclk + - const: bclk + - const: pixel + + resets: + maxItems: 1 + + phys: + maxItems: 1 + + starfive,vout-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the dom_vout_syscon system controller, which holds the mux + selecting the DC8200 output that drives the HDMI transmitter. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: + Input from the DC8200. The remote port number selects the DC8200 + panel and the remote endpoint number the interface on that panel, + 0 for DPI and 1 for DP. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Output to the HDMI connector. + + required: + - port@0 + - port@1 + +required: + - compatible + - interrupts + - clocks + - clock-names + - resets + - phys + - starfive,vout-syscon + - ports + +additionalProperties: false + +examples: + # Shown as a child of the HDMI subsystem node; see + # Documentation/devicetree/bindings/display/starfive/starfive,jh7110-hdmi-subsystem.yaml + # for the full node. + - | + #include <dt-bindings/clock/starfive,jh7110-crg.h> + #include <dt-bindings/reset/starfive,jh7110-crg.h> + + controller { + compatible = "starfive,jh7110-inno-hdmi-controller"; + clocks = <&voutcrg JH7110_VOUTCLK_HDMI_TX_SYS>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_MCLK>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_BCLK>, + <&hdmi_phy>; + clock-names = "pclk", "mclk", "bclk", "pixel"; + interrupts = <99>; + phys = <&hdmi_phy>; + resets = <&voutcrg JH7110_VOUTRST_HDMI_TX_HDMI>; + starfive,vout-syscon = <&vout_syscon>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&dpu_out_dpi0>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; + }; + +... -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155406eucas1p23a523deb496c21cbf3da3724812a8101@eucas1p2.samsung.com>]
* [PATCH v8 04/18] dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem [not found] ` <CGME20261124155406eucas1p23a523deb496c21cbf3da3724812a8101@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Conor Dooley Add the dt-binding for the StarFive JH7110 HDMI subsystem. The JH7110 HDMI IP is a monolithic block containing both the digital controller and analog PHY in a single register space. This binding defines the parent device, which holds the shared register map, and its two children: the PHY and the controller. The two have separate resources. The PHY takes the 24 MHz reference clock and provides both the pixel clock, which the VOUT clock generator routes on to the display controller, and the phy the controller uses. The controller takes its clocks from the VOUT clock generator. What they share is the register space, which the parent maps. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- .../starfive/starfive,jh7110-hdmi-subsystem.yaml | 95 ++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/Documentation/devicetree/bindings/display/starfive/starfive,jh7110-hdmi-subsystem.yaml b/Documentation/devicetree/bindings/display/starfive/starfive,jh7110-hdmi-subsystem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8c5b0b4deb702371ab1ffb40ccdb312dda9940ac --- /dev/null +++ b/Documentation/devicetree/bindings/display/starfive/starfive,jh7110-hdmi-subsystem.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/starfive/starfive,jh7110-hdmi-subsystem.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 HDMI subsystem + +maintainers: + - Michal Wilczynski <m.wilczynski@samsung.com> + +description: + The StarFive JH7110 HDMI block is a monolithic IP containing both + the digital controller logic and the analog PHY logic in a single + register space. It sits inside the video output subsystem, which owns + the NoC bus clock and reset gating this region and the power domain it + belongs to. + +properties: + compatible: + const: starfive,jh7110-hdmi-subsystem + + reg: + maxItems: 1 + + phy: + $ref: /schemas/phy/starfive,jh7110-inno-hdmi-phy.yaml# + + controller: + $ref: /schemas/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml# + +required: + - compatible + - reg + - phy + - controller + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/starfive,jh7110-crg.h> + #include <dt-bindings/reset/starfive,jh7110-crg.h> + + soc { + #address-cells = <1>; + #size-cells = <1>; + + hdmi@29590000 { + compatible = "starfive,jh7110-hdmi-subsystem"; + reg = <0x29590000 0x4000>; + + controller { + compatible = "starfive,jh7110-inno-hdmi-controller"; + clocks = <&voutcrg JH7110_VOUTCLK_HDMI_TX_SYS>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_MCLK>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_BCLK>, + <&hdmi_phy>; + clock-names = "pclk", "mclk", "bclk", "pixel"; + interrupts = <99>; + phys = <&hdmi_phy>; + resets = <&voutcrg JH7110_VOUTRST_HDMI_TX_HDMI>; + starfive,vout-syscon = <&vout_syscon>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&dpu_out_dpi0>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; + }; + + hdmi_phy: phy { + compatible = "starfive,jh7110-inno-hdmi-phy"; + #clock-cells = <0>; + clocks = <&xin24m>; + #phy-cells = <0>; + }; + }; + }; +... -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155408eucas1p205755e13b741cc44224d944e46575e28@eucas1p2.samsung.com>]
* [PATCH v8 05/18] dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon [not found] ` <CGME20261124155408eucas1p205755e13b741cc44224d944e46575e28@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Krzysztof Kozlowski, Conor Dooley The video output subsystem has its own system controller, documented as dom_vout_syscon. Among other things it holds the mux that selects which DC8200 output drives the HDMI transmitter, so the HDMI controller needs to reach it. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- .../devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml index 0039319e91fe6e6aadc4300114626348e4dfb7ce..cf9b657d0e8a3ed5c5688336fee4123e14a2ac58 100644 --- a/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml +++ b/Documentation/devicetree/bindings/soc/starfive/starfive,jh7110-syscon.yaml @@ -24,6 +24,7 @@ properties: - enum: - starfive,jh7110-aon-syscon - starfive,jh7110-stg-syscon + - starfive,jh7110-vout-syscon - const: syscon reg: -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155410eucas1p1a505fa8e80ea04caa33bbd7d1a8b796c@eucas1p1.samsung.com>]
* [PATCH v8 06/18] dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem [not found] ` <CGME20261124155410eucas1p1a505fa8e80ea04caa33bbd7d1a8b796c@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Conor Dooley The JH7110 groups its display hardware into a video output subsystem, dom_vout_top, covering the DC8200, the HDMI transmitter, the video output clock generator and the video output system controller. They share one NoC port whose clock and reset gate access to every register in the region, and the region sits in the PD_VOUT power domain. Describe the subsystem as a bus node so those resources are owned by the block that shares them. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- .../starfive/starfive,jh7110-vout-subsystem.yaml | 218 +++++++++++++++++++++ 1 file changed, 218 insertions(+) diff --git a/Documentation/devicetree/bindings/display/starfive/starfive,jh7110-vout-subsystem.yaml b/Documentation/devicetree/bindings/display/starfive/starfive,jh7110-vout-subsystem.yaml new file mode 100644 index 0000000000000000000000000000000000000000..74ac777d0406206b86ac77ca77003a32a7b10721 --- /dev/null +++ b/Documentation/devicetree/bindings/display/starfive/starfive,jh7110-vout-subsystem.yaml @@ -0,0 +1,218 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/starfive/starfive,jh7110-vout-subsystem.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 video output subsystem + +maintainers: + - Michal Wilczynski <m.wilczynski@samsung.com> + +description: + The JH7110 groups its display hardware into a video output subsystem, named + dom_vout_top in the documentation. It covers the DC8200 display controller, + the HDMI transmitter, the video output clock generator and the video output + system controller, all behind one NoC port. That port's clock and reset gate + access to every register in the region, and the region sits in the PD_VOUT + power domain, so this node owns those resources on behalf of its children. + +properties: + compatible: + const: starfive,jh7110-vout-subsystem + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: NoC display bus clock. + + resets: + maxItems: 1 + description: NoC display bus reset. + + power-domains: + maxItems: 1 + + dma-noncoherent: true + + ranges: true + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + +patternProperties: + "^display@[0-9a-f]+$": + type: object + additionalProperties: true + properties: + compatible: + contains: + const: starfive,jh7110-dc8200 + + "^hdmi@[0-9a-f]+$": + type: object + additionalProperties: true + properties: + compatible: + const: starfive,jh7110-hdmi-subsystem + + "^syscon@[0-9a-f]+$": + type: object + additionalProperties: true + properties: + compatible: + contains: + const: starfive,jh7110-vout-syscon + + "^clock-controller@[0-9a-f]+$": + type: object + additionalProperties: true + properties: + compatible: + const: starfive,jh7110-voutcrg + +required: + - compatible + - reg + - clocks + - resets + - power-domains + - ranges + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/starfive,jh7110-crg.h> + #include <dt-bindings/power/starfive,jh7110-pmu.h> + #include <dt-bindings/reset/starfive,jh7110-crg.h> + + soc { + #address-cells = <2>; + #size-cells = <2>; + + display-subsystem@29400000 { + compatible = "starfive,jh7110-vout-subsystem"; + reg = <0x0 0x29400000 0x0 0x200000>; + ranges; + #address-cells = <2>; + clocks = <&syscrg JH7110_SYSCLK_NOC_BUS_DISP_AXI>; + dma-noncoherent; + power-domains = <&pwrc JH7110_PD_VOUT>; + resets = <&syscrg JH7110_SYSRST_NOC_BUS_DISP_AXI>; + #size-cells = <2>; + + display@29400000 { + compatible = "starfive,jh7110-dc8200", "verisilicon,dc"; + reg = <0x0 0x29400000 0x0 0x2800>; + clocks = <&voutcrg JH7110_VOUTCLK_DC8200_CORE>, + <&voutcrg JH7110_VOUTCLK_DC8200_AXI>, + <&voutcrg JH7110_VOUTCLK_DC8200_AHB>, + <&voutcrg JH7110_VOUTCLK_DC8200_PIX0>, + <&voutcrg JH7110_VOUTCLK_DC8200_PIX1>; + clock-names = "core", "axi", "ahb", "pix0", "pix1"; + interrupts = <95>; + resets = <&voutcrg JH7110_VOUTRST_DC8200_CORE>, + <&voutcrg JH7110_VOUTRST_DC8200_AXI>, + <&voutcrg JH7110_VOUTRST_DC8200_AHB>; + reset-names = "core", "axi", "ahb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + dpu_out_dpi0: endpoint@0 { + reg = <0>; + remote-endpoint = <&hdmi_in>; + }; + }; + + port@1 { + reg = <1>; + }; + }; + }; + + hdmi@29590000 { + compatible = "starfive,jh7110-hdmi-subsystem"; + reg = <0x0 0x29590000 0x0 0x4000>; + + controller { + compatible = "starfive,jh7110-inno-hdmi-controller"; + clocks = <&voutcrg JH7110_VOUTCLK_HDMI_TX_SYS>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_MCLK>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_BCLK>, + <&hdmi_phy>; + clock-names = "pclk", "mclk", "bclk", "pixel"; + interrupts = <99>; + phys = <&hdmi_phy>; + resets = <&voutcrg JH7110_VOUTRST_HDMI_TX_HDMI>; + starfive,vout-syscon = <&vout_syscon>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + hdmi_in: endpoint { + remote-endpoint = <&dpu_out_dpi0>; + }; + }; + + port@1 { + reg = <1>; + + endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; + }; + + hdmi_phy: phy { + compatible = "starfive,jh7110-inno-hdmi-phy"; + #clock-cells = <0>; + clocks = <&xin24m>; + #phy-cells = <0>; + }; + }; + + vout_syscon: syscon@295b0000 { + compatible = "starfive,jh7110-vout-syscon", "syscon"; + reg = <0x0 0x295b0000 0x0 0x10000>; + }; + + voutcrg: clock-controller@295c0000 { + compatible = "starfive,jh7110-voutcrg"; + reg = <0x0 0x295c0000 0x0 0x10000>; + #clock-cells = <1>; + clocks = <&syscrg JH7110_SYSCLK_VOUT_SRC>, + <&syscrg JH7110_SYSCLK_VOUT_TOP_AHB>, + <&syscrg JH7110_SYSCLK_VOUT_TOP_AXI>, + <&syscrg JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK>, + <&syscrg JH7110_SYSCLK_I2STX0_BCLK>, + <&hdmi_phy>; + clock-names = "vout_src", "vout_top_ahb", + "vout_top_axi", "vout_top_hdmitx0_mclk", + "i2stx0_bclk", "hdmitx0_pixelclk"; + power-domains = <&pwrc JH7110_PD_VOUT>; + #reset-cells = <1>; + resets = <&syscrg JH7110_SYSRST_VOUT_TOP_SRC>; + }; + }; + }; +... -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155412eucas1p2f62b824c68f30e1a52d7b9d878def311@eucas1p2.samsung.com>]
* [PATCH v8 07/18] drm/bridge: inno-hdmi: Split probe out of bind [not found] ` <CGME20261124155412eucas1p2f62b824c68f30e1a52d7b9d878def311@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir inno_hdmi_bind() both sets up the bridge and attaches it to a DRM encoder. A platform whose HDMI controller is a child of a larger device needs the first half without the second, since it registers as its own platform driver and lets the DRM core bind the bridge later. Move the setup into a new exported inno_hdmi_probe(), and reduce inno_hdmi_bind() to a wrapper around it. Like inno_hdmi_probe() and dw_hdmi_bind(), it now takes the platform_device, so the Rockchip glue does the to_platform_device() conversion instead. No functional change intended. Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 39 +++++++++++++++++++++++---- drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c | 2 +- include/drm/bridge/inno_hdmi.h | 6 ++++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 48bb19d59314067343db2c1f3fa6be4d3f8dd1da..9368814c1414c2e7a00f44dcced996a397ede150 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -1061,11 +1061,24 @@ static struct i2c_adapter *inno_hdmi_i2c_adapter(struct inno_hdmi *hdmi) return adap; } -struct inno_hdmi *inno_hdmi_bind(struct device *dev, - struct drm_encoder *encoder, - const struct inno_hdmi_plat_data *plat_data) +/** + * inno_hdmi_probe - Internal helper to perform common setup + * @pdev: platform device + * @plat_data: SoC-specific platform data + * + * This function handles all the common hardware setup: allocating the main + * struct, mapping registers, getting clocks, initializing the hardware, + * setting up the IRQ, and initializing the DDC adapter and bridge struct. + * + * It registers the bridge but does not attach it, for glue drivers that probe + * as their own platform device rather than through a component bind. + * + * Return: the inno_hdmi instance on success, or an ERR_PTR() on failure. + */ +struct inno_hdmi *inno_hdmi_probe(struct platform_device *pdev, + const struct inno_hdmi_plat_data *plat_data) { - struct platform_device *pdev = to_platform_device(dev); + struct device *dev = &pdev->dev; struct inno_hdmi *hdmi; int irq; int ret; @@ -1133,7 +1146,23 @@ struct inno_hdmi *inno_hdmi_bind(struct device *dev, if (ret) return ERR_PTR(ret); - ret = drm_bridge_attach(encoder, &hdmi->bridge, NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR); + return hdmi; +} +EXPORT_SYMBOL_GPL(inno_hdmi_probe); + +struct inno_hdmi *inno_hdmi_bind(struct platform_device *pdev, + struct drm_encoder *encoder, + const struct inno_hdmi_plat_data *plat_data) +{ + struct inno_hdmi *hdmi; + int ret; + + hdmi = inno_hdmi_probe(pdev, plat_data); + if (IS_ERR(hdmi)) + return hdmi; + + ret = drm_bridge_attach(encoder, &hdmi->bridge, NULL, + DRM_BRIDGE_ATTACH_NO_CONNECTOR); if (ret) return ERR_PTR(ret); diff --git a/drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c index 33ff195bd2e65367792710ed2bcfb2f7c217d8e6..1f04489477e07f61e8793e08e03e73566366c725 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c @@ -127,7 +127,7 @@ static int inno_hdmi_rockchip_bind(struct device *dev, struct device *master, vo dev_set_drvdata(dev, hdmi); - hdmi->base = inno_hdmi_bind(dev, encoder, plat_data); + hdmi->base = inno_hdmi_bind(to_platform_device(dev), encoder, plat_data); connector = drm_bridge_connector_init(drm, encoder); if (IS_ERR(connector)) { diff --git a/include/drm/bridge/inno_hdmi.h b/include/drm/bridge/inno_hdmi.h index 5bbcaeea94e2a20fd0dc0ae0c6946eb5604bbaf6..507d5e999183ca02e7dcbe4ce7568acc21426a89 100644 --- a/include/drm/bridge/inno_hdmi.h +++ b/include/drm/bridge/inno_hdmi.h @@ -12,6 +12,7 @@ struct device; struct drm_encoder; struct drm_display_mode; struct inno_hdmi; +struct platform_device; struct inno_hdmi_plat_ops { void (*enable)(struct device *pdev, struct drm_display_mode *mode); @@ -29,7 +30,10 @@ struct inno_hdmi_plat_data { struct inno_hdmi_phy_config *default_phy_config; }; -struct inno_hdmi *inno_hdmi_bind(struct device *pdev, +struct inno_hdmi *inno_hdmi_bind(struct platform_device *pdev, struct drm_encoder *encoder, const struct inno_hdmi_plat_data *plat_data); + +struct inno_hdmi *inno_hdmi_probe(struct platform_device *pdev, + const struct inno_hdmi_plat_data *plat_data); #endif /* __INNO_HDMI__ */ -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155414eucas1p1061b3aa17e9780ca95c2a723c350495f@eucas1p1.samsung.com>]
* [PATCH v8 08/18] drm/bridge: inno-hdmi: Use a regmap for register access [not found] ` <CGME20261124155414eucas1p1061b3aa17e9780ca95c2a723c350495f@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Owen O'Hehir On some SoCs the HDMI controller does not own its register window. The StarFive JH7110 documents one 64 KB block, u0_hdmitx, that holds both the controller and the PHY, so the parent device maps it and owns the regmap while the two children share it. Access the registers through a regmap. Use the one supplied by the parent device when there is one, and otherwise create an MMIO regmap over our own resource. The MMIO regmap uses 32-bit accesses with a 4-byte stride, matching the readl_relaxed() and writel_relaxed() calls it replaces, so the Rockchip platforms see the same register accesses. Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/inno-hdmi.c | 39 ++++++++++++++++++++++++++++++++------ 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index c7da6b02d7b6b281f328fb3016ea2f167f8da093..34bcee88170317a4796178452ab5d2e673daf1fd 100644 --- a/drivers/gpu/drm/bridge/Kconfig +++ b/drivers/gpu/drm/bridge/Kconfig @@ -105,6 +105,7 @@ config DRM_INNO_HDMI select DRM_DISPLAY_HDMI_HELPER select DRM_DISPLAY_HELPER select DRM_KMS_HELPER + select REGMAP_MMIO config DRM_ITE_IT6263 tristate "ITE IT6263 LVDS/HDMI bridge" diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 9368814c1414c2e7a00f44dcced996a397ede150..9b90a37bf29d164b6500ddd119bcf8ca094a1735 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -395,7 +395,7 @@ struct inno_hdmi { struct drm_bridge bridge; struct clk *pclk; struct clk *refclk; - void __iomem *regs; + struct regmap *regmap; struct regmap *grf; struct inno_hdmi_i2c *i2c; @@ -467,14 +467,25 @@ static int inno_hdmi_find_phy_config(struct inno_hdmi *hdmi, return -EINVAL; } +static const struct regmap_config inno_hdmi_regmap_config = { + .reg_bits = 32, + .val_bits = 32, + .reg_stride = 4, +}; + static inline u8 hdmi_readb(struct inno_hdmi *hdmi, u16 offset) { - return readl_relaxed(hdmi->regs + (offset) * 0x04); + u32 val; + + if (regmap_read(hdmi->regmap, offset * 4, &val)) + return 0; + + return val; } static inline void hdmi_writeb(struct inno_hdmi *hdmi, u16 offset, u32 val) { - writel_relaxed(val, hdmi->regs + (offset) * 0x04); + regmap_write(hdmi->regmap, offset * 4, val); } static inline void hdmi_modb(struct inno_hdmi *hdmi, u16 offset, @@ -1080,6 +1091,7 @@ struct inno_hdmi *inno_hdmi_probe(struct platform_device *pdev, { struct device *dev = &pdev->dev; struct inno_hdmi *hdmi; + void __iomem *regs; int irq; int ret; @@ -1095,9 +1107,24 @@ struct inno_hdmi *inno_hdmi_probe(struct platform_device *pdev, hdmi->dev = dev; hdmi->plat_data = plat_data; - hdmi->regs = devm_platform_ioremap_resource(pdev, 0); - if (IS_ERR(hdmi->regs)) - return ERR_CAST(hdmi->regs); + /* + * On platforms where the controller shares a register space with + * other blocks, the parent owns the regmap. Otherwise map our own + * resource. + */ + if (dev->parent) + hdmi->regmap = dev_get_regmap(dev->parent, NULL); + + if (!hdmi->regmap) { + regs = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(regs)) + return ERR_CAST(regs); + + hdmi->regmap = devm_regmap_init_mmio(dev, regs, + &inno_hdmi_regmap_config); + if (IS_ERR(hdmi->regmap)) + return ERR_CAST(hdmi->regmap); + } hdmi->pclk = devm_clk_get_enabled(hdmi->dev, "pclk"); if (IS_ERR(hdmi->pclk)) { -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155416eucas1p1d074766d9b700f0f829cf9bdc700bea5@eucas1p1.samsung.com>]
* [PATCH v8 09/18] drm/bridge: inno-hdmi: Add .disable platform operation [not found] ` <CGME20261124155416eucas1p1d074766d9b700f0f829cf9bdc700bea5@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir The Innosilicon HDMI driver supports platform-specific behavior through the `inno_hdmi_plat_ops`. While it provides an `.enable` hook for platform-specific power up sequences (like enabling PHYs), it lacks a corresponding hook for power down. This patch adds a new `.disable` op to the `inno_hdmi_plat_ops` struct and calls it at the beginning of `inno_hdmi_bridge_atomic_disable()`. This allows platform specific drivers, such as the StarFive JH7110, to implement their own power down sequence (e.g., calling phy_power_off() and clk_disable_unprepare()). Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 4 ++++ include/drm/bridge/inno_hdmi.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 9b90a37bf29d164b6500ddd119bcf8ca094a1735..2b1e2d61e4433ead684b9de41610000fb11e07e9 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -881,6 +881,10 @@ static void inno_hdmi_bridge_atomic_disable(struct drm_bridge *bridge, struct drm_atomic_commit *state) { struct inno_hdmi *hdmi = bridge_to_inno_hdmi(bridge); + const struct inno_hdmi_plat_ops *plat_ops = hdmi->plat_data->ops; + + if (plat_ops && plat_ops->disable) + plat_ops->disable(hdmi->dev); inno_hdmi_standby(hdmi); } diff --git a/include/drm/bridge/inno_hdmi.h b/include/drm/bridge/inno_hdmi.h index 507d5e999183ca02e7dcbe4ce7568acc21426a89..0864f0d8862a4325821a84db6d04f14011d9aa78 100644 --- a/include/drm/bridge/inno_hdmi.h +++ b/include/drm/bridge/inno_hdmi.h @@ -16,6 +16,7 @@ struct platform_device; struct inno_hdmi_plat_ops { void (*enable)(struct device *pdev, struct drm_display_mode *mode); + void (*disable)(struct device *pdev); }; struct inno_hdmi_phy_config { -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155417eucas1p1800c657fb3f28861a7bd0e01018d936c@eucas1p1.samsung.com>]
* [PATCH v8 10/18] drm/bridge: inno-hdmi: Add .mode_valid platform operation [not found] ` <CGME20261124155417eucas1p1800c657fb3f28861a7bd0e01018d936c@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir inno_hdmi_bridge_mode_valid() validates the pixel clock against hdmi->refclk, but that clock is optional and is only present on platforms that describe a "ref" clock. Platforms where the pixel clock is produced by a separate device - such as the StarFive JH7110, whose PHY is both the clock and the PHY provider - have no "ref" clock, so the check is skipped entirely and every mode is reported as valid. A mode the platform cannot generate is then advertised to userspace. The subsequent modeset appears to succeed, since the atomic enable path cannot fail, and the display silently stays blank. Add a .mode_valid platform operation so platforms can reject modes they are unable to drive. Platforms that do not implement it are unaffected. Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 9 +++++++++ include/drm/bridge/inno_hdmi.h | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 2b1e2d61e4433ead684b9de41610000fb11e07e9..0932ec47f151b531f63e7c42c715a6ae7fe252fd 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -818,6 +818,7 @@ static enum drm_mode_status inno_hdmi_bridge_mode_valid(struct drm_bridge *bridg const struct drm_display_mode *mode) { struct inno_hdmi *hdmi = bridge_to_inno_hdmi(bridge); + const struct inno_hdmi_plat_ops *plat_ops = hdmi->plat_data->ops; unsigned long mpixelclk, max_tolerance; long rounded_refclk; @@ -833,6 +834,14 @@ static enum drm_mode_status inno_hdmi_bridge_mode_valid(struct drm_bridge *bridg if (inno_hdmi_find_phy_config(hdmi, mpixelclk) < 0) return MODE_CLOCK_HIGH; + if (plat_ops && plat_ops->mode_valid) { + enum drm_mode_status status; + + status = plat_ops->mode_valid(hdmi->dev, mode); + if (status != MODE_OK) + return status; + } + if (hdmi->refclk) { rounded_refclk = clk_round_rate(hdmi->refclk, mpixelclk); if (rounded_refclk < 0) diff --git a/include/drm/bridge/inno_hdmi.h b/include/drm/bridge/inno_hdmi.h index 0864f0d8862a4325821a84db6d04f14011d9aa78..790633fcea97a6b9840da7b19a0c0b0d7271fb83 100644 --- a/include/drm/bridge/inno_hdmi.h +++ b/include/drm/bridge/inno_hdmi.h @@ -8,15 +8,18 @@ #include <linux/types.h> +#include <drm/drm_modes.h> + struct device; struct drm_encoder; -struct drm_display_mode; struct inno_hdmi; struct platform_device; struct inno_hdmi_plat_ops { void (*enable)(struct device *pdev, struct drm_display_mode *mode); void (*disable)(struct device *pdev); + enum drm_mode_status (*mode_valid)(struct device *pdev, + const struct drm_display_mode *mode); }; struct inno_hdmi_phy_config { -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155419eucas1p1be4546e9ca9aa75f3f98c9a63d7e8ae6@eucas1p1.samsung.com>]
* [PATCH v8 11/18] drm/bridge: inno-hdmi: Make the PHY configuration table optional [not found] ` <CGME20261124155419eucas1p1be4546e9ca9aa75f3f98c9a63d7e8ae6@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir The pre-emphasis and drive-strength values in inno_hdmi_phy_config, and the registers they are written to, belong to the PHY integrated into the controller. A platform whose PHY is a separate device has neither, and its own .mode_valid already validates the pixel clock against the real PHY, so the table only bounds the generic check. Let such a platform omit the table: skip the table-driven pre-emphasis and drive-strength writes in the power-up path and the table lookup in .mode_valid when it is absent. Platforms that supply one are unaffected. Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 0932ec47f151b531f63e7c42c715a6ae7fe252fd..19cea14d142667f7f4534db8fbcf7806f2f37943 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -533,8 +533,14 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdmi, unsigned long mpixelclock) { struct inno_hdmi_phy_config *phy_config; - int ret = inno_hdmi_find_phy_config(hdmi, mpixelclock); + int ret; + + inno_hdmi_sys_power(hdmi, false); + + if (!hdmi->plat_data->phy_configs) + goto out; + ret = inno_hdmi_find_phy_config(hdmi, mpixelclock); if (ret < 0) { phy_config = hdmi->plat_data->default_phy_config; DRM_DEV_ERROR(hdmi->dev, @@ -544,8 +550,6 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdmi, phy_config = &hdmi->plat_data->phy_configs[ret]; } - inno_hdmi_sys_power(hdmi, false); - hdmi_writeb(hdmi, HDMI_PHY_PRE_EMPHASIS, phy_config->pre_emphasis); hdmi_writeb(hdmi, HDMI_PHY_DRIVER, phy_config->voltage_level_control); hdmi_writeb(hdmi, HDMI_PHY_SYS_CTL, 0x15); @@ -555,6 +559,7 @@ static void inno_hdmi_power_up(struct inno_hdmi *hdmi, hdmi_writeb(hdmi, HDMI_PHY_SYNC, 0x00); hdmi_writeb(hdmi, HDMI_PHY_SYNC, 0x01); +out: inno_hdmi_sys_power(hdmi, true); }; @@ -831,7 +836,8 @@ static enum drm_mode_status inno_hdmi_bridge_mode_valid(struct drm_bridge *bridg if (mpixelclk < HDMI_TMDS_CHAR_RATE_MIN_HZ) return MODE_CLOCK_LOW; - if (inno_hdmi_find_phy_config(hdmi, mpixelclk) < 0) + if (hdmi->plat_data->phy_configs && + inno_hdmi_find_phy_config(hdmi, mpixelclk) < 0) return MODE_CLOCK_HIGH; if (plat_ops && plat_ops->mode_valid) { @@ -1108,11 +1114,6 @@ struct inno_hdmi *inno_hdmi_probe(struct platform_device *pdev, int irq; int ret; - if (!plat_data->phy_configs || !plat_data->default_phy_config) { - dev_err(dev, "Missing platform PHY ops\n"); - return ERR_PTR(-ENODEV); - } - hdmi = devm_drm_bridge_alloc(dev, struct inno_hdmi, bridge, &inno_hdmi_bridge_funcs); if (IS_ERR(hdmi)) return ERR_CAST(hdmi); -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155421eucas1p17ba32e556ed232c18e3b573eb12f1ebd@eucas1p1.samsung.com>]
* [PATCH v8 12/18] drm/bridge: inno-hdmi: Make the register clock source selectable [not found] ` <CGME20261124155421eucas1p17ba32e556ed232c18e3b573eb12f1ebd@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir inno_hdmi_init_hw() drives the register interface from the system clock on every platform, by setting v_REG_CLK_SOURCE_SYS unconditionally in HDMI_SYS_CTRL. That is not right everywhere. On the JH7110 a Framework 13 (fml13v01) panel flickers continuously with the system clock selected and behaves once the TMDS clock drives the register interface instead. Maud Spierings found this by diffing HDMI_SYS_CTRL against the StarFive vendor kernel, which leaves the bit clear. Add a plat_data flag for it rather than changing the bit for everyone. The Rockchip integrations keep the system clock, so this is a no-op for them; only a platform that asks for it gets the TMDS clock. Reported-by: Maud Spierings <maud_spierings@murena.io> Closes: https://lore.kernel.org/all/e780ecb8-918f-4816-99c8-b69b10b25a18@murena.io/ Tested-by: Maud Spierings <maud_spierings@murena.io> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 4 +++- include/drm/bridge/inno_hdmi.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 19cea14d142667f7f4534db8fbcf7806f2f37943..19add900bf728ca7dcdd1b3605d3fbcb2e879db4 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -575,7 +575,9 @@ static void inno_hdmi_init_hw(struct inno_hdmi *hdmi) usleep_range(100, 150); msk = m_REG_CLK_INV | m_REG_CLK_SOURCE | m_POWER | m_INT_POL; - val = v_REG_CLK_INV | v_REG_CLK_SOURCE_SYS | v_PWR_ON | v_INT_POL_HIGH; + val = v_REG_CLK_INV | v_PWR_ON | v_INT_POL_HIGH; + val |= hdmi->plat_data->reg_clk_source_tmds ? v_REG_CLK_SOURCE_TMDS : + v_REG_CLK_SOURCE_SYS; hdmi_modb(hdmi, HDMI_SYS_CTRL, msk, val); inno_hdmi_standby(hdmi); diff --git a/include/drm/bridge/inno_hdmi.h b/include/drm/bridge/inno_hdmi.h index 790633fcea97a6b9840da7b19a0c0b0d7271fb83..cc5099d05f641eef5de91ed5becde7337c04b013 100644 --- a/include/drm/bridge/inno_hdmi.h +++ b/include/drm/bridge/inno_hdmi.h @@ -32,6 +32,8 @@ struct inno_hdmi_plat_data { const struct inno_hdmi_plat_ops *ops; struct inno_hdmi_phy_config *phy_configs; struct inno_hdmi_phy_config *default_phy_config; + /* Clock the register interface from the TMDS clock, not the system clock. */ + bool reg_clk_source_tmds; }; struct inno_hdmi *inno_hdmi_bind(struct platform_device *pdev, -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155423eucas1p2dc9d18f8a847d77c60615bc7f37ed657@eucas1p2.samsung.com>]
* [PATCH v8 13/18] drm/bridge: inno-hdmi: Make the supported HDMI version selectable [not found] ` <CGME20261124155423eucas1p2dc9d18f8a847d77c60615bc7f37ed657@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Owen O'Hehir inno_hdmi_probe() advertises HDMI 1.2 for every integration, which caps the TMDS character rate at 165 MHz. That matches the Rockchip variants, whose PHY configuration tables stop at 165 MHz, but not every SoC that uses this controller: the StarFive JH7110 supports HDMI 1.4b and drives pixel clocks up to 297 MHz for 3840x2160 and 4096x2160 at 30 Hz. Add a plat_data field for the supported version and keep HDMI 1.2 when it is left unset, so the Rockchip integrations are unchanged. Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/inno-hdmi.c | 3 ++- include/drm/bridge/inno_hdmi.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/inno-hdmi.c b/drivers/gpu/drm/bridge/inno-hdmi.c index 19add900bf728ca7dcdd1b3605d3fbcb2e879db4..8b9850637dcc677bbba61b4a93a3db6c0dcd020c 100644 --- a/drivers/gpu/drm/bridge/inno-hdmi.c +++ b/drivers/gpu/drm/bridge/inno-hdmi.c @@ -1169,7 +1169,8 @@ struct inno_hdmi *inno_hdmi_probe(struct platform_device *pdev, hdmi->bridge.type = DRM_MODE_CONNECTOR_HDMIA; hdmi->bridge.vendor = "Inno"; hdmi->bridge.product = "Inno HDMI"; - hdmi->bridge.supported_hdmi_ver = HDMI_VERSION_1_2; + hdmi->bridge.supported_hdmi_ver = plat_data->supported_hdmi_ver ?: + HDMI_VERSION_1_2; hdmi->bridge.ddc = inno_hdmi_i2c_adapter(hdmi); if (IS_ERR(hdmi->bridge.ddc)) diff --git a/include/drm/bridge/inno_hdmi.h b/include/drm/bridge/inno_hdmi.h index cc5099d05f641eef5de91ed5becde7337c04b013..89a38f26091eda1ef7818fea9d1d9c99e4ae019e 100644 --- a/include/drm/bridge/inno_hdmi.h +++ b/include/drm/bridge/inno_hdmi.h @@ -6,6 +6,7 @@ #ifndef __INNO_HDMI__ #define __INNO_HDMI__ +#include <linux/hdmi.h> #include <linux/types.h> #include <drm/drm_modes.h> @@ -34,6 +35,8 @@ struct inno_hdmi_plat_data { struct inno_hdmi_phy_config *default_phy_config; /* Clock the register interface from the TMDS clock, not the system clock. */ bool reg_clk_source_tmds; + /* HDMI version the integration supports; HDMI 1.2 if left unset. */ + enum hdmi_version supported_hdmi_ver; }; struct inno_hdmi *inno_hdmi_bind(struct platform_device *pdev, -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155425eucas1p2035620902a47a26cb56909c0afda250f@eucas1p2.samsung.com>]
* [PATCH v8 14/18] soc: starfive: Add jh7110-hdmi-subsystem driver [not found] ` <CGME20261124155425eucas1p2035620902a47a26cb56909c0afda250f@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir, Conor Dooley Add the parent driver for the monolithic JH7110 HDMI IP block. This driver binds to the starfive,jh7110-hdmi-subsystem node. It maps the shared register block, creates a regmap, and calls devm_of_platform_populate() to create its hdmi_phy and hdmi_controller child devices, which retrieve the shared regmap from this parent. The NoC display bus clock and reset that gate access to this region, and the PD_VOUT power domain it sits in, are held by the video output subsystem parent for as long as this device exists, so there is nothing for this driver to bring up itself. Co-developed-by: Dominique Belhachemi <db@domibel.de> Signed-off-by: Dominique Belhachemi <db@domibel.de> Tested-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/soc/starfive/Kconfig | 18 +++++++ drivers/soc/starfive/Makefile | 1 + drivers/soc/starfive/jh7110-hdmi-subsystem.c | 72 ++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) diff --git a/drivers/soc/starfive/Kconfig b/drivers/soc/starfive/Kconfig index 04b020083d3eecd7754bb2e2ec1b4fc8f525a344..e19994a212d4af49eaed595bab6fecc19677b2b3 100644 --- a/drivers/soc/starfive/Kconfig +++ b/drivers/soc/starfive/Kconfig @@ -3,4 +3,22 @@ menu "StarFive SoC (System On Chip) specific Drivers" source "drivers/soc/starfive/socinfo/Kconfig" +config SOC_STARFIVE_JH7110_HDMI_SUBSYSTEM + tristate "StarFive JH7110 HDMI subsystem driver" + depends on ARCH_STARFIVE || COMPILE_TEST + depends on OF + select REGMAP_MMIO + help + This option enables the parent driver + for the monolithic StarFive JH7110 HDMI peripheral. + + The JH7110 HDMI IP block contains both the digital controller + (DRM bridge) and the analog PHY (clock/phy provider) logic within + a single shared register space. + + This driver acts as a wrapper. Its only job is to map the + shared registers and create separate logical child devices + for the "PHY" and the "controller", which have their own clocks + and roles but share the register space. + endmenu diff --git a/drivers/soc/starfive/Makefile b/drivers/soc/starfive/Makefile index ca1e609b81045f5e11daf249c116b22c8dc0e4d0..36fbb6f984986e4794ffb2c6c1485b6644efc4eb 100644 --- a/drivers/soc/starfive/Makefile +++ b/drivers/soc/starfive/Makefile @@ -1,2 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y += socinfo/ +obj-$(CONFIG_SOC_STARFIVE_JH7110_HDMI_SUBSYSTEM) += jh7110-hdmi-subsystem.o diff --git a/drivers/soc/starfive/jh7110-hdmi-subsystem.c b/drivers/soc/starfive/jh7110-hdmi-subsystem.c new file mode 100644 index 0000000000000000000000000000000000000000..b01dc66450f516599c013df0383e6fde987f390e --- /dev/null +++ b/drivers/soc/starfive/jh7110-hdmi-subsystem.c @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Driver for the StarFive JH7110 HDMI subsystem + * + * Copyright (c) 2025 Samsung Electronics Co., Ltd. + * Author: Michal Wilczynski <m.wilczynski@samsung.com> + * + * This driver binds to the monolithic HDMI block and creates separate + * logical platform devices for the HDMI Controller (bridge) and the + * HDMI PHY (clock/phy provider), allowing them to share a single regmap. + */ + +#include <linux/module.h> +#include <linux/of.h> +#include <linux/of_platform.h> +#include <linux/platform_device.h> +#include <linux/regmap.h> + +static const struct regmap_config starfive_hdmi_regmap_config = { + .reg_bits = 32, + .val_bits = 8, + .max_register = 0x3fff, +}; + +static int starfive_hdmi_subsys_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct regmap *regmap; + void __iomem *regs; + int ret; + + /* + * The NoC display bus clock and reset that gate access to this region, + * and the PD_VOUT power domain it sits in, are held by the video + * output subsystem parent for as long as this device exists. + */ + regs = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(regs)) + return PTR_ERR(regs); + + regmap = devm_regmap_init_mmio(dev, regs, + &starfive_hdmi_regmap_config); + if (IS_ERR(regmap)) + return dev_err_probe(dev, PTR_ERR(regmap), + "Failed to init shared regmap\n"); + + ret = devm_of_platform_populate(dev); + if (ret) + return dev_err_probe(dev, ret, + "Failed to populate child devices\n"); + + return 0; +} + +static const struct of_device_id starfive_hdmi_subsys_of_match[] = { + { .compatible = "starfive,jh7110-hdmi-subsystem", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, starfive_hdmi_subsys_of_match); + +static struct platform_driver starfive_hdmi_subsys_driver = { + .probe = starfive_hdmi_subsys_probe, + .driver = { + .name = "starfive-hdmi-subsystem", + .of_match_table = starfive_hdmi_subsys_of_match, + }, +}; +module_platform_driver(starfive_hdmi_subsys_driver); + +MODULE_AUTHOR("Michal Wilczynski <m.wilczynski@samsung.com>"); +MODULE_DESCRIPTION("StarFive JH7110 HDMI subsystem Driver"); +MODULE_LICENSE("GPL"); -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155427eucas1p1d7984cd7c12532c271826fd19820a55f@eucas1p1.samsung.com>]
* [PATCH v8 15/18] soc: starfive: Add jh7110-vout-subsystem driver [not found] ` <CGME20261124155427eucas1p1d7984cd7c12532c271826fd19820a55f@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir, Conor Dooley Nothing in the video output subsystem can reach its own registers until the NoC display bus clock and reset are up and PD_VOUT is powered, and those are shared by every device in the region. Leaving them to whichever consumer probes first works by accident and stops working as soon as the probe order changes. Add a driver for the subsystem node that takes the bus clock and reset, holds a runtime PM reference so genpd keeps PD_VOUT powered, and then populates its children. All three are released only once the last child is gone. Tested-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/soc/starfive/Kconfig | 16 ++++++ drivers/soc/starfive/Makefile | 1 + drivers/soc/starfive/jh7110-vout-subsystem.c | 82 ++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) diff --git a/drivers/soc/starfive/Kconfig b/drivers/soc/starfive/Kconfig index e19994a212d4af49eaed595bab6fecc19677b2b3..d57480c42f2b6b06142b591e6ccef4909aced978 100644 --- a/drivers/soc/starfive/Kconfig +++ b/drivers/soc/starfive/Kconfig @@ -21,4 +21,20 @@ config SOC_STARFIVE_JH7110_HDMI_SUBSYSTEM for the "PHY" and the "controller", which have their own clocks and roles but share the register space. +config SOC_STARFIVE_JH7110_VOUT_SUBSYSTEM + tristate "StarFive JH7110 video output subsystem driver" + depends on ARCH_STARFIVE || COMPILE_TEST + depends on OF + select PM + help + This option enables the parent driver for the StarFive JH7110 + video output subsystem, which the documentation calls dom_vout_top. + + The subsystem covers the DC8200 display controller, the HDMI + transmitter, the video output clock generator and the video output + system controller. They share one NoC port whose clock and reset + gate access to the whole register region, and the region sits in + the PD_VOUT power domain. This driver owns those resources and + holds them for as long as any of its children exist. + endmenu diff --git a/drivers/soc/starfive/Makefile b/drivers/soc/starfive/Makefile index 36fbb6f984986e4794ffb2c6c1485b6644efc4eb..3b8b8a6847f9021920a9af7296c49e1c45114c34 100644 --- a/drivers/soc/starfive/Makefile +++ b/drivers/soc/starfive/Makefile @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only obj-y += socinfo/ obj-$(CONFIG_SOC_STARFIVE_JH7110_HDMI_SUBSYSTEM) += jh7110-hdmi-subsystem.o +obj-$(CONFIG_SOC_STARFIVE_JH7110_VOUT_SUBSYSTEM) += jh7110-vout-subsystem.o diff --git a/drivers/soc/starfive/jh7110-vout-subsystem.c b/drivers/soc/starfive/jh7110-vout-subsystem.c new file mode 100644 index 0000000000000000000000000000000000000000..af632692e2139d9d07edd478a299b170ad1b7104 --- /dev/null +++ b/drivers/soc/starfive/jh7110-vout-subsystem.c @@ -0,0 +1,82 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Driver for the StarFive JH7110 video output subsystem + * + * Copyright (c) 2025 Samsung Electronics Co., Ltd. + * Author: Michal Wilczynski <m.wilczynski@samsung.com> + * + * The display hardware sits behind a single NoC port whose clock and reset + * gate access to every register in the region, inside the PD_VOUT power + * domain. Nothing below this node can reach its own registers until all three + * are up, so bring them up here and hold them for as long as any child device + * exists, rather than leaving them to whichever consumer happens to probe + * first. + */ + +#include <linux/clk.h> +#include <linux/module.h> +#include <linux/of_platform.h> +#include <linux/platform_device.h> +#include <linux/pm_runtime.h> +#include <linux/reset.h> + +static void jh7110_vout_subsys_pm_put(void *data) +{ + pm_runtime_put_sync(data); +} + +static int jh7110_vout_subsys_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct reset_control *bus_rst; + struct clk *bus_clk; + int ret; + + /* + * Take a runtime PM reference for the lifetime of this device. genpd + * only keeps PD_VOUT powered while something actually holds it, and + * an unclocked or unpowered access to this region wedges the bus. + */ + ret = devm_pm_runtime_enable(dev); + if (ret) + return ret; + + ret = pm_runtime_resume_and_get(dev); + if (ret) + return dev_err_probe(dev, ret, "Failed to power on PD_VOUT\n"); + + ret = devm_add_action_or_reset(dev, jh7110_vout_subsys_pm_put, dev); + if (ret) + return ret; + + bus_clk = devm_clk_get_enabled(dev, NULL); + if (IS_ERR(bus_clk)) + return dev_err_probe(dev, PTR_ERR(bus_clk), + "Failed to enable NoC bus clock\n"); + + bus_rst = devm_reset_control_get_exclusive_deasserted(dev, NULL); + if (IS_ERR(bus_rst)) + return dev_err_probe(dev, PTR_ERR(bus_rst), + "Failed to deassert NoC bus reset\n"); + + return devm_of_platform_populate(dev); +} + +static const struct of_device_id jh7110_vout_subsys_of_match[] = { + { .compatible = "starfive,jh7110-vout-subsystem", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, jh7110_vout_subsys_of_match); + +static struct platform_driver jh7110_vout_subsys_driver = { + .probe = jh7110_vout_subsys_probe, + .driver = { + .name = "jh7110-vout-subsystem", + .of_match_table = jh7110_vout_subsys_of_match, + }, +}; +module_platform_driver(jh7110_vout_subsys_driver); + +MODULE_AUTHOR("Michal Wilczynski <m.wilczynski@samsung.com>"); +MODULE_DESCRIPTION("StarFive JH7110 video output subsystem driver"); +MODULE_LICENSE("GPL"); -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155429eucas1p1015c7cd9beec294fefdcd6900dd407f6@eucas1p1.samsung.com>]
* [PATCH v8 16/18] drm/bridge: starfive: Add JH7110 HDMI controller driver [not found] ` <CGME20261124155429eucas1p1015c7cd9beec294fefdcd6900dd407f6@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 2026-11-24 16:50 ` Philipp Zabel 0 siblings, 1 reply; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir Add the HDMI controller (bridge) driver for the StarFive JH7110. This driver binds to the starfive,jh7110-inno-hdmi-controller node. It gets its register access, module and bus clocks from voutcrg, and consumes the pixel clock and the PHY from its hdmi_phy sibling. The driver calls the generic inno_hdmi_probe function, which picks up the regmap shared with the PHY from the parent device and registers a DRM bridge. The .enable hook is responsible for setting the PHY's pixel clock rate via clk_set_rate() and powering on the PHY via phy_power_on(). The DC8200 has two panels, each exposing a DP and a DPI interface, and a mux in the video output system controller picks which of them drives the HDMI transmitter. It comes out of reset on panel 0 / DPI, which happens to be what the default wiring needs, so nothing has had to program it so far. Derive it from the port graph instead, taking the panel from the remote port number and the interface from the remote endpoint number, so that a board describing a different output is honoured. The generic driver holds the clock it looks up as the register access clock enabled for its lifetime, and derives the DDC divider from that clock's rate, so point it at the system clock. Naming the pixel clock there instead would keep the PHY pre-PLL powered from probe onwards and size the divider from the wrong rate. The PHY can only generate the discrete set of pixel clocks described by its pre-PLL table, so .mode_valid rejects any mode clk_round_rate() cannot satisfy. Without it such a mode would be advertised to userspace and the modeset would appear to succeed while the display stayed blank. .enable returns early when the rate is unsupported or the PHY fails to power on, so track whether the pixel clock was actually enabled and let .disable tear down only what was brought up, otherwise the clock refcount underflows. The clocks and the reset are torn down through devm rather than from .remove, so that they outlive the bridge that inno_hdmi_probe() adds with devm_drm_bridge_add(). Releasing them in .remove runs before devres unwinds and would leave the bridge registered with its clocks already gated. Tested-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- drivers/gpu/drm/bridge/Kconfig | 11 ++ drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/jh7110-inno-hdmi.c | 297 ++++++++++++++++++++++++++++++ 3 files changed, 309 insertions(+) diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index 34bcee88170317a4796178452ab5d2e673daf1fd..9c2a37ac816bbca843534662a08307a6bb37e6f8 100644 --- a/drivers/gpu/drm/bridge/Kconfig +++ b/drivers/gpu/drm/bridge/Kconfig @@ -357,6 +357,17 @@ config DRM_SOLOMON_SSD2825 Say M here if you want to support this hardware as a module. The module will be named "ssd2825". +config DRM_STARFIVE_JH7110_INNO_HDMI + tristate "Starfive JH7110 Innosilicon HDMI bridge" + depends on OF + depends on ARCH_STARFIVE || COMPILE_TEST + select DRM_INNO_HDMI + help + Enable support for the StarFive JH7110 specific implementation + of the Innosilicon HDMI controller. + This driver acts as a glue layer between the JH7110 HDMI subsystem + parent driver and the generic Innosilicon HDMI bridge driver. + config DRM_THINE_THC63LVD1024 tristate "Thine THC63LVD1024 LVDS decoder bridge" depends on OF diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makefile index 15cc821d85b7ea6f3cdc313f3e521b028de567d7..5d843f4ad7ed50b28cb75286c5e22789d91a0836 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -30,6 +30,7 @@ obj-$(CONFIG_DRM_SIL_SII8620) += sil-sii8620.o obj-$(CONFIG_DRM_SII902X) += sii902x.o obj-$(CONFIG_DRM_SII9234) += sii9234.o obj-$(CONFIG_DRM_SIMPLE_BRIDGE) += simple-bridge.o +obj-$(CONFIG_DRM_STARFIVE_JH7110_INNO_HDMI) += jh7110-inno-hdmi.o obj-$(CONFIG_DRM_SOLOMON_SSD2825) += ssd2825.o obj-$(CONFIG_DRM_THEAD_TH1520_DW_HDMI) += th1520-dw-hdmi.o obj-$(CONFIG_DRM_THINE_THC63LVD1024) += thc63lvd1024.o diff --git a/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c b/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c new file mode 100644 index 0000000000000000000000000000000000000000..a0283f83ddc93e3e6c9e9192b73dca9a63f9d9ab --- /dev/null +++ b/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c @@ -0,0 +1,297 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) StarFive Technology Co., Ltd. + * Copyright (c) 2025 Samsung Electronics Co., Ltd. + * Author: Michal Wilczynski <m.wilczynski@samsung.com> + * + * HDMI controller (bridge) driver for the StarFive JH7110 HDMI subsystem. + */ + +#include <linux/bitfield.h> +#include <linux/cleanup.h> +#include <linux/clk.h> +#include <linux/mfd/syscon.h> +#include <linux/module.h> +#include <linux/of_device.h> +#include <linux/of_graph.h> +#include <linux/platform_device.h> +#include <linux/phy/phy.h> +#include <linux/regmap.h> +#include <linux/reset.h> + +#include <drm/bridge/inno_hdmi.h> +#include <drm/drm_modes.h> + +/* dom_vout_syscon: HDMI pixel data mapping */ +#define VOUT_SYSCFG_4 0x4 +#define VOUT_HDMI_DP_BIT_DEPTH BIT(25) +#define VOUT_HDMI_DP_YUV_MODE GENMASK(27, 26) +#define VOUT_HDMI_DP_YUV_MODE_RGB 3 +#define VOUT_HDMI_DPI_BIT_DEPTH GENMASK(29, 28) +#define VOUT_HDMI_DPI_BIT_DEPTH_8BIT 0 +#define VOUT_HDMI_DPI_DP_SEL BIT(30) + +/* u2_display_panel_mux feeds HDMI_Ctrl, see the block diagram in 5.1 */ +#define VOUT_SYSCFG_8 0x8 +#define VOUT_HDMI_PANEL_SEL BIT(4) + +enum stf_hdmi_ctrl_clocks { CLK_SYS = 0, CLK_M, CLK_B, CLK_PCLK, CLK_CTRL_NUM }; + +struct stf_inno_hdmi_controller { + struct clk_bulk_data clks[CLK_CTRL_NUM]; + struct reset_control *tx_rst; + struct phy *phy; + bool enabled; +}; + +static enum drm_mode_status +inno_hdmi_starfive_mode_valid(struct device *dev, + const struct drm_display_mode *mode) +{ + struct stf_inno_hdmi_controller *ctrl = dev_get_drvdata(dev); + unsigned long pixelclk = mode->clock * 1000; + long rounded; + + /* + * The PHY can only generate the discrete set of pixel clocks described + * by its pre-PLL table, and clk_round_rate() fails for anything else. + * Reject those modes here: without this the modeset would appear to + * succeed while the PHY never produces a signal. + */ + rounded = clk_round_rate(ctrl->clks[CLK_PCLK].clk, pixelclk); + if (rounded != pixelclk) + return MODE_NOCLOCK; + + return MODE_OK; +} + +static void inno_hdmi_starfive_enable(struct device *dev, + struct drm_display_mode *mode) +{ + struct stf_inno_hdmi_controller *ctrl = dev_get_drvdata(dev); + int ret; + + /* + * 1. Set the pixel clock rate. This calls the PHY driver's .set_rate op. + */ + ret = clk_set_rate(ctrl->clks[CLK_PCLK].clk, mode->clock * 1000); + if (ret) { + dev_err(dev, "Failed to set pclk rate %d: %d\n", + mode->clock * 1000, ret); + return; + } + + /* + * 2. Enable the pixel clock. This calls the PHY driver's .prepare op. + */ + ret = clk_prepare_enable(ctrl->clks[CLK_PCLK].clk); + if (ret) { + dev_err(dev, "Failed to enable pclk: %d\n", ret); + return; + } + + /* + * 3. Power on the PHY. This calls the PHY driver's .power_on op, + * which configures the Post-PLL and analog blocks. + */ + ret = phy_power_on(ctrl->phy); + if (ret) { + dev_err(dev, "Failed to power on PHY: %d\n", ret); + clk_disable_unprepare(ctrl->clks[CLK_PCLK].clk); + return; + } + + ctrl->enabled = true; +} + +static void inno_hdmi_starfive_disable(struct device *dev) +{ + struct stf_inno_hdmi_controller *ctrl = dev_get_drvdata(dev); + + /* + * .enable bails out early if the pixel clock rate is unsupported or + * the PHY fails to power on, leaving pclk and the PHY untouched. + * Only tear down what was actually brought up, otherwise the clock + * refcount underflows. + */ + if (!ctrl->enabled) + return; + + phy_power_off(ctrl->phy); + clk_disable_unprepare(ctrl->clks[CLK_PCLK].clk); + ctrl->enabled = false; +} + +/* + * The DC8200 has two panels, each exposing a DP and a DPI interface, and a mux + * in dom_vout_syscon picks which of them drives the HDMI transmitter. Derive + * the mux setting from the port graph: the remote port number selects the + * DC8200 panel, and the remote endpoint number the interface on that panel + * (0 for DPI, 1 for DP). Both drive 8-bit RGB, the only format this driver + * currently produces. + */ +static int stf_inno_hdmi_setup_mux(struct device *dev) +{ + struct of_endpoint endpoint; + struct regmap *syscon; + u32 mask, val; + int ret; + + syscon = syscon_regmap_lookup_by_phandle(dev->of_node, + "starfive,vout-syscon"); + if (IS_ERR(syscon)) + return dev_err_probe(dev, PTR_ERR(syscon), + "Failed to get vout syscon\n"); + + struct device_node *ep __free(device_node) = + of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); + if (!ep) + return dev_err_probe(dev, -ENODEV, "No input endpoint\n"); + + struct device_node *remote __free(device_node) = + of_graph_get_remote_endpoint(ep); + if (!remote) + return dev_err_probe(dev, -ENODEV, + "Input endpoint is not connected\n"); + + ret = of_graph_parse_endpoint(remote, &endpoint); + if (ret) + return dev_err_probe(dev, ret, + "Failed to parse the remote endpoint\n"); + + if (endpoint.port > 1 || endpoint.id > 1) + return dev_err_probe(dev, -EINVAL, + "Unsupported DC8200 output %u/%u\n", + endpoint.port, endpoint.id); + + /* Data mapping: 8-bit RGB on whichever interface is in use. */ + mask = VOUT_HDMI_DPI_DP_SEL | VOUT_HDMI_DP_BIT_DEPTH | + VOUT_HDMI_DP_YUV_MODE | VOUT_HDMI_DPI_BIT_DEPTH; + val = FIELD_PREP(VOUT_HDMI_DPI_DP_SEL, endpoint.id) | + FIELD_PREP(VOUT_HDMI_DP_YUV_MODE, VOUT_HDMI_DP_YUV_MODE_RGB) | + FIELD_PREP(VOUT_HDMI_DPI_BIT_DEPTH, VOUT_HDMI_DPI_BIT_DEPTH_8BIT); + + ret = regmap_update_bits(syscon, VOUT_SYSCFG_4, mask, val); + if (ret) + return ret; + + /* Which DC8200 panel drives the HDMI transmitter. */ + return regmap_update_bits(syscon, VOUT_SYSCFG_8, VOUT_HDMI_PANEL_SEL, + FIELD_PREP(VOUT_HDMI_PANEL_SEL, + endpoint.port)); +} + +static void stf_inno_hdmi_clk_disable(void *data) +{ + struct stf_inno_hdmi_controller *ctrl = data; + + clk_bulk_disable_unprepare(CLK_CTRL_NUM - 1, ctrl->clks); +} + +static void stf_inno_hdmi_rst_assert(void *data) +{ + reset_control_assert(data); +} + +static int starfive_inno_hdmi_controller_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct stf_inno_hdmi_controller *ctrl; + const struct inno_hdmi_plat_data *plat_data; + struct inno_hdmi *inno; + int ret; + + ctrl = devm_kzalloc(dev, sizeof(*ctrl), GFP_KERNEL); + if (!ctrl) + return -ENOMEM; + + platform_set_drvdata(pdev, ctrl); + + ctrl->phy = devm_phy_get(dev, NULL); + if (IS_ERR(ctrl->phy)) + return dev_err_probe(dev, PTR_ERR(ctrl->phy), "Failed to get PHY\n"); + + ctrl->tx_rst = devm_reset_control_get_exclusive(dev, NULL); + if (IS_ERR(ctrl->tx_rst)) + return dev_err_probe(dev, PTR_ERR(ctrl->tx_rst), "failed to get tx reset\n"); + + /* Populate the clock names this controller *consumes* */ + ctrl->clks[CLK_SYS].id = "pclk"; + ctrl->clks[CLK_M].id = "mclk"; + ctrl->clks[CLK_B].id = "bclk"; + ctrl->clks[CLK_PCLK].id = "pixel"; /* Generated by the PHY */ + + ret = devm_clk_bulk_get(dev, CLK_CTRL_NUM, ctrl->clks); + if (ret) + return dev_err_probe(dev, ret, "Unable to get controller clocks\n"); + + /* + * Tear the clocks and the reset down through devm, so that they outlive + * everything registered after them. The bridge is added with + * devm_drm_bridge_add(), and unwinding in the wrong order would leave it + * registered while its clocks are already gated. + * + * The pixel clock is enabled on demand during modeset. + */ + ret = clk_bulk_prepare_enable(CLK_CTRL_NUM - 1, ctrl->clks); + if (ret) + return ret; + + ret = devm_add_action_or_reset(dev, stf_inno_hdmi_clk_disable, ctrl); + if (ret) + return ret; + + ret = reset_control_deassert(ctrl->tx_rst); + if (ret) + return ret; + + ret = devm_add_action_or_reset(dev, stf_inno_hdmi_rst_assert, + ctrl->tx_rst); + if (ret) + return ret; + + ret = stf_inno_hdmi_setup_mux(dev); + if (ret) + return ret; + + plat_data = of_device_get_match_data(dev); + + /* Hand off to the generic library to create the bridge. */ + inno = inno_hdmi_probe(pdev, plat_data); + if (IS_ERR(inno)) + return PTR_ERR(inno); + + return 0; +} + +static const struct inno_hdmi_plat_ops stf_inno_hdmi_plat_ops = { + .enable = inno_hdmi_starfive_enable, + .disable = inno_hdmi_starfive_disable, + .mode_valid = inno_hdmi_starfive_mode_valid, +}; + +static const struct inno_hdmi_plat_data stf_inno_hdmi_plat_data = { + .ops = &stf_inno_hdmi_plat_ops, + .reg_clk_source_tmds = true, + .supported_hdmi_ver = HDMI_VERSION_1_4, +}; + +static const struct of_device_id starfive_hdmi_controller_dt_ids[] = { + { .compatible = "starfive,jh7110-inno-hdmi-controller", + .data = &stf_inno_hdmi_plat_data }, + {} +}; +MODULE_DEVICE_TABLE(of, starfive_hdmi_controller_dt_ids); + +static struct platform_driver starfive_inno_hdmi_controller_driver = { + .probe = starfive_inno_hdmi_controller_probe, + .driver = { + .name = "starfive-inno-hdmi-controller", + .of_match_table = starfive_hdmi_controller_dt_ids, + }, +}; +module_platform_driver(starfive_inno_hdmi_controller_driver); + +MODULE_AUTHOR("Michal Wilczynski <m.wilczynski@samsung.com>"); +MODULE_DESCRIPTION("StarFive INNO HDMI Controller Driver"); +MODULE_LICENSE("GPL"); -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v8 16/18] drm/bridge: starfive: Add JH7110 HDMI controller driver 2026-11-24 15:52 ` [PATCH v8 16/18] drm/bridge: starfive: Add JH7110 HDMI controller driver Michal Wilczynski @ 2026-11-24 16:50 ` Philipp Zabel 0 siblings, 0 replies; 20+ messages in thread From: Philipp Zabel @ 2026-11-24 16:50 UTC (permalink / raw) To: Michal Wilczynski, Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir On Di, 2026-11-24 at 16:52 +0100, Michal Wilczynski wrote: > Add the HDMI controller (bridge) driver for the StarFive JH7110. > [...] > > Tested-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> > Tested-by: Byron Stanoszek <gandalf@winds.org> > Tested-by: Owen O'Hehir <oo.hehir@gmail.com> > Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> > --- > drivers/gpu/drm/bridge/Kconfig | 11 ++ > drivers/gpu/drm/bridge/Makefile | 1 + > drivers/gpu/drm/bridge/jh7110-inno-hdmi.c | 297 ++++++++++++++++++++++++++++++ > 3 files changed, 309 insertions(+) > [...] > diff --git a/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c b/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c > new file mode 100644 > index 0000000000000000000000000000000000000000..a0283f83ddc93e3e6c9e9192b73dca9a63f9d9ab > --- /dev/null > +++ b/drivers/gpu/drm/bridge/jh7110-inno-hdmi.c > @@ -0,0 +1,297 @@ [...] > + > +struct stf_inno_hdmi_controller { > + struct clk_bulk_data clks[CLK_CTRL_NUM]; > + struct reset_control *tx_rst; tx_rst is never used outside of starfive_inno_hdmi_controller_probe(), it could be a local variable. > + struct phy *phy; > + bool enabled; > +}; > + [...] > +static void stf_inno_hdmi_rst_assert(void *data) > +{ > + reset_control_assert(data); > +} > + > +static int starfive_inno_hdmi_controller_probe(struct platform_device *pdev) > +{ [...] > + ctrl->tx_rst = devm_reset_control_get_exclusive(dev, NULL); > + if (IS_ERR(ctrl->tx_rst)) > + return dev_err_probe(dev, PTR_ERR(ctrl->tx_rst), "failed to get tx reset\n"); > + [...] > + > + ret = reset_control_deassert(ctrl->tx_rst); > + if (ret) > + return ret; > + > + ret = devm_add_action_or_reset(dev, stf_inno_hdmi_rst_assert, > + ctrl->tx_rst); > + if (ret) > + return ret; This looks like it could be simplified with devm_reset_control_get_exclusive_deasserted(). regards Philipp ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155431eucas1p18761b3a7bbc4e018c6840db83d1c64fb@eucas1p1.samsung.com>]
* [PATCH v8 17/18] riscv: dts: starfive: jh7110: Update DT for display subsystem [not found] ` <CGME20261124155431eucas1p18761b3a7bbc4e018c6840db83d1c64fb@eucas1p1.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir Activate the display subsystem by describing the video output subsystem, which the documentation calls dom_vout_top, as a bus node covering the whole 0x29400000 region, with dc8200, the HDMI block, the video output system controller and voutcrg as its children. The subsystem node owns the resources its children share: the NoC display bus clock and reset that gate access to every register in the region, and the PD_VOUT power domain. Modelling it this way keeps a shared gate owned by the block that shares it, and lets dc8200 inherit dma-noncoherent for framebuffer DMA from the bus it sits on. The monolithic hdmi node is in turn modelled as a container with hdmi_phy and hdmi_controller children, which share its register window: the PHY takes only xin24m and provides the pixel clock and the phy, while the controller takes its clocks from voutcrg. voutcrg consumes the pixel clock from the &hdmi_phy node instead of the old fixed-clock, and dc8200 gets its pixel clocks from voutcrg's MUXes. The old, incorrect hdmitx0-pixel-clock fixed-clock node is removed. The HDMI controller gets a phandle to the video output system controller, which holds the mux selecting the DC8200 output that drives the HDMI transmitter. dc8200 and the HDMI controller need a board's port graph and pinctrl, so they are disabled in jh7110.dtsi and enabled in jh7110-common.dtsi. CMA is enlarged and constrained to memory the display controller can address, because the default pool is too small for its framebuffers. Co-developed-by: Dominique Belhachemi <db@domibel.de> Signed-off-by: Dominique Belhachemi <db@domibel.de> Tested-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- arch/riscv/boot/dts/starfive/jh7110-common.dtsi | 117 +++++++++++++++++++++++- arch/riscv/boot/dts/starfive/jh7110.dtsi | 107 +++++++++++++++++----- 2 files changed, 201 insertions(+), 23 deletions(-) diff --git a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi index 64de468f2c31764bc5eeb91156c37c7adf296308..3eadb5732b011dc7caf2018fd07126c62a24e138 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-common.dtsi @@ -33,6 +33,27 @@ memory@40000000 { bootph-pre-ram; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The display controller allocates its framebuffers from CMA, + * and the default pool is too small for them. Keep the pool + * inside the range the controller can address; it fits in the + * memory every VisionFive 2 variant has. + */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x0 0x20000000>; + alignment = <0x0 0x1000>; + alloc-ranges = <0x0 0x70000000 0x0 0x20000000>; + linux,cma-default; + }; + }; + gpio-restart { compatible = "gpio-restart"; gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>; @@ -73,12 +94,47 @@ codec { }; }; }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; }; &cpus { timebase-frequency = <4000000>; }; +&dc8200 { + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dpu_port0: port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + dpu_out_dpi0: endpoint@0 { + reg = <0>; + remote-endpoint = <&hdmi_in>; + }; + }; + + dpu_port1: port@1 { + reg = <1>; + }; + }; +}; + &dvp_clk { clock-frequency = <74250000>; }; @@ -99,8 +155,31 @@ &gmac1_rmii_refin { clock-frequency = <50000000>; }; -&hdmitx0_pixelclk { - clock-frequency = <297000000>; +&hdmi_controller { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_pins>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + hdmi_in: endpoint { + remote-endpoint = <&dpu_out_dpi0>; + }; + }; + + hdmi_out_port: port@1 { + reg = <1>; + + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; + }; + }; }; &i2srx_bclk_ext { @@ -356,6 +435,40 @@ &syscrg { }; &sysgpio { + hdmi_pins: hdmi-0 { + hdmi-cec-pins { + pinmux = <GPIOMUX(14, GPOUT_SYS_HDMI_CEC_SDA, + GPOEN_SYS_HDMI_CEC_SDA, + GPI_SYS_HDMI_CEC_SDA)>; + input-enable; + bias-pull-up; + }; + + hdmi-hpd-pins { + pinmux = <GPIOMUX(15, GPOUT_LOW, + GPOEN_DISABLE, + GPI_SYS_HDMI_HPD)>; + input-enable; + bias-disable; /* external pull-up */ + }; + + hdmi-scl-pins { + pinmux = <GPIOMUX(0, GPOUT_SYS_HDMI_DDC_SCL, + GPOEN_SYS_HDMI_DDC_SCL, + GPI_SYS_HDMI_DDC_SCL)>; + input-enable; + bias-pull-up; + }; + + hdmi-sda-pins { + pinmux = <GPIOMUX(1, GPOUT_SYS_HDMI_DDC_SDA, + GPOEN_SYS_HDMI_DDC_SDA, + GPI_SYS_HDMI_DDC_SDA)>; + input-enable; + bias-pull-up; + }; + }; + i2c0_pins: i2c0-0 { i2c-pins { pinmux = <GPIOMUX(57, GPOUT_LOW, diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 82ea63f715b0e64f33345e142eaba6ce49eaebf6..4c3ef68c16bb6c77c7cc31da3cdc006a9d8c1a16 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -290,12 +290,6 @@ gmac1_rmii_refin: gmac1-rmii-refin-clock { #clock-cells = <0>; }; - hdmitx0_pixelclk: hdmitx0-pixel-clock { - compatible = "fixed-clock"; - clock-output-names = "hdmitx0_pixelclk"; - #clock-cells = <0>; - }; - i2srx_bclk_ext: i2srx-bclk-ext-clock { compatible = "fixed-clock"; clock-output-names = "i2srx_bclk_ext"; @@ -352,6 +346,13 @@ tdm_ext: tdm-ext-clock { #clock-cells = <0>; }; + xin24m: xin24m-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "xin24m"; + }; + soc { compatible = "simple-bus"; interrupt-parent = <&plic>; @@ -1262,22 +1263,86 @@ csi_phy: phy@19820000 { #phy-cells = <0>; }; - voutcrg: clock-controller@295c0000 { - compatible = "starfive,jh7110-voutcrg"; - reg = <0x0 0x295c0000 0x0 0x10000>; - clocks = <&syscrg JH7110_SYSCLK_VOUT_SRC>, - <&syscrg JH7110_SYSCLK_VOUT_TOP_AHB>, - <&syscrg JH7110_SYSCLK_VOUT_TOP_AXI>, - <&syscrg JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK>, - <&syscrg JH7110_SYSCLK_I2STX0_BCLK>, - <&hdmitx0_pixelclk>; - clock-names = "vout_src", "vout_top_ahb", - "vout_top_axi", "vout_top_hdmitx0_mclk", - "i2stx0_bclk", "hdmitx0_pixelclk"; - resets = <&syscrg JH7110_SYSRST_VOUT_TOP_SRC>; - #clock-cells = <1>; - #reset-cells = <1>; + vout_subsystem: display-subsystem@29400000 { + compatible = "starfive,jh7110-vout-subsystem"; + reg = <0x0 0x29400000 0x0 0x200000>; + ranges; + #address-cells = <2>; + #size-cells = <2>; + clocks = <&syscrg JH7110_SYSCLK_NOC_BUS_DISP_AXI>; + dma-noncoherent; power-domains = <&pwrc JH7110_PD_VOUT>; + resets = <&syscrg JH7110_SYSRST_NOC_BUS_DISP_AXI>; + + dc8200: display@29400000 { + compatible = "starfive,jh7110-dc8200", "verisilicon,dc"; + reg = <0x0 0x29400000 0x0 0x2800>; + clocks = <&voutcrg JH7110_VOUTCLK_DC8200_CORE>, + <&voutcrg JH7110_VOUTCLK_DC8200_AXI>, + <&voutcrg JH7110_VOUTCLK_DC8200_AHB>, + <&voutcrg JH7110_VOUTCLK_DC8200_PIX0>, + <&voutcrg JH7110_VOUTCLK_DC8200_PIX1>; + clock-names = "core", "axi", "ahb", "pix0", "pix1"; + assigned-clocks = <&voutcrg JH7110_VOUTCLK_DC8200_PIX0>, + <&voutcrg JH7110_VOUTCLK_DC8200_PIX1>; + assigned-clock-parents = <&hdmi_phy>, <&hdmi_phy>; + interrupts = <95>; + resets = <&voutcrg JH7110_VOUTRST_DC8200_CORE>, + <&voutcrg JH7110_VOUTRST_DC8200_AXI>, + <&voutcrg JH7110_VOUTRST_DC8200_AHB>; + reset-names = "core", "axi", "ahb"; + status = "disabled"; + }; + + hdmi_subsystem: hdmi@29590000 { + compatible = "starfive,jh7110-hdmi-subsystem"; + reg = <0x0 0x29590000 0x0 0x4000>; + + hdmi_controller: controller { + compatible = + "starfive,jh7110-inno-hdmi-controller"; + clocks = <&voutcrg JH7110_VOUTCLK_HDMI_TX_SYS>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_MCLK>, + <&voutcrg JH7110_VOUTCLK_HDMI_TX_BCLK>, + <&hdmi_phy>; + clock-names = "pclk", "mclk", "bclk", "pixel"; + interrupts = <99>; + phys = <&hdmi_phy>; + resets = <&voutcrg JH7110_VOUTRST_HDMI_TX_HDMI>; + starfive,vout-syscon = <&vout_syscon>; + status = "disabled"; + }; + + hdmi_phy: phy { + compatible = "starfive,jh7110-inno-hdmi-phy"; + clocks = <&xin24m>; + #clock-cells = <0>; + #phy-cells = <0>; + }; + }; + + vout_syscon: syscon@295b0000 { + compatible = "starfive,jh7110-vout-syscon", "syscon"; + reg = <0x0 0x295b0000 0x0 0x10000>; + }; + + voutcrg: clock-controller@295c0000 { + compatible = "starfive,jh7110-voutcrg"; + reg = <0x0 0x295c0000 0x0 0x10000>; + clocks = <&syscrg JH7110_SYSCLK_VOUT_SRC>, + <&syscrg JH7110_SYSCLK_VOUT_TOP_AHB>, + <&syscrg JH7110_SYSCLK_VOUT_TOP_AXI>, + <&syscrg JH7110_SYSCLK_VOUT_TOP_HDMITX0_MCLK>, + <&syscrg JH7110_SYSCLK_I2STX0_BCLK>, + <&hdmi_phy>; + clock-names = "vout_src", "vout_top_ahb", + "vout_top_axi", "vout_top_hdmitx0_mclk", + "i2stx0_bclk", "hdmitx0_pixelclk"; + power-domains = <&pwrc JH7110_PD_VOUT>; + resets = <&syscrg JH7110_SYSRST_VOUT_TOP_SRC>; + #clock-cells = <1>; + #reset-cells = <1>; + }; }; pcie0: pcie@940000000 { -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <CGME20261124155433eucas1p29be901baa6a465bd2c8472160abd86f1@eucas1p2.samsung.com>]
* [PATCH v8 18/18] MAINTAINERS: Add StarFive JH7110 display subsystem entry [not found] ` <CGME20261124155433eucas1p29be901baa6a465bd2c8472160abd86f1@eucas1p2.samsung.com> @ 2026-11-24 15:52 ` Michal Wilczynski 0 siblings, 0 replies; 20+ messages in thread From: Michal Wilczynski @ 2026-11-24 15:52 UTC (permalink / raw) To: Neil Armstrong, Rob Herring, Krzysztof Kozlowski, Robert Foss, Laurent Pinchart, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Philipp Zabel, Emil Renner Berthing, Hal Feng, Heiko Stuebner, Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Dominique Belhachemi, Andy Yan, David Airlie, Simona Vetter, Yakir Yang, Dmitry Baryshkov, Michal Wilczynski, Conor Dooley, William Qiu, Xingyu Wu, Sandy Huang, Manivannan Sadhasivam Cc: devicetree, linux-kernel, dri-devel, linux-arm-kernel, linux-rockchip, linux-riscv, Marek Szyprowski, Maud Spierings, Graham Markall, Icenowy Zheng, Chaoyi Chen, Joshua Peisach, Uwe Kleine-König, Cristian Ciocaltea, Byron Stanoszek, Owen O'Hehir The JH7110 display subsystem spans a PHY driver, a DRM bridge driver, a parent device and their bindings, and has no existing maintainer entry. Add an entry covering them so patches reach someone who can review them. Reviewed-by: Joshua Peisach <jpeisach@ubuntu.com> Tested-by: Byron Stanoszek <gandalf@winds.org> Tested-by: Owen O'Hehir <oo.hehir@gmail.com> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> --- MAINTAINERS | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index bcade5bfbafe9fcb81f9b83ff9ff5fdfba04dd67..5f5da9faa806416f963394dda786994ace49b6b7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -26806,6 +26806,17 @@ S: Maintained F: Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml F: drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c +STARFIVE JH7110 DISPLAY SUBSYSTEM +M: Michal Wilczynski <m.wilczynski@samsung.com> +R: Icenowy Zheng <zhengxingda@iscas.ac.cn> +S: Maintained +F: Documentation/devicetree/bindings/display/bridge/starfive,jh7110-inno-hdmi-controller.yaml +F: Documentation/devicetree/bindings/display/starfive/starfive,jh7110-hdmi-subsystem.yaml +F: Documentation/devicetree/bindings/display/starfive/starfive,jh7110-vout-subsystem.yaml +F: drivers/gpu/drm/bridge/jh7110-inno-hdmi.c +F: drivers/soc/starfive/jh7110-hdmi-subsystem.c +F: drivers/soc/starfive/jh7110-vout-subsystem.c + STARFIVE JH7110 DPHY RX DRIVER M: Jack Zhu <jack.zhu@starfivetech.com> M: Changhuang Liang <changhuang.liang@starfivetech.com> -- 2.34.1 ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2026-11-24 16:50 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20261124155359eucas1p2f7d4e5137f38415561ce77fd55023466@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 00/18] drm: starfive: jh7110: Enable display subsystem Michal Wilczynski
[not found] ` <CGME20261124155401eucas1p23c6e29781ee1e0d34bb8539a0a848625@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 01/18] drm/bridge: inno-hdmi: fix swapped HSYNC and VSYNC polarity Michal Wilczynski
[not found] ` <CGME20261124155403eucas1p26cc9bf09dc326b2e48c3d2e7100b4ecf@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 02/18] drm/bridge: inno-hdmi: Report hotplug through drm_bridge_hpd_notify() Michal Wilczynski
[not found] ` <CGME20261124155405eucas1p16e1890307874ae88842b4aa4c852f5af@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 03/18] dt-bindings: display: bridge: Add starfive,jh7110-inno-hdmi-controller Michal Wilczynski
[not found] ` <CGME20261124155406eucas1p23a523deb496c21cbf3da3724812a8101@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 04/18] dt-bindings: display: starfive: Add starfive,jh7110-hdmi-subsystem Michal Wilczynski
[not found] ` <CGME20261124155408eucas1p205755e13b741cc44224d944e46575e28@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 05/18] dt-bindings: soc: starfive: Add starfive,jh7110-vout-syscon Michal Wilczynski
[not found] ` <CGME20261124155410eucas1p1a505fa8e80ea04caa33bbd7d1a8b796c@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 06/18] dt-bindings: display: starfive: Add starfive,jh7110-vout-subsystem Michal Wilczynski
[not found] ` <CGME20261124155412eucas1p2f62b824c68f30e1a52d7b9d878def311@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 07/18] drm/bridge: inno-hdmi: Split probe out of bind Michal Wilczynski
[not found] ` <CGME20261124155414eucas1p1061b3aa17e9780ca95c2a723c350495f@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 08/18] drm/bridge: inno-hdmi: Use a regmap for register access Michal Wilczynski
[not found] ` <CGME20261124155416eucas1p1d074766d9b700f0f829cf9bdc700bea5@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 09/18] drm/bridge: inno-hdmi: Add .disable platform operation Michal Wilczynski
[not found] ` <CGME20261124155417eucas1p1800c657fb3f28861a7bd0e01018d936c@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 10/18] drm/bridge: inno-hdmi: Add .mode_valid " Michal Wilczynski
[not found] ` <CGME20261124155419eucas1p1be4546e9ca9aa75f3f98c9a63d7e8ae6@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 11/18] drm/bridge: inno-hdmi: Make the PHY configuration table optional Michal Wilczynski
[not found] ` <CGME20261124155421eucas1p17ba32e556ed232c18e3b573eb12f1ebd@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 12/18] drm/bridge: inno-hdmi: Make the register clock source selectable Michal Wilczynski
[not found] ` <CGME20261124155423eucas1p2dc9d18f8a847d77c60615bc7f37ed657@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 13/18] drm/bridge: inno-hdmi: Make the supported HDMI version selectable Michal Wilczynski
[not found] ` <CGME20261124155425eucas1p2035620902a47a26cb56909c0afda250f@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 14/18] soc: starfive: Add jh7110-hdmi-subsystem driver Michal Wilczynski
[not found] ` <CGME20261124155427eucas1p1d7984cd7c12532c271826fd19820a55f@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 15/18] soc: starfive: Add jh7110-vout-subsystem driver Michal Wilczynski
[not found] ` <CGME20261124155429eucas1p1015c7cd9beec294fefdcd6900dd407f6@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 16/18] drm/bridge: starfive: Add JH7110 HDMI controller driver Michal Wilczynski
2026-11-24 16:50 ` Philipp Zabel
[not found] ` <CGME20261124155431eucas1p18761b3a7bbc4e018c6840db83d1c64fb@eucas1p1.samsung.com>
2026-11-24 15:52 ` [PATCH v8 17/18] riscv: dts: starfive: jh7110: Update DT for display subsystem Michal Wilczynski
[not found] ` <CGME20261124155433eucas1p29be901baa6a465bd2c8472160abd86f1@eucas1p2.samsung.com>
2026-11-24 15:52 ` [PATCH v8 18/18] MAINTAINERS: Add StarFive JH7110 display subsystem entry Michal Wilczynski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®