xref: /freebsd/sys/contrib/device-tree/Bindings/phy/renesas,usb3-phy.yaml (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
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,r8a774e1-usb3-phy # RZ/G2H
19          - renesas,r8a7795-usb3-phy  # R-Car H3
20          - renesas,r8a7796-usb3-phy  # R-Car M3-W
21          - renesas,r8a77961-usb3-phy # R-Car M3-W+
22          - renesas,r8a77965-usb3-phy # R-Car M3-N
23      - const: renesas,rcar-gen3-usb3-phy
24
25  reg:
26    maxItems: 1
27
28  clocks:
29    minItems: 2
30    maxItems: 3
31
32  clock-names:
33    # If you want to use the ssc, the clock-frequency of usb_extal
34    # must not be 0.
35    minItems: 2
36    items:
37      - const: usb3-if # The funcional clock
38      - const: usb3s_clk # The usb3's external clock
39      - const: usb_extal # The usb2's external clock
40
41  '#phy-cells':
42    # see phy-bindings.txt in the same directory
43    const: 0
44
45  power-domains:
46    maxItems: 1
47
48  resets:
49    maxItems: 1
50
51  renesas,ssc-range:
52    description: |
53      Enable/disable spread spectrum clock (ssc). 0 or the property doesn't
54      exist means disabling the ssc. The actual value will be -<value> ppm.
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