xref: /freebsd/sys/contrib/device-tree/Bindings/phy/allwinner,suniv-f1c100s-usb-phy.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/phy/allwinner,suniv-f1c100s-usb-phy.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Allwinner F1C100s USB PHY
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11*cb7aa33aSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12*cb7aa33aSEmmanuel Vadot
13*cb7aa33aSEmmanuel Vadotproperties:
14*cb7aa33aSEmmanuel Vadot  "#phy-cells":
15*cb7aa33aSEmmanuel Vadot    const: 1
16*cb7aa33aSEmmanuel Vadot
17*cb7aa33aSEmmanuel Vadot  compatible:
18*cb7aa33aSEmmanuel Vadot    const: allwinner,suniv-f1c100s-usb-phy
19*cb7aa33aSEmmanuel Vadot
20*cb7aa33aSEmmanuel Vadot  reg:
21*cb7aa33aSEmmanuel Vadot    maxItems: 1
22*cb7aa33aSEmmanuel Vadot    description: PHY Control registers
23*cb7aa33aSEmmanuel Vadot
24*cb7aa33aSEmmanuel Vadot  reg-names:
25*cb7aa33aSEmmanuel Vadot    const: phy_ctrl
26*cb7aa33aSEmmanuel Vadot
27*cb7aa33aSEmmanuel Vadot  clocks:
28*cb7aa33aSEmmanuel Vadot    maxItems: 1
29*cb7aa33aSEmmanuel Vadot    description: USB OTG PHY bus clock
30*cb7aa33aSEmmanuel Vadot
31*cb7aa33aSEmmanuel Vadot  clock-names:
32*cb7aa33aSEmmanuel Vadot    const: usb0_phy
33*cb7aa33aSEmmanuel Vadot
34*cb7aa33aSEmmanuel Vadot  resets:
35*cb7aa33aSEmmanuel Vadot    maxItems: 1
36*cb7aa33aSEmmanuel Vadot    description: USB OTG reset
37*cb7aa33aSEmmanuel Vadot
38*cb7aa33aSEmmanuel Vadot  reset-names:
39*cb7aa33aSEmmanuel Vadot    const: usb0_reset
40*cb7aa33aSEmmanuel Vadot
41*cb7aa33aSEmmanuel Vadot  usb0_id_det-gpios:
42*cb7aa33aSEmmanuel Vadot    maxItems: 1
43*cb7aa33aSEmmanuel Vadot    description: GPIO to the USB OTG ID pin
44*cb7aa33aSEmmanuel Vadot
45*cb7aa33aSEmmanuel Vadot  usb0_vbus_det-gpios:
46*cb7aa33aSEmmanuel Vadot    maxItems: 1
47*cb7aa33aSEmmanuel Vadot    description: GPIO to the USB OTG VBUS detect pin
48*cb7aa33aSEmmanuel Vadot
49*cb7aa33aSEmmanuel Vadot  usb0_vbus_power-supply:
50*cb7aa33aSEmmanuel Vadot    description: Power supply to detect the USB OTG VBUS
51*cb7aa33aSEmmanuel Vadot
52*cb7aa33aSEmmanuel Vadot  usb0_vbus-supply:
53*cb7aa33aSEmmanuel Vadot    description: Regulator controlling USB OTG VBUS
54*cb7aa33aSEmmanuel Vadot
55*cb7aa33aSEmmanuel Vadotrequired:
56*cb7aa33aSEmmanuel Vadot  - "#phy-cells"
57*cb7aa33aSEmmanuel Vadot  - compatible
58*cb7aa33aSEmmanuel Vadot  - clocks
59*cb7aa33aSEmmanuel Vadot  - clock-names
60*cb7aa33aSEmmanuel Vadot  - reg
61*cb7aa33aSEmmanuel Vadot  - reg-names
62*cb7aa33aSEmmanuel Vadot  - resets
63*cb7aa33aSEmmanuel Vadot  - reset-names
64*cb7aa33aSEmmanuel Vadot
65*cb7aa33aSEmmanuel VadotadditionalProperties: false
66*cb7aa33aSEmmanuel Vadot
67*cb7aa33aSEmmanuel Vadotexamples:
68*cb7aa33aSEmmanuel Vadot  - |
69*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
70*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/suniv-ccu-f1c100s.h>
71*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/reset/suniv-ccu-f1c100s.h>
72*cb7aa33aSEmmanuel Vadot
73*cb7aa33aSEmmanuel Vadot    phy@1c13400 {
74*cb7aa33aSEmmanuel Vadot        compatible = "allwinner,suniv-f1c100s-usb-phy";
75*cb7aa33aSEmmanuel Vadot        reg = <0x01c13400 0x10>;
76*cb7aa33aSEmmanuel Vadot        reg-names = "phy_ctrl";
77*cb7aa33aSEmmanuel Vadot        clocks = <&ccu CLK_USB_PHY0>;
78*cb7aa33aSEmmanuel Vadot        clock-names = "usb0_phy";
79*cb7aa33aSEmmanuel Vadot        resets = <&ccu RST_USB_PHY0>;
80*cb7aa33aSEmmanuel Vadot        reset-names = "usb0_reset";
81*cb7aa33aSEmmanuel Vadot        #phy-cells = <1>;
82*cb7aa33aSEmmanuel Vadot        usb0_id_det-gpios = <&pio 4 2 GPIO_ACTIVE_HIGH>;
83*cb7aa33aSEmmanuel Vadot    };
84