Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [Low] dt-bindings: display/msm: DP PHY nodes outside MDSS range and out of order - [Low] dt-bindings: display/msm: undersized legacy reg lengths on dp1_phy in example - [Low] dt-bindings: display/msm: missing DPTX1 pixel2/pixel3 assigned-clocks in example - [Low] dt-bindings: display/msm: non-canonical property order in Nord MDSS examples --
commit 180d4ad6e7508a907641dabcccc1657ddfe1797d Author: Mahadevan P <[email protected]> dt-bindings: display/msm: Document Nord MDSS This commit adds the Device Tree binding schema for the Qualcomm Nord display subsystem (MDSS 12.1) with DPU 1499A and two independent DP controllers. > diff --git > a/Documentation/devicetree/bindings/display/msm/qcom,nord-mdss.yaml > b/Documentation/devicetree/bindings/display/msm/qcom,nord-mdss.yaml > new file mode 100644 > index 0000000000000..203678dae6836 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/msm/qcom,nord-mdss.yaml [ ... ] > + "^phy@[0-9a-f]+$": > + type: object > + additionalProperties: true > + properties: > + compatible: > + const: qcom,nord-dp-phy > + required: > + - compatible [Severity: Low] Should qcom,nord-dp-phy be allowed as a child of display-subsystem@ae00000? In the example, dp0_phy (phy@fc3a00) and dp1_phy (phy@fc6a00) sit at 0x00fcxxxx, outside the 0x0ae00000 MDSS aperture. Placing them after displayport-controller@af5c000 also violates ascending child unit-address order, which scripts/dtc/dt-check-style flags. On sibling Qualcomm platforms with 0x00fxxxxx DP PHYs such as glymur.dtsi, the PHYs sit under soc@0 as siblings of display-subsystem@ae00000. If Nord has no in-MDSS PHYs, move them out of the MDSS node and drop this pattern; otherwise order them before display-controller@ae01000. [ ... ] > + display-subsystem@ae00000 { > + compatible = "qcom,nord-mdss"; > + reg = <0x0ae00000 0x1000>; > + reg-names = "mdss"; > + > + power-domains = <&dispcc0 MDSS_DISP_CC_MDSS_CORE_GDSC>; > + clocks = <&dispcc0 MDSS_DISP_CC_MDSS_AHB_CLK>, > + <&nwgcc NW_GCC_DISP_0_HF_AXI_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_MDP_CLK>; > + clock-names = "iface", "bus", "core"; > + resets = <&dispcc0 MDSS_DISP_CC_MDSS_CORE_BCR>; > + > + interconnects = <&mmss_noc MASTER_MDP0 QCOM_ICC_TAG_ALWAYS > + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > + <&hscnoc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY > + &config_noc SLAVE_DISPLAY_CFG > QCOM_ICC_TAG_ACTIVE_ONLY>; > + interconnect-names = "mdp0-mem", "cpu-cfg"; > + > + interrupts = <GIC_SPI 930 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-controller; > + #interrupt-cells = <1>; > + > + iommus = <&apps_smmu_1 0x3e0 0x2>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + display-controller@ae01000 { > + compatible = "qcom,nord-dpu"; > + reg = <0x0ae01000 0x8f000>, > + <0x0aeb0000 0x3000>; > + reg-names = "mdp", "vbif"; > + > + clocks = <&nwgcc NW_GCC_DISP_0_HF_AXI_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_AHB_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_MDP_LUT_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_MDP_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_VSYNC_CLK>; > + clock-names = "nrt_bus", "iface", "lut", "core", "vsync"; > + > + assigned-clocks = <&dispcc0 MDSS_DISP_CC_MDSS_VSYNC_CLK>; > + assigned-clock-rates = <19200000>; > + > + operating-points-v2 = <&mdp_opp_table>; > + power-domains = <&rpmhpd RPMHPD_MMCX>; > + > + interrupt-parent = <&mdss>; > + interrupts = <0>; [Severity: Low] Can the properties in display-subsystem@ae00000 and display-controller@ae01000 follow canonical DTS property order? Both nodes place power-domains before interrupts (and before clocks in display-subsystem@ae00000), and display-subsystem@ae00000 places ranges at the end instead of right after reg and reg-names, which scripts/dtc/dt-check-style flags. [ ... ] > + displayport-controller@af5c000 { [ ... ] > + clocks = <&dispcc0 MDSS_DISP_CC_MDSS_AHB_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_AUX_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_LINK_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_LINK_INTF_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_PIXEL0_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_PIXEL1_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_PIXEL2_CLK>, > + <&dispcc0 MDSS_DISP_CC_MDSS_DPTX1_PIXEL3_CLK>; > + clock-names = "core_iface", "core_aux", > + "ctrl_link", "ctrl_link_iface", > + "stream_pixel", "stream_1_pixel", > + "stream_2_pixel", "stream_3_pixel"; > + > + assigned-clocks = <&dispcc0 > MDSS_DISP_CC_MDSS_DPTX1_LINK_CLK_SRC>, > + <&dispcc0 > MDSS_DISP_CC_MDSS_DPTX1_PIXEL0_CLK_SRC>, > + <&dispcc0 > MDSS_DISP_CC_MDSS_DPTX1_PIXEL1_CLK_SRC>; > + assigned-clock-parents = <&dp1_phy 0>, > + <&dp1_phy 1>, > + <&dp1_phy 1>; [Severity: Low] Are MDSS_DISP_CC_MDSS_DPTX1_PIXEL2_CLK_SRC and MDSS_DISP_CC_MDSS_DPTX1_PIXEL3_CLK_SRC missing from assigned-clocks here? This node lists all four DPTX1 pixel clocks (and dispcc0-nord.c defines all four RCG sources), yet assigned-clocks only parents PIXEL0 and PIXEL1. Since msm_dp_ctrl_clk_init() relies on DT assigned-clock-parents, streams 2 and 3 would be left unparented if this example is copied into a DTSI. [ ... ] > + dp0_phy: phy@fc3a00 { > + compatible = "qcom,nord-dp-phy"; > + > + reg = <0xfc3a00 0x1d0>, > + <0xfc3200 0x128>, > + <0xfc3600 0x128>, > + <0xfc3000 0x200>; [ ... ] > + dp1_phy: phy@fc6a00 { > + compatible = "qcom,nord-dp-phy"; > + > + reg = <0xfc6a00 0x200>, > + <0xfc6200 0xd0>, > + <0xfc6600 0xd0>, > + <0xfc6000 0x1c8>; [Severity: Low] Are the reg window sizes on dp1_phy undersized for qcom,nord-dp-phy? dp1_phy uses legacy SA8775P sizes (0x200, 0xd0, 0xd0, 0x1c8) instead of dp0_phy's Nord sizes (0x1d0, 0x128, 0x128, 0x200). If copied into a DTSI, the 0xd0 tx and 0x1c8 PLL windows truncate TX DCC (0xd0/0xe0) and QSERDES v6 COM status registers (0x1d0/0x1f8), causing out-of-bounds MMIO accesses. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=3
