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