124 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/phy/renesas,rcar-gen2-usb-phy.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Renesas R-Car Gen2 USB PHY8 9maintainers:10 - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>11 12properties:13 compatible:14 items:15 - enum:16 - renesas,usb-phy-r8a7742 # RZ/G1H17 - renesas,usb-phy-r8a7743 # RZ/G1M18 - renesas,usb-phy-r8a7744 # RZ/G1N19 - renesas,usb-phy-r8a7745 # RZ/G1E20 - renesas,usb-phy-r8a77470 # RZ/G1C21 - renesas,usb-phy-r8a7790 # R-Car H222 - renesas,usb-phy-r8a7791 # R-Car M2-W23 - renesas,usb-phy-r8a7794 # R-Car E224 - const: renesas,rcar-gen2-usb-phy # R-Car Gen2 or RZ/G125 26 reg:27 maxItems: 128 29 '#address-cells':30 const: 131 32 '#size-cells':33 const: 034 35 clocks:36 maxItems: 137 38 clock-names:39 items:40 - const: usbhs41 42 power-domains:43 maxItems: 144 45 resets:46 maxItems: 147 48patternProperties:49 "^usb-phy@[02]$":50 type: object51 description: Subnode corresponding to a USB channel.52 53 properties:54 reg:55 description: FIXME RZ/G1C supports channel 0 only56 enum: [0, 2]57 58 '#phy-cells':59 description: |60 The phandle's argument in the PHY specifier is the USB controller61 selector for the USB channel.62 For RZ/G1C:63 - 0 for EHCI/OHCI64 - 1 for HS-USB65 For all other SoCS:66 - 0 for PCI EHCI/OHCI67 - 1 for HS-USB (channel 0) or xHCI (channel 2)68 const: 169 70 required:71 - reg72 - '#phy-cells'73 74 additionalProperties: false75 76required:77 - compatible78 - reg79 - '#address-cells'80 - '#size-cells'81 - clocks82 - clock-names83 - resets84 - power-domains85 - usb-phy@086 87if:88 properties:89 compatible:90 contains:91 const: renesas,usb-phy-r8a7747092then:93 properties:94 usb-phy@2: false95else:96 required:97 - usb-phy@298 99additionalProperties: false100 101examples:102 - |103 #include <dt-bindings/clock/r8a7790-cpg-mssr.h>104 #include <dt-bindings/power/r8a7790-sysc.h>105 usb-phy-controller@e6590100 {106 compatible = "renesas,usb-phy-r8a7790", "renesas,rcar-gen2-usb-phy";107 reg = <0xe6590100 0x100>;108 #address-cells = <1>;109 #size-cells = <0>;110 clocks = <&cpg CPG_MOD 704>;111 clock-names = "usbhs";112 power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;113 resets = <&cpg 704>;114 115 usb0: usb-phy@0 {116 reg = <0>;117 #phy-cells = <1>;118 };119 usb2: usb-phy@2 {120 reg = <2>;121 #phy-cells = <1>;122 };123 };124