Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] riscv: dts: spacemit: k3: syscon_apmu clock-names mismatch with ccu-k3.c --
commit ae676ef5f4ab9bc45c70f9e62a3c06fdadbd5d6b Author: Cody Kang <[email protected]> riscv: dts: spacemit: k3: add display nodes This commit adds k3-display.dtsi defining the two Saturn DPU nodes, the two DP/eDP controller nodes with their PHY children, and an override on syscon_apmu to supply the PHY PLL pixel clocks. > diff --git a/arch/riscv/boot/dts/spacemit/k3-display.dtsi > b/arch/riscv/boot/dts/spacemit/k3-display.dtsi > new file mode 100644 > index 0000000000000..c870b0372d381 > --- /dev/null > +++ b/arch/riscv/boot/dts/spacemit/k3-display.dtsi [ ... ] > +/* > + * Feed the PHY PLL pixel clocks back in as the APMU mux parents. This lives > + * here, not in k3.dtsi: the PHYs only exist where this file is included. > + */ > +&syscon_apmu { > + clocks = <&osc_32k>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>, > + <&edp0_phy>, <&dp1_phy>; > + clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m", > + "edp0_pll_pxclk", "edp1_pll_pxclk"; > +}; [Severity: High] Do the clock-names "edp0_pll_pxclk" and "edp1_pll_pxclk" match what the K3 APMU clock driver looks up for the eDP pixel clock mux parents? In drivers/clk/spacemit/ccu-k3.c, both edp0_pclk_parents and edp1_pclk_parents specify CCU_PARENT_NAME(external_clk), which sets .fw_name = "external_clk": drivers/clk/spacemit/ccu-k3.c { ... static const struct clk_parent_data edp0_pclk_parents[] = { CCU_PARENT_HW(lcd_pxclk), CCU_PARENT_NAME(external_clk), }; CCU_MUX_GATE_DEFINE(edp0_pxclk, edp0_pclk_parents, APMU_LCD_EDP_CTRL, 2, 1, BIT(1), 0); static const struct clk_parent_data edp1_pclk_parents[] = { CCU_PARENT_HW(dsi4ln2_lcd_pxclk), CCU_PARENT_NAME(external_clk), }; ... } Because syscon_apmu does not have a clock named "external_clk", the clock core cannot resolve the PHY PLL parent for edp0_pxclk or edp1_pxclk, and spacemit_dp_probe() -> clk_set_parent(dp->pxclk, dp->pll_clk) will fail with -EINVAL when edp0 or dp1 is enabled. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=13
