From: 周琰杰 (Zhou Yanjie) Date: Mon, 16 Nov 2020 14:19:05 +0000 (+0800) Subject: dt-bindings: USB: Add bindings for Ingenic JZ4775 and X2000. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4f6ecfaf3e22a70d905a627a0e84e9edb2b32835;p=linux.git dt-bindings: USB: Add bindings for Ingenic JZ4775 and X2000. Move Ingenic USB PHY bindings from Documentation/devicetree/bindings/usb to Documentation/devicetree/bindings/phy, and add bindings for JZ4775 SoC and X2000 SoC. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Rob Herring Acked-by: Stephen Boyd Link: https://lore.kernel.org/r/20201116141906.11758-3-zhouyanjie@wanyeetech.com Signed-off-by: Vinod Koul --- diff --git a/Documentation/devicetree/bindings/clock/ingenic,cgu.yaml b/Documentation/devicetree/bindings/clock/ingenic,cgu.yaml index 5dd7ea8a78e4b..c65b9458c0b6a 100644 --- a/Documentation/devicetree/bindings/clock/ingenic,cgu.yaml +++ b/Documentation/devicetree/bindings/clock/ingenic,cgu.yaml @@ -92,7 +92,7 @@ required: patternProperties: "^usb-phy@[a-f0-9]+$": - allOf: [ $ref: "../usb/ingenic,jz4770-phy.yaml#" ] + allOf: [ $ref: "../phy/ingenic,phy-usb.yaml#" ] additionalProperties: false diff --git a/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml b/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml new file mode 100644 index 0000000000000..0fd93d71fe5a9 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/ingenic,phy-usb.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/ingenic,phy-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ingenic SoCs USB PHY devicetree bindings + +maintainers: + - Paul Cercueil + - 周琰杰 (Zhou Yanjie) + +properties: + $nodename: + pattern: '^usb-phy@.*' + + compatible: + enum: + - ingenic,jz4770-phy + - ingenic,jz4775-phy + - ingenic,jz4780-phy + - ingenic,x1000-phy + - ingenic,x1830-phy + - ingenic,x2000-phy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + vcc-supply: + description: VCC power supply + + '#phy-cells': + const: 0 + +required: + - compatible + - reg + - clocks + - vcc-supply + - '#phy-cells' + +additionalProperties: false + +examples: + - | + #include + otg_phy: usb-phy@3c { + compatible = "ingenic,jz4770-phy"; + reg = <0x3c 0x10>; + + vcc-supply = <&vcc>; + clocks = <&cgu JZ4770_CLK_OTG_PHY>; + + #phy-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/usb/ingenic,jz4770-phy.yaml b/Documentation/devicetree/bindings/usb/ingenic,jz4770-phy.yaml deleted file mode 100644 index 2d61166ea5cf7..0000000000000 --- a/Documentation/devicetree/bindings/usb/ingenic,jz4770-phy.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/usb/ingenic,jz4770-phy.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Ingenic SoCs USB PHY devicetree bindings - -maintainers: - - Paul Cercueil - - 周琰杰 (Zhou Yanjie) - -properties: - $nodename: - pattern: '^usb-phy@.*' - - compatible: - enum: - - ingenic,jz4770-phy - - ingenic,jz4780-phy - - ingenic,x1000-phy - - ingenic,x1830-phy - - reg: - maxItems: 1 - - clocks: - maxItems: 1 - - vcc-supply: - description: VCC power supply - - '#phy-cells': - const: 0 - -required: - - compatible - - reg - - clocks - - vcc-supply - - '#phy-cells' - -additionalProperties: false - -examples: - - | - #include - otg_phy: usb-phy@3c { - compatible = "ingenic,jz4770-phy"; - reg = <0x3c 0x10>; - - vcc-supply = <&vcc>; - clocks = <&cgu JZ4770_CLK_OTG_PHY>; - - #phy-cells = <0>; - };