xref: /freebsd/sys/contrib/device-tree/Bindings/phy/renesas,usb2-phy.yaml (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/renesas,usb2-phy.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Renesas R-Car generation 3 USB 2.0 PHY
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  compatible:
14c66ec88fSEmmanuel Vadot    oneOf:
15c66ec88fSEmmanuel Vadot      - items:
16c66ec88fSEmmanuel Vadot          - const: renesas,usb2-phy-r8a77470 # RZ/G1C
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot      - items:
19c66ec88fSEmmanuel Vadot          - enum:
20c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r7s9210  # RZ/A2
21c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a774a1 # RZ/G2M
22c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a774b1 # RZ/G2N
23c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a774c0 # RZ/G2E
24c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a774e1 # RZ/G2H
25c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a7795  # R-Car H3
26c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a7796  # R-Car M3-W
27c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a77961 # R-Car M3-W+
28c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a77965 # R-Car M3-N
29c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a77990 # R-Car E3
30c66ec88fSEmmanuel Vadot              - renesas,usb2-phy-r8a77995 # R-Car D3
31c66ec88fSEmmanuel Vadot          - const: renesas,rcar-gen3-usb2-phy
32c66ec88fSEmmanuel Vadot
33354d7675SEmmanuel Vadot      - items:
34354d7675SEmmanuel Vadot          - enum:
35*d5b0e70fSEmmanuel Vadot              - renesas,usb2-phy-r9a07g043 # RZ/G2UL
36354d7675SEmmanuel Vadot              - renesas,usb2-phy-r9a07g044 # RZ/G2{L,LC}
37c9ccf3a3SEmmanuel Vadot              - renesas,usb2-phy-r9a07g054 # RZ/V2L
38c9ccf3a3SEmmanuel Vadot          - const: renesas,rzg2l-usb2-phy
39354d7675SEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  reg:
41c66ec88fSEmmanuel Vadot    maxItems: 1
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot  clocks:
44c66ec88fSEmmanuel Vadot    minItems: 1
45c66ec88fSEmmanuel Vadot    maxItems: 2
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  clock-names:
48c66ec88fSEmmanuel Vadot    minItems: 1
49c66ec88fSEmmanuel Vadot    items:
50c66ec88fSEmmanuel Vadot      - const: fck
51c66ec88fSEmmanuel Vadot      - const: usb_x1
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  '#phy-cells':
54c66ec88fSEmmanuel Vadot    enum: [0, 1]  # and 0 is deprecated.
55c66ec88fSEmmanuel Vadot    description: |
56c66ec88fSEmmanuel Vadot      The phandle's argument in the PHY specifier is the INT_STATUS bit of
57c66ec88fSEmmanuel Vadot      controller.
58c66ec88fSEmmanuel Vadot      - 1 = USBH_INTA (OHCI)
59c66ec88fSEmmanuel Vadot      - 2 = USBH_INTB (EHCI)
60c66ec88fSEmmanuel Vadot      - 3 = UCOM_INT (OTG and BC)
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot  interrupts:
63c66ec88fSEmmanuel Vadot    maxItems: 1
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot  power-domains:
66c66ec88fSEmmanuel Vadot    maxItems: 1
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot  resets:
69c66ec88fSEmmanuel Vadot    minItems: 1
70c66ec88fSEmmanuel Vadot    items:
71c66ec88fSEmmanuel Vadot      - description: reset of USB 2.0 host side
72c66ec88fSEmmanuel Vadot      - description: reset of USB 2.0 peripheral side
73c66ec88fSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot  vbus-supply:
75c66ec88fSEmmanuel Vadot    description: |
76c66ec88fSEmmanuel Vadot      Phandle to a regulator that provides power to the VBUS. This regulator
77c66ec88fSEmmanuel Vadot      will be managed during the PHY power on/off sequence.
78c66ec88fSEmmanuel Vadot
79c66ec88fSEmmanuel Vadot  renesas,no-otg-pins:
80c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
81c66ec88fSEmmanuel Vadot    description: |
82c66ec88fSEmmanuel Vadot      specify when a board does not provide proper otg pins.
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot  dr_mode: true
85c66ec88fSEmmanuel Vadot
86c66ec88fSEmmanuel Vadotif:
87c66ec88fSEmmanuel Vadot  properties:
88c66ec88fSEmmanuel Vadot    compatible:
895def4c47SEmmanuel Vadot      contains:
905def4c47SEmmanuel Vadot        const: renesas,usb2-phy-r7s9210
91c66ec88fSEmmanuel Vadotthen:
92c66ec88fSEmmanuel Vadot  required:
93c66ec88fSEmmanuel Vadot    - clock-names
94c66ec88fSEmmanuel Vadot
95c66ec88fSEmmanuel Vadotrequired:
96c66ec88fSEmmanuel Vadot  - compatible
97c66ec88fSEmmanuel Vadot  - reg
98c66ec88fSEmmanuel Vadot  - clocks
99c66ec88fSEmmanuel Vadot  - '#phy-cells'
100c66ec88fSEmmanuel Vadot
101354d7675SEmmanuel VadotallOf:
102354d7675SEmmanuel Vadot  - if:
103354d7675SEmmanuel Vadot      properties:
104354d7675SEmmanuel Vadot        compatible:
105354d7675SEmmanuel Vadot          contains:
106354d7675SEmmanuel Vadot            const: renesas,rzg2l-usb2-phy
107354d7675SEmmanuel Vadot    then:
108354d7675SEmmanuel Vadot      required:
109354d7675SEmmanuel Vadot        - resets
110354d7675SEmmanuel Vadot
111c66ec88fSEmmanuel VadotadditionalProperties: false
112c66ec88fSEmmanuel Vadot
113c66ec88fSEmmanuel Vadotexamples:
114c66ec88fSEmmanuel Vadot  - |
115c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
116c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
117c66ec88fSEmmanuel Vadot    #include <dt-bindings/power/r8a7795-sysc.h>
118c66ec88fSEmmanuel Vadot
119c66ec88fSEmmanuel Vadot    usb-phy@ee080200 {
120c66ec88fSEmmanuel Vadot        compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy";
121c66ec88fSEmmanuel Vadot        reg = <0xee080200 0x700>;
122c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
123c66ec88fSEmmanuel Vadot        clocks = <&cpg CPG_MOD 703>;
124c66ec88fSEmmanuel Vadot        #phy-cells = <1>;
125c66ec88fSEmmanuel Vadot    };
126c66ec88fSEmmanuel Vadot
127c66ec88fSEmmanuel Vadot    usb-phy@ee0a0200 {
128c66ec88fSEmmanuel Vadot        compatible = "renesas,usb2-phy-r8a7795", "renesas,rcar-gen3-usb2-phy";
129c66ec88fSEmmanuel Vadot        reg = <0xee0a0200 0x700>;
130c66ec88fSEmmanuel Vadot        clocks = <&cpg CPG_MOD 702>;
131c66ec88fSEmmanuel Vadot        #phy-cells = <1>;
132c66ec88fSEmmanuel Vadot    };
133