xref: /freebsd/sys/contrib/device-tree/Bindings/usb/renesas,rzn1-usbf.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/renesas,rzn1-usbf.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Renesas RZ/N1 SoCs USBF (USB Function) controller
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotdescription: |
10*cb7aa33aSEmmanuel Vadot   The Renesas USBF controller is an USB2.0 device
11*cb7aa33aSEmmanuel Vadot   controller (UDC).
12*cb7aa33aSEmmanuel Vadot
13*cb7aa33aSEmmanuel Vadotmaintainers:
14*cb7aa33aSEmmanuel Vadot  - Herve Codina <herve.codina@bootlin.com>
15*cb7aa33aSEmmanuel Vadot
16*cb7aa33aSEmmanuel Vadotproperties:
17*cb7aa33aSEmmanuel Vadot  compatible:
18*cb7aa33aSEmmanuel Vadot    items:
19*cb7aa33aSEmmanuel Vadot      - enum:
20*cb7aa33aSEmmanuel Vadot          - renesas,r9a06g032-usbf
21*cb7aa33aSEmmanuel Vadot      - const: renesas,rzn1-usbf
22*cb7aa33aSEmmanuel Vadot
23*cb7aa33aSEmmanuel Vadot  reg:
24*cb7aa33aSEmmanuel Vadot    maxItems: 1
25*cb7aa33aSEmmanuel Vadot
26*cb7aa33aSEmmanuel Vadot  clocks:
27*cb7aa33aSEmmanuel Vadot    items:
28*cb7aa33aSEmmanuel Vadot      - description: Internal bus clock (AHB) for Function
29*cb7aa33aSEmmanuel Vadot      - description: Internal bus clock (AHB) for Power Management
30*cb7aa33aSEmmanuel Vadot
31*cb7aa33aSEmmanuel Vadot  clock-names:
32*cb7aa33aSEmmanuel Vadot    items:
33*cb7aa33aSEmmanuel Vadot      - const: hclkf
34*cb7aa33aSEmmanuel Vadot      - const: hclkpm
35*cb7aa33aSEmmanuel Vadot
36*cb7aa33aSEmmanuel Vadot  power-domains:
37*cb7aa33aSEmmanuel Vadot    maxItems: 1
38*cb7aa33aSEmmanuel Vadot
39*cb7aa33aSEmmanuel Vadot  interrupts:
40*cb7aa33aSEmmanuel Vadot    items:
41*cb7aa33aSEmmanuel Vadot      - description: The USBF EPC interrupt
42*cb7aa33aSEmmanuel Vadot      - description: The USBF AHB-EPC interrupt
43*cb7aa33aSEmmanuel Vadot
44*cb7aa33aSEmmanuel Vadotrequired:
45*cb7aa33aSEmmanuel Vadot  - compatible
46*cb7aa33aSEmmanuel Vadot  - reg
47*cb7aa33aSEmmanuel Vadot  - clocks
48*cb7aa33aSEmmanuel Vadot  - clock-names
49*cb7aa33aSEmmanuel Vadot  - power-domains
50*cb7aa33aSEmmanuel Vadot  - interrupts
51*cb7aa33aSEmmanuel Vadot
52*cb7aa33aSEmmanuel VadotadditionalProperties: false
53*cb7aa33aSEmmanuel Vadot
54*cb7aa33aSEmmanuel Vadotexamples:
55*cb7aa33aSEmmanuel Vadot  - |
56*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
57*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/r9a06g032-sysctrl.h>
58*cb7aa33aSEmmanuel Vadot
59*cb7aa33aSEmmanuel Vadot    usb@4001e000 {
60*cb7aa33aSEmmanuel Vadot        compatible = "renesas,r9a06g032-usbf", "renesas,rzn1-usbf";
61*cb7aa33aSEmmanuel Vadot        reg = <0x4001e000 0x2000>;
62*cb7aa33aSEmmanuel Vadot        interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
63*cb7aa33aSEmmanuel Vadot                     <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
64*cb7aa33aSEmmanuel Vadot        clocks = <&sysctrl R9A06G032_HCLK_USBF>,
65*cb7aa33aSEmmanuel Vadot                 <&sysctrl R9A06G032_HCLK_USBPM>;
66*cb7aa33aSEmmanuel Vadot        clock-names = "hclkf", "hclkpm";
67*cb7aa33aSEmmanuel Vadot        power-domains = <&sysctrl>;
68*cb7aa33aSEmmanuel Vadot    };
69