1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/phy/renesas,usb2-phy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas R-Car generation 3 USB 2.0 PHY
8
9maintainers:
10  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - const: renesas,usb2-phy-r8a77470 # RZ/G1C
17
18      - items:
19          - enum:
20              - renesas,usb2-phy-r7s9210  # RZ/A2
21              - renesas,usb2-phy-r8a774a1 # RZ/G2M
22              - renesas,usb2-phy-r8a774b1 # RZ/G2N
23              - renesas,usb2-phy-r8a774c0 # RZ/G2E
24              - renesas,usb2-phy-r8a7795  # R-Car H3
25              - renesas,usb2-phy-r8a7796  # R-Car M3-W
26              - renesas,usb2-phy-r8a77961 # R-Car M3-W+
27              - renesas,usb2-phy-r8a77965 # R-Car M3-N
28              - renesas,usb2-phy-r8a77990 # R-Car E3
29              - renesas,usb2-phy-r8a77995 # R-Car D3
30          - const: renesas,rcar-gen3-usb2-phy
31
32  reg:
33    maxItems: 1
34
35  clocks:
36    minItems: 1
37    maxItems: 2
38
39  clock-names:
40    minItems: 1
41    maxItems: 2
42    items:
43      - const: fck
44      - const: usb_x1
45
46  '#phy-cells':
47    enum: [0, 1]  # and 0 is deprecated.
48    description: |
49      The phandle's argument in the PHY specifier is the INT_STATUS bit of
50      controller.
51      - 1 = USBH_INTA (OHCI)
52      - 2 = USBH_INTB (EHCI)
53      - 3 = UCOM_INT (OTG and BC)
54
55  interrupts:
56    maxItems: 1
57
58  power-domains:
59    maxItems: 1
60
61  resets:
62    minItems: 1
63    maxItems: 2
64    items:
65      - description: reset of USB 2.0 host side
66      - description: reset of USB 2.0 peripheral side
67
68  vbus-supply:
69    description: |
70      Phandle to a regulator that provides power to the VBUS. This regulator
71      will be managed during the PHY power on/off sequence.
72
73  renesas,no-otg-pins:
74    $ref: /schemas/types.yaml#/definitions/flag
75    description: |
76      specify when a board does not provide proper otg pins.
77
78  dr_mode: true
79
80if:
81  properties:
82    compatible:
83      items:
84        enum:
85          - renesas,usb2-phy-r7s9210
86then:
87  required:
88    - clock-names
89
90required:
91  - compatible
92  - reg
93  - clocks
94  - '#phy-cells'
95
96additionalProperties: false
97
98examples:
99  - |
100    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
101    #include <dt-bindings/interrupt-controller/arm-gic.h>
102    #include <dt-bindings/power/r8a7795-sysc.h>
103
104    usb-phy@ee080200 {
105        compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy";
106        reg = <0xee080200 0x700>;
107        interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
108        clocks = <&cpg CPG_MOD 703>;
109        #phy-cells = <1>;
110    };
111
112    usb-phy@ee0a0200 {
113        compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy";
114        reg = <0xee0a0200 0x700>;
115        clocks = <&cpg CPG_MOD 702>;
116        #phy-cells = <1>;
117    };
118