aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/phy
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2022-08-30 13:29:12 +0200
committerVinod Koul <vkoul@kernel.org>2022-08-30 18:56:21 +0530
commitea5fc4a1ea909e530d7c89a54faabc8c8407e49a (patch)
tree66a3b9944875ab12ebd7482e05256ce3e336990a /Documentation/devicetree/bindings/phy
parentec9cafa6892a2514b0dfa88a8046b2a40baca4d6 (diff)
dt-bindings: phy: add QMP USB PHY schema
The QMP PHY DT schema is getting unwieldy. Break out the USB PHY binding in a separate file. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20220830112923.3725-20-johan+linaro@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/phy')
-rw-r--r--Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml (renamed from Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml)67
1 files changed, 16 insertions, 51 deletions
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
index 602c07357a13..55104c0a0d4b 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
@@ -1,11 +1,10 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
-
%YAML 1.2
---
-$id: "http://devicetree.org/schemas/phy/qcom,qmp-phy.yaml#"
-$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+$id: http://devicetree.org/schemas/phy/qcom,qmp-usb-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Qualcomm QMP PHY controller
+title: Qualcomm QMP PHY controller (USB)
maintainers:
- Vinod Koul <vkoul@kernel.org>
@@ -52,20 +51,18 @@ properties:
ranges: true
clocks:
- minItems: 1
+ minItems: 3
maxItems: 4
clock-names:
- minItems: 1
+ minItems: 3
maxItems: 4
resets:
- minItems: 1
- maxItems: 3
+ maxItems: 2
reset-names:
- minItems: 1
- maxItems: 3
+ maxItems: 2
vdda-phy-supply: true
@@ -76,7 +73,7 @@ properties:
patternProperties:
"^phy@[0-9a-f]+$":
type: object
- description: one child node per PHY provided by this block
+ description: single PHY-provider child node
required:
- compatible
@@ -88,6 +85,8 @@ required:
- clock-names
- resets
- reset-names
+ - vdda-phy-supply
+ - vdda-pll-supply
additionalProperties: false
@@ -114,34 +113,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,sdx55-qmp-usb3-uni-phy
- - qcom,sdx65-qmp-usb3-uni-phy
- then:
- properties:
- clocks:
- maxItems: 3
- clock-names:
- items:
- - const: aux
- - const: cfg_ahb
- - const: ref
- resets:
- maxItems: 2
- reset-names:
- items:
- - const: phy
- - const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -150,6 +122,8 @@ allOf:
- qcom,ipq8074-qmp-usb3-phy
- qcom,msm8996-qmp-usb3-phy
- qcom,msm8998-qmp-usb3-phy
+ - qcom,sdx55-qmp-usb3-uni-phy
+ - qcom,sdx65-qmp-usb3-uni-phy
then:
properties:
clocks:
@@ -165,9 +139,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -194,9 +166,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -219,9 +189,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -243,9 +211,6 @@ allOf:
items:
- const: phy_phy
- const: phy
- required:
- - vdda-phy-supply
- - vdda-pll-supply
examples:
- |