Commit ea5fc4a1 authored by Johan Hovold's avatar Johan Hovold Committed by Vinod Koul

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220830112923.3725-20-johan+linaro@kernel.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent ec9cafa6
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2 %YAML 1.2
--- ---
$id: "http://devicetree.org/schemas/phy/qcom,qmp-phy.yaml#" $id: http://devicetree.org/schemas/phy/qcom,qmp-usb-phy.yaml#
$schema: "http://devicetree.org/meta-schemas/core.yaml#" $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm QMP PHY controller title: Qualcomm QMP PHY controller (USB)
maintainers: maintainers:
- Vinod Koul <vkoul@kernel.org> - Vinod Koul <vkoul@kernel.org>
...@@ -52,20 +51,18 @@ properties: ...@@ -52,20 +51,18 @@ properties:
ranges: true ranges: true
clocks: clocks:
minItems: 1 minItems: 3
maxItems: 4 maxItems: 4
clock-names: clock-names:
minItems: 1 minItems: 3
maxItems: 4 maxItems: 4
resets: resets:
minItems: 1 maxItems: 2
maxItems: 3
reset-names: reset-names:
minItems: 1 maxItems: 2
maxItems: 3
vdda-phy-supply: true vdda-phy-supply: true
...@@ -76,7 +73,7 @@ properties: ...@@ -76,7 +73,7 @@ properties:
patternProperties: patternProperties:
"^phy@[0-9a-f]+$": "^phy@[0-9a-f]+$":
type: object type: object
description: one child node per PHY provided by this block description: single PHY-provider child node
required: required:
- compatible - compatible
...@@ -88,6 +85,8 @@ required: ...@@ -88,6 +85,8 @@ required:
- clock-names - clock-names
- resets - resets
- reset-names - reset-names
- vdda-phy-supply
- vdda-pll-supply
additionalProperties: false additionalProperties: false
...@@ -114,34 +113,7 @@ allOf: ...@@ -114,34 +113,7 @@ allOf:
items: items:
- const: phy - const: phy
- const: common - 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: - if:
properties: properties:
compatible: compatible:
...@@ -150,6 +122,8 @@ allOf: ...@@ -150,6 +122,8 @@ allOf:
- qcom,ipq8074-qmp-usb3-phy - qcom,ipq8074-qmp-usb3-phy
- qcom,msm8996-qmp-usb3-phy - qcom,msm8996-qmp-usb3-phy
- qcom,msm8998-qmp-usb3-phy - qcom,msm8998-qmp-usb3-phy
- qcom,sdx55-qmp-usb3-uni-phy
- qcom,sdx65-qmp-usb3-uni-phy
then: then:
properties: properties:
clocks: clocks:
...@@ -165,9 +139,7 @@ allOf: ...@@ -165,9 +139,7 @@ allOf:
items: items:
- const: phy - const: phy
- const: common - const: common
required:
- vdda-phy-supply
- vdda-pll-supply
- if: - if:
properties: properties:
compatible: compatible:
...@@ -194,9 +166,7 @@ allOf: ...@@ -194,9 +166,7 @@ allOf:
items: items:
- const: phy - const: phy
- const: common - const: common
required:
- vdda-phy-supply
- vdda-pll-supply
- if: - if:
properties: properties:
compatible: compatible:
...@@ -219,9 +189,7 @@ allOf: ...@@ -219,9 +189,7 @@ allOf:
items: items:
- const: phy - const: phy
- const: common - const: common
required:
- vdda-phy-supply
- vdda-pll-supply
- if: - if:
properties: properties:
compatible: compatible:
...@@ -243,9 +211,6 @@ allOf: ...@@ -243,9 +211,6 @@ allOf:
items: items:
- const: phy_phy - const: phy_phy
- const: phy - const: phy
required:
- vdda-phy-supply
- vdda-pll-supply
examples: examples:
- | - |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment