Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] dt-bindings: display/msm: qcom,nord-mdss omits qcom,sa8775p-dp fallback - [Low] dt-bindings: display/msm: inconsistent DP1 clocks and PHY reg sizes in example --
commit 7e933ce5ebfd089e4cac22428484f5b572292bc8 Author: Mahadevan P <[email protected]> dt-bindings: display/msm: Document Nord MDSS This commit adds the devicetree binding schema for the Qualcomm Nord display subsystem (MDSS 12.1). > 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..abd80dae4e7f5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/msm/qcom,nord-mdss.yaml [ ... ] > + "^displayport-controller@[0-9a-f]+$": > + type: object > + additionalProperties: true > + properties: > + compatible: > + const: qcom,nord-dp [Severity: Medium] Should the compatible constraint here allow the "qcom,sa8775p-dp" fallback, and should both displayport-controller nodes in the example below include it? Documentation/devicetree/bindings/display/msm/dp-controller.yaml requires "qcom,nord-dp" to be followed by "qcom,sa8775p-dp": Documentation/devicetree/bindings/display/msm/dp-controller.yaml - items: - enum: - qcom,qcs8300-dp - qcom,nord-dp - const: qcom,sa8775p-dp Using "const: qcom,nord-dp" here rejects the required fallback, and omitting "qcom,sa8775p-dp" from displayport-controller@af54000 and displayport-controller@af5c000 in the example causes dt_binding_check to fail against dp-controller.yaml. Using "contains: const: qcom,nord-dp" (as in qcom,qcs8300-mdss.yaml) and adding "qcom,sa8775p-dp" to the example nodes would resolve this. [ ... ] > + displayport-controller@af5c000 { > + compatible = "qcom,nord-dp"; > + > + reg = <0xaf5c000 0x200>, > + <0xaf5c200 0x200>, > + <0xaf5d000 0xc00>, > + <0xaf5e000 0x400>, > + <0xaf5f000 0x400>, > + <0xaf60000 0x400>, > + <0xaf61000 0x400>, > + <0xaf62000 0x600>, > + <0xaf63000 0x600>; > + > + 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>; [ ... ] > + dp1_phy: phy@fc6a00 { > + compatible = "qcom,nord-dp-phy"; > + > + reg = <0xfc6a00 0x200>, > + <0xfc6200 0xd0>, > + <0xfc6600 0xd0>, > + <0xfc6000 0x1c8>; [Severity: Low] Are the assigned-clocks on displayport-controller@af5c000 and the reg sizes on dp1_phy in the example intended to differ from the first DP instance? displayport-controller@af5c000 requests all four stream pixel clocks in clocks, but assigned-clocks omits MDSS_DISP_CC_MDSS_DPTX1_PIXEL2_CLK_SRC and MDSS_DISP_CC_MDSS_DPTX1_PIXEL3_CLK_SRC (which are present on displayport-controller@af54000). In addition, dp1_phy uses SA8775P register sizes (0x200, 0xd0, 0xd0, 0x1c8) instead of the qcom,nord-dp-phy sizes used by dp0_phy (0x1d0, 0x128, 0x128, 0x200), leaving the fourth region smaller than NORD_DP_QSERDES_COM_C_READY_STATUS at offset 0x1f8. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=3
