[PATCH 08/43] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema

From: Johan Hovold
Date: Tue Jul 05 2022 - 05:50:38 EST


Add the missing the description of the PHY-provider child nodes which
were ignored when converting to DT schema.

Also fix up the description that claimed that one child node per lane
(rather than PHY) was required.

Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx>
---
.../phy/qcom,msm8996-qmp-pcie-phy.yaml | 51 ++++++++++++++++++-
1 file changed, 49 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
index b73bf5c06358..8aadb25686b2 100644
--- a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
@@ -66,8 +66,55 @@ patternProperties:
"^phy@[0-9a-f]+$":
type: object
description:
- Each device node of QMP PHY is required to have as many child nodes as
- the number of lanes the PHY has.
+ One child node per PHY provided by this block.
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+
+ clocks:
+ items:
+ - description: PIPE clock
+
+ clock-names:
+ items:
+ - enum:
+ - pipe0
+ - pipe1
+ - pipe2
+
+ resets:
+ items:
+ - description: PHY (lane) reset
+
+ reset-names:
+ items:
+ - enum:
+ - lane0
+ - lane1
+ - lane2
+
+ "#clock-cells":
+ const: 0
+
+ clock-output-names: true
+
+ "#phy-cells":
+ const: 0
+
+ required:
+ - reg
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+ - "#clock-cells"
+ - clock-output-names
+ - "#phy-cells"
+
+ additionalProperties: false

required:
- compatible
--
2.35.1