treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / usb / renesas,usb3-peri.yaml
blob92d8631b9aa60c6968d074100d4a98b62e310ce7
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/usb/renesas,usb3-peri.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas USB 3.0 Peripheral controller
9 maintainers:
10   - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
12 properties:
13   compatible:
14     items:
15       - enum:
16           - renesas,r8a774a1-usb3-peri # RZ/G2M
17           - renesas,r8a774b1-usb3-peri # RZ/G2N
18           - renesas,r8a774c0-usb3-peri # RZ/G2E
19           - renesas,r8a7795-usb3-peri  # R-Car H3
20           - renesas,r8a7796-usb3-peri  # R-Car M3-W
21           - renesas,r8a77965-usb3-peri # R-Car M3-N
22           - renesas,r8a77990-usb3-peri # R-Car E3
23       - const: renesas,rcar-gen3-usb3-peri
25   reg:
26     maxItems: 1
28   interrupts:
29     maxItems: 1
31   clocks:
32     maxItems: 1
34   phys:
35     maxItems: 1
37   phy-names:
38     const: usb
40   power-domains:
41     maxItems: 1
43   resets:
44     maxItems: 1
46   usb-role-switch:
47     $ref: /schemas/types.yaml#/definitions/flag
48     description: Support role switch.
50   companion:
51     $ref: /schemas/types.yaml#/definitions/phandle
52     description: phandle of a companion.
54   port:
55     description: |
56       any connector to the data bus of this controller should be modelled
57       using the OF graph bindings specified, if the "usb-role-switch"
58       property is used.
60 required:
61   - compatible
62   - interrupts
63   - clocks
65 additionalProperties: false
67 examples:
68   - |
69     #include <dt-bindings/clock/r8a774c0-cpg-mssr.h>
70     #include <dt-bindings/interrupt-controller/arm-gic.h>
71     #include <dt-bindings/power/r8a774c0-sysc.h>
73     usb3_peri0: usb@ee020000 {
74         compatible = "renesas,r8a774c0-usb3-peri", "renesas,rcar-gen3-usb3-peri";
75         reg = <0 0xee020000 0 0x400>;
76         interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
77         clocks = <&cpg CPG_MOD 328>;
78         companion = <&xhci0>;
79         usb-role-switch;
81         port {
82             usb3_role_switch: endpoint {
83                 remote-endpoint = <&hd3ss3220_ep>;
84             };
85         };
86     };