Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: renesas: usb3-peri: convert bindings to json-schema

Convert Renesas USB 3.0 Peripheral controller bindings documentation
to json-schema.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/1573036493-16525-1-git-send-email-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Yoshihiro Shimoda and committed by
Greg Kroah-Hartman
51d11d0a 74ce3e41

+86 -65
-65
Documentation/devicetree/bindings/usb/renesas,usb3-peri.txt
··· 1 - Renesas Electronics USB3.0 Peripheral driver 2 - 3 - Required properties: 4 - - compatible: Must contain one of the following: 5 - - "renesas,r8a774a1-usb3-peri" 6 - - "renesas,r8a774b1-usb3-peri" 7 - - "renesas,r8a774c0-usb3-peri" 8 - - "renesas,r8a7795-usb3-peri" 9 - - "renesas,r8a7796-usb3-peri" 10 - - "renesas,r8a77965-usb3-peri" 11 - - "renesas,r8a77990-usb3-peri" 12 - - "renesas,rcar-gen3-usb3-peri" for a generic R-Car Gen3 or RZ/G2 13 - compatible device 14 - 15 - When compatible with the generic version, nodes must list the 16 - SoC-specific version corresponding to the platform first 17 - followed by the generic version. 18 - 19 - - reg: Base address and length of the register for the USB3.0 Peripheral 20 - - interrupts: Interrupt specifier for the USB3.0 Peripheral 21 - - clocks: clock phandle and specifier pair 22 - 23 - Optional properties: 24 - - phys: phandle + phy specifier pair 25 - - phy-names: must be "usb" 26 - - usb-role-switch: support role switch. see usb/generic.txt 27 - 28 - Sub-nodes: 29 - - any connector to the data bus of this controller should be modelled using the 30 - OF graph bindings specified in bindings/graph.txt, if the "usb-role-switch" 31 - property is used. 32 - 33 - Example of R-Car H3 ES1.x: 34 - usb3_peri0: usb@ee020000 { 35 - compatible = "renesas,r8a7795-usb3-peri", 36 - "renesas,rcar-gen3-usb3-peri"; 37 - reg = <0 0xee020000 0 0x400>; 38 - interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 39 - clocks = <&cpg CPG_MOD 328>; 40 - }; 41 - 42 - usb3_peri1: usb@ee060000 { 43 - compatible = "renesas,r8a7795-usb3-peri", 44 - "renesas,rcar-gen3-usb3-peri"; 45 - reg = <0 0xee060000 0 0x400>; 46 - interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; 47 - clocks = <&cpg CPG_MOD 327>; 48 - }; 49 - 50 - Example of RZ/G2E: 51 - usb3_peri0: usb@ee020000 { 52 - compatible = "renesas,r8a774c0-usb3-peri", 53 - "renesas,rcar-gen3-usb3-peri"; 54 - reg = <0 0xee020000 0 0x400>; 55 - interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 56 - clocks = <&cpg CPG_MOD 328>; 57 - companion = <&xhci0>; 58 - usb-role-switch; 59 - 60 - port { 61 - usb3_role_switch: endpoint { 62 - remote-endpoint = <&hd3ss3220_ep>; 63 - }; 64 - }; 65 - };
+86
Documentation/devicetree/bindings/usb/renesas,usb3-peri.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/usb/renesas,usb3-peri.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas USB 3.0 Peripheral controller 8 + 9 + maintainers: 10 + - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - enum: 16 + - renesas,r8a774a1-usb3-peri # RZ/G2M 17 + - renesas,r8a774b1-usb3-peri # RZ/G2N 18 + - renesas,r8a774c0-usb3-peri # RZ/G2E 19 + - renesas,r8a7795-usb3-peri # R-Car H3 20 + - renesas,r8a7796-usb3-peri # R-Car M3-W 21 + - renesas,r8a77965-usb3-peri # R-Car M3-N 22 + - renesas,r8a77990-usb3-peri # R-Car E3 23 + - const: renesas,rcar-gen3-usb3-peri 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + clocks: 32 + maxItems: 1 33 + 34 + phys: 35 + maxItems: 1 36 + 37 + phy-names: 38 + const: usb 39 + 40 + power-domains: 41 + maxItems: 1 42 + 43 + resets: 44 + maxItems: 1 45 + 46 + usb-role-switch: 47 + $ref: /schemas/types.yaml#/definitions/flag 48 + description: Support role switch. 49 + 50 + companion: 51 + $ref: /schemas/types.yaml#/definitions/phandle 52 + description: phandle of a companion. 53 + 54 + port: 55 + description: | 56 + any connector to the data bus of this controller should be modelled 57 + using the OF graph bindings specified, if the "usb-role-switch" 58 + property is used. 59 + 60 + required: 61 + - compatible 62 + - interrupts 63 + - clocks 64 + 65 + additionalProperties: false 66 + 67 + examples: 68 + - | 69 + #include <dt-bindings/clock/r8a774c0-cpg-mssr.h> 70 + #include <dt-bindings/interrupt-controller/arm-gic.h> 71 + #include <dt-bindings/power/r8a774c0-sysc.h> 72 + 73 + usb3_peri0: usb@ee020000 { 74 + compatible = "renesas,r8a774c0-usb3-peri", "renesas,rcar-gen3-usb3-peri"; 75 + reg = <0 0xee020000 0 0x400>; 76 + interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; 77 + clocks = <&cpg CPG_MOD 328>; 78 + companion = <&xhci0>; 79 + usb-role-switch; 80 + 81 + port { 82 + usb3_role_switch: endpoint { 83 + remote-endpoint = <&hd3ss3220_ep>; 84 + }; 85 + }; 86 + };