Lines Matching +full:usb +full:- +full:detect

1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/allwinner,sun50i-a64-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A64 USB PHY
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 "#phy-cells":
19 - enum:
20 - allwinner,sun20i-d1-usb-phy
21 - allwinner,sun50i-a64-usb-phy
22 - items:
23 - enum:
24 - allwinner,sun50i-a100-usb-phy
25 - allwinner,sun55i-a523-usb-phy
26 - const: allwinner,sun20i-d1-usb-phy
30 - description: PHY Control registers
31 - description: PHY PMU0 registers
32 - description: PHY PMU1 registers
34 reg-names:
36 - const: phy_ctrl
37 - const: pmu0
38 - const: pmu1
42 - description: USB OTG PHY bus clock
43 - description: USB Host 0 PHY bus clock
45 clock-names:
47 - const: usb0_phy
48 - const: usb1_phy
52 - description: USB OTG reset
53 - description: USB Host 1 Controller reset
55 reset-names:
57 - const: usb0_reset
58 - const: usb1_reset
60 usb0_id_det-gpios:
62 description: GPIO to the USB OTG ID pin
64 usb0_vbus_det-gpios:
66 description: GPIO to the USB OTG VBUS detect pin
68 usb0_vbus_power-supply:
69 description: Power supply to detect the USB OTG VBUS
71 usb0_vbus-supply:
72 description: Regulator controlling USB OTG VBUS
74 usb1_vbus-supply:
78 - "#phy-cells"
79 - compatible
80 - clocks
81 - clock-names
82 - reg
83 - reg-names
84 - resets
85 - reset-names
90 - |
91 #include <dt-bindings/gpio/gpio.h>
92 #include <dt-bindings/clock/sun50i-a64-ccu.h>
93 #include <dt-bindings/reset/sun50i-a64-ccu.h>
96 #phy-cells = <1>;
97 compatible = "allwinner,sun50i-a64-usb-phy";
101 reg-names = "phy_ctrl",
106 clock-names = "usb0_phy",
110 reset-names = "usb0_reset",
112 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
113 usb0_vbus_power-supply = <&usb_power_supply>;
114 usb0_vbus-supply = <&reg_drivevbus>;
115 usb1_vbus-supply = <&reg_usb1_vbus>;