1 # SPDX-License-Identifier: GPL-2.0
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 Device Tree Bindings
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
19 - allwinner,sun20i-d1-usb-phy
20 - allwinner,sun50i-a64-usb-phy
24 - description: PHY Control registers
25 - description: PHY PMU0 registers
26 - description: PHY PMU1 registers
36 - description: USB OTG PHY bus clock
37 - description: USB Host 0 PHY bus clock
46 - description: USB OTG reset
47 - description: USB Host 1 Controller reset
56 description: GPIO to the USB OTG ID pin
60 description: GPIO to the USB OTG VBUS detect pin
62 usb0_vbus_power-supply:
63 description: Power supply to detect the USB OTG VBUS
66 description: Regulator controlling USB OTG VBUS
69 description: Regulator controlling USB1 Host controller
81 additionalProperties: false
85 #include <dt-bindings/gpio/gpio.h>
86 #include <dt-bindings/clock/sun50i-a64-ccu.h>
87 #include <dt-bindings/reset/sun50i-a64-ccu.h>
91 compatible = "allwinner,sun50i-a64-usb-phy";
92 reg = <0x01c19400 0x14>,
95 reg-names = "phy_ctrl",
98 clocks = <&ccu CLK_USB_PHY0>,
100 clock-names = "usb0_phy",
102 resets = <&ccu RST_USB_PHY0>,
104 reset-names = "usb0_reset",
106 usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
107 usb0_vbus_power-supply = <&usb_power_supply>;
108 usb0_vbus-supply = <®_drivevbus>;
109 usb1_vbus-supply = <®_usb1_vbus>;