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,usb3-phy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Renesas R-Car generation 3 USB 3.0 PHY
8
9maintainers:
10  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
11
12properties:
13  compatible:
14    items:
15      - enum:
16          - renesas,r8a774a1-usb3-phy # RZ/G2M
17          - renesas,r8a774b1-usb3-phy # RZ/G2N
18          - renesas,r8a7795-usb3-phy  # R-Car H3
19          - renesas,r8a7796-usb3-phy  # R-Car M3-W
20          - renesas,r8a77965-usb3-phy # R-Car M3-N
21      - const: renesas,rcar-gen3-usb3-phy
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    minItems: 2
28    maxItems: 3
29
30  clock-names:
31    # If you want to use the ssc, the clock-frequency of usb_extal
32    # must not be 0.
33    minItems: 2
34    maxItems: 3
35    items:
36      - const: usb3-if # The funcional clock
37      - const: usb3s_clk # The usb3's external clock
38      - const: usb_extal # The usb2's external clock
39
40  '#phy-cells':
41    # see phy-bindings.txt in the same directory
42    const: 0
43
44  power-domains:
45    maxItems: 1
46
47  resets:
48    maxItems: 1
49
50  renesas,ssc-range:
51    description: |
52      Enable/disable spread spectrum clock (ssc). 0 or the property doesn't
53      exist means disabling the ssc. The actual value will be -<value> ppm.
54    allOf:
55      - $ref: /schemas/types.yaml#/definitions/uint32
56      - enum: [ 0, 4003, 4492, 4980 ]
57
58required:
59  - compatible
60  - reg
61  - clocks
62  - clock-names
63  - '#phy-cells'
64
65additionalProperties: false
66
67examples:
68  - |
69    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
70    #include <dt-bindings/power/r8a7795-sysc.h>
71
72    usb-phy@e65ee000 {
73        compatible = "renesas,r8a7795-usb3-phy", "renesas,rcar-gen3-usb3-phy";
74        reg = <0xe65ee000 0x90>;
75        clocks = <&cpg CPG_MOD 328>, <&usb3s0_clk>, <&usb_extal>;
76        clock-names = "usb3-if", "usb3s_clk", "usb_extal";
77        #phy-cells = <0>;
78    };
79