dt-bindings: phy: Convert brcm,sr-usb-combo-phy to DT schema
Rob Herring (Arm)
maintainerPATCH 1/1 dt-bindings: phy: Convert brcm,sr-usb-combo-phy to DT schema
Convert the Broadcom Stingray USB PHY binding to DT schema format. It's a straight forward conversion.
Signed-off-by Rob Herring (Arm) <[email protected]>
--- .../bindings/phy/brcm,sr-usb-combo-phy.yaml | 64 +++++++++++++++++++ .../bindings/phy/brcm,stingray-usb-phy.txt | 32 ---------- 2 files changed, 64 insertions(+), 32 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt
Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml new file +64 -0
@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/brcm,sr-usb-combo-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Stingray USB PHY + +maintainers: + - Srinath Mannam <[email protected]> + +properties: + compatible: + enum: + - brcm,sr-usb-combo-phy + - brcm,sr-usb-hs-phy + + reg: + maxItems: 1 + + '#phy-cells': + description: PHY cell count indicating PHY type + enum: [ 0, 1 ] + +required: + - compatible + - reg + - '#phy-cells' + +allOf: + - if: + properties: + compatible: + contains: + const: brcm,sr-usb-combo-phy + then: + properties: + '#phy-cells': + const: 1 + - if: + properties: + compatible: + contains: + const: brcm,sr-usb-hs-phy + then: + properties: + '#phy-cells': + const: 0 + +additionalProperties: false + +examples: + - | + usb-phy@0 { + compatible = "brcm,sr-usb-combo-phy"; + reg = <0x00000000 0x100>; + #phy-cells = <1>; + }; + - | + usb-phy@20000 { + compatible = "brcm,sr-usb-hs-phy"; + reg = <0x00020000 0x100>; + #phy-cells = <0>; + };
Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txt deleted +0 -32
@@ -1,32 +0,0 @@ -Broadcom Stingray USB PHY - -Required properties: - - compatible : should be one of the listed compatibles - - "brcm,sr-usb-combo-phy" is combo PHY has two PHYs, one SS and one HS. - - "brcm,sr-usb-hs-phy" is a single HS PHY. - - reg: offset and length of the PHY blocks registers - - #phy-cells: - - Must be 1 for brcm,sr-usb-combo-phy as it expects one argument to indicate - the PHY number of two PHYs. 0 for HS PHY and 1 for SS PHY. - - Must be 0 for brcm,sr-usb-hs-phy. - -Refer to phy/phy-bindings.txt for the generic PHY binding properties - -Example: - usbphy0: usb-phy@0 { - compatible = "brcm,sr-usb-combo-phy"; - reg = <0x00000000 0x100>; - #phy-cells = <1>; - }; - - usbphy1: usb-phy@10000 { - compatible = "brcm,sr-usb-combo-phy"; - reg = <0x00010000 0x100>, - #phy-cells = <1>; - }; - - usbphy2: usb-phy@20000 { - compatible = "brcm,sr-usb-hs-phy"; - reg = <0x00020000 0x100>, - #phy-cells = <0>; - };
Signature · 1 line
2.47.2
Quoted 17 lines · Rob Herring (Arm)' via BCM-KERNEL-FEEDBACK-LIST,PDL
Convert the Broadcom Stingray USB PHY binding to DT schema format. It's a straight forward conversion.
Signed-off-by Rob Herring (Arm) <[email protected]>--- .../bindings/phy/brcm,sr-usb-combo-phy.yaml | 64 +++++++++++++++++++ .../bindings/phy/brcm,stingray-usb-phy.txt | 32 ---------- 2 files changed, 64 insertions(+), 32 deletions(-)create mode 100644
Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yamldelete mode 100644Documentation/devicetree/bindings/phy/brcm,stingray-usb-phy.txtDocumentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml new file +0
-0
Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/phy/brcm,sr-usb-combo-phy.yaml new file +10
-0@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/brcm,sr-usb-combo-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Stingray USB PHY + +maintainers: + - Srinath Mannam <[email protected]>
Would suggest putting Scott and Ray as maintainers here, Srinath's email is bouncing.
Signature · 1 line
Florian