1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/phy/allwinner,sun5i-a13-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Allwinner A13 USB PHY Device Tree Bindings
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
18 const: allwinner,sun5i-a13-usb-phy
22 - description: PHY Control registers
23 - description: PHY PMU1 registers
32 description: USB OTG PHY bus clock
39 - description: USB OTG reset
40 - description: USB Host 1 Controller reset
48 description: GPIO to the USB OTG ID pin
51 description: GPIO to the USB OTG VBUS detect pin
53 usb0_vbus_power-supply:
54 description: Power supply to detect the USB OTG VBUS
57 description: Regulator controlling USB OTG VBUS
60 description: Regulator controlling USB1 Host controller
72 additionalProperties: false
76 #include <dt-bindings/gpio/gpio.h>
77 #include <dt-bindings/clock/sun5i-ccu.h>
78 #include <dt-bindings/reset/sun5i-ccu.h>
82 compatible = "allwinner,sun5i-a13-usb-phy";
83 reg = <0x01c13400 0x10>, <0x01c14800 0x4>;
84 reg-names = "phy_ctrl", "pmu1";
85 clocks = <&ccu CLK_USB_PHY0>;
86 clock-names = "usb_phy";
87 resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>;
88 reset-names = "usb0_reset", "usb1_reset";
89 usb0_id_det-gpios = <&pio 6 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PG2 */
90 usb0_vbus_det-gpios = <&pio 6 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PG1 */
91 usb0_vbus-supply = <®_usb0_vbus>;
92 usb1_vbus-supply = <®_usb1_vbus>;