[PATCH v4 1/9] dt-bindings: reset: renesas,rzg2l-usbphy-ctrl: Document RZ/G3L support
Biju <[email protected]>
| Newsgroups | org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Biju Das <[email protected]> Document Renesas RZ/G3L (r9a08g046) USB PHY controller bindings. The RZ/G3L USB PHY block is similar to RZ/G3S but differs in that each port has its own OTG controller, whereas RZ/G3S only has one on port 1. To reflect this, RZ/G3L uses a regulators sub-node with per-port vbus0 and vbus1 entries instead of the single regulator-vbus property used by other compatible SoCs. Acked-by: Conor Dooley <[email protected]> Signed-off-by: Biju Das <[email protected]> --- v3->v4: * No change. v2->v3: * Replaced items->enum * Collected tag. v1->v2: * Updated commit description. * Added enum instead of const in the compatible section. * Dropped regulator1-vbus and added a regulators group node. * Updated schema check. --- .../reset/renesas,rzg2l-usbphy-ctrl.yaml | 48 +++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml b/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml index c83469a1b379..06e003218d2a 100644 --- a/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml +++ b/Documentation/devicetree/bindings/reset/renesas,rzg2l-usbphy-ctrl.yaml @@ -16,13 +16,16 @@ description: properties: compatible: oneOf: + - enum: + - renesas,r9a08g045-usbphy-ctrl # RZ/G3S + - renesas,r9a08g046-usbphy-ctrl # RZ/G3L + - items: - enum: - renesas,r9a07g043-usbphy-ctrl # RZ/G2UL and RZ/Five - renesas,r9a07g044-usbphy-ctrl # RZ/G2{L,LC} - renesas,r9a07g054-usbphy-ctrl # RZ/V2L - const: renesas,rzg2l-usbphy-ctrl - - const: renesas,r9a08g045-usbphy-ctrl # RZ/G3S reg: maxItems: 1 @@ -50,6 +53,28 @@ properties: $ref: /schemas/regulator/regulator.yaml# unevaluatedProperties: false + regulators: + type: object + description: + list of vbus regulators provided by this controller. + + properties: + vbus0: + type: object + description: Port 1 USB VBUS regulator + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + vbus1: + type: object + description: Port 2 USB VBUS regulator + $ref: /schemas/regulator/regulator.yaml# + unevaluatedProperties: false + + required: + - vbus0 + - vbus1 + renesas,sysc-pwrrdy: description: The system controller PWRRDY indicates to the USB PHY if the power supply @@ -71,14 +96,15 @@ required: - resets - power-domains - '#reset-cells' - - regulator-vbus allOf: - if: properties: compatible: contains: - const: renesas,r9a08g045-usbphy-ctrl + enum: + - renesas,r9a08g045-usbphy-ctrl + - renesas,r9a08g046-usbphy-ctrl then: required: - renesas,sysc-pwrrdy @@ -86,6 +112,22 @@ allOf: properties: renesas,sysc-pwrrdy: false + - if: + properties: + compatible: + contains: + const: renesas,r9a08g046-usbphy-ctrl + then: + properties: + regulator-vbus: false + required: + - regulators + else: + properties: + regulators: false + required: + - regulator-vbus + additionalProperties: false examples: -- 2.43.0