1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/allwinner,sun8i-a83t-usb-phy.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Allwinner A83t USB PHY 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chen-Yu Tsai <wens@csie.org> 11c66ec88fSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotproperties: 14c66ec88fSEmmanuel Vadot "#phy-cells": 15c66ec88fSEmmanuel Vadot const: 1 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadot compatible: 18c66ec88fSEmmanuel Vadot const: allwinner,sun8i-a83t-usb-phy 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot reg: 21c66ec88fSEmmanuel Vadot items: 22c66ec88fSEmmanuel Vadot - description: PHY Control registers 23c66ec88fSEmmanuel Vadot - description: PHY PMU1 registers 24c66ec88fSEmmanuel Vadot - description: PHY PMU2 registers 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot reg-names: 27c66ec88fSEmmanuel Vadot items: 28c66ec88fSEmmanuel Vadot - const: phy_ctrl 29c66ec88fSEmmanuel Vadot - const: pmu1 30c66ec88fSEmmanuel Vadot - const: pmu2 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot clocks: 33c66ec88fSEmmanuel Vadot items: 34c66ec88fSEmmanuel Vadot - description: USB OTG PHY bus clock 35c66ec88fSEmmanuel Vadot - description: USB Host 0 PHY bus clock 36c66ec88fSEmmanuel Vadot - description: USB Host 1 PHY bus clock 37c66ec88fSEmmanuel Vadot - description: USB HSIC 12MHz clock 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot clock-names: 40c66ec88fSEmmanuel Vadot items: 41c66ec88fSEmmanuel Vadot - const: usb0_phy 42c66ec88fSEmmanuel Vadot - const: usb1_phy 43c66ec88fSEmmanuel Vadot - const: usb2_phy 44c66ec88fSEmmanuel Vadot - const: usb2_hsic_12M 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot resets: 47c66ec88fSEmmanuel Vadot items: 48c66ec88fSEmmanuel Vadot - description: USB OTG reset 49c66ec88fSEmmanuel Vadot - description: USB Host 1 Controller reset 50c66ec88fSEmmanuel Vadot - description: USB Host 2 Controller reset 51c66ec88fSEmmanuel Vadot 52c66ec88fSEmmanuel Vadot reset-names: 53c66ec88fSEmmanuel Vadot items: 54c66ec88fSEmmanuel Vadot - const: usb0_reset 55c66ec88fSEmmanuel Vadot - const: usb1_reset 56c66ec88fSEmmanuel Vadot - const: usb2_reset 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot usb0_id_det-gpios: 595def4c47SEmmanuel Vadot maxItems: 1 60c66ec88fSEmmanuel Vadot description: GPIO to the USB OTG ID pin 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot usb0_vbus_det-gpios: 635def4c47SEmmanuel Vadot maxItems: 1 64c66ec88fSEmmanuel Vadot description: GPIO to the USB OTG VBUS detect pin 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot usb0_vbus_power-supply: 67c66ec88fSEmmanuel Vadot description: Power supply to detect the USB OTG VBUS 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadot usb0_vbus-supply: 70c66ec88fSEmmanuel Vadot description: Regulator controlling USB OTG VBUS 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadot usb1_vbus-supply: 73c66ec88fSEmmanuel Vadot description: Regulator controlling USB1 Host controller 74c66ec88fSEmmanuel Vadot 75c66ec88fSEmmanuel Vadot usb2_vbus-supply: 76c66ec88fSEmmanuel Vadot description: Regulator controlling USB2 Host controller 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadotrequired: 79c66ec88fSEmmanuel Vadot - "#phy-cells" 80c66ec88fSEmmanuel Vadot - compatible 81c66ec88fSEmmanuel Vadot - clocks 82c66ec88fSEmmanuel Vadot - clock-names 83c66ec88fSEmmanuel Vadot - reg 84c66ec88fSEmmanuel Vadot - reg-names 85c66ec88fSEmmanuel Vadot - resets 86c66ec88fSEmmanuel Vadot - reset-names 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel VadotadditionalProperties: false 89c66ec88fSEmmanuel Vadot 90c66ec88fSEmmanuel Vadotexamples: 91c66ec88fSEmmanuel Vadot - | 92c66ec88fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 93c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/sun8i-a83t-ccu.h> 94c66ec88fSEmmanuel Vadot #include <dt-bindings/reset/sun8i-a83t-ccu.h> 95c66ec88fSEmmanuel Vadot 96c66ec88fSEmmanuel Vadot phy@1c19400 { 97c66ec88fSEmmanuel Vadot #phy-cells = <1>; 98c66ec88fSEmmanuel Vadot compatible = "allwinner,sun8i-a83t-usb-phy"; 99c66ec88fSEmmanuel Vadot reg = <0x01c19400 0x10>, 100c66ec88fSEmmanuel Vadot <0x01c1a800 0x14>, 101c66ec88fSEmmanuel Vadot <0x01c1b800 0x14>; 102c66ec88fSEmmanuel Vadot reg-names = "phy_ctrl", 103c66ec88fSEmmanuel Vadot "pmu1", 104c66ec88fSEmmanuel Vadot "pmu2"; 105c66ec88fSEmmanuel Vadot clocks = <&ccu CLK_USB_PHY0>, 106c66ec88fSEmmanuel Vadot <&ccu CLK_USB_PHY1>, 107c66ec88fSEmmanuel Vadot <&ccu CLK_USB_HSIC>, 108c66ec88fSEmmanuel Vadot <&ccu CLK_USB_HSIC_12M>; 109c66ec88fSEmmanuel Vadot clock-names = "usb0_phy", 110c66ec88fSEmmanuel Vadot "usb1_phy", 111c66ec88fSEmmanuel Vadot "usb2_phy", 112c66ec88fSEmmanuel Vadot "usb2_hsic_12M"; 113c66ec88fSEmmanuel Vadot resets = <&ccu RST_USB_PHY0>, 114c66ec88fSEmmanuel Vadot <&ccu RST_USB_PHY1>, 115c66ec88fSEmmanuel Vadot <&ccu RST_USB_HSIC>; 116c66ec88fSEmmanuel Vadot reset-names = "usb0_reset", 117c66ec88fSEmmanuel Vadot "usb1_reset", 118c66ec88fSEmmanuel Vadot "usb2_reset"; 119c66ec88fSEmmanuel Vadot usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ 120c66ec88fSEmmanuel Vadot usb0_vbus_power-supply = <&usb_power_supply>; 121c66ec88fSEmmanuel Vadot usb0_vbus-supply = <®_drivevbus>; 122c66ec88fSEmmanuel Vadot usb1_vbus-supply = <®_usb1_vbus>; 123c66ec88fSEmmanuel Vadot usb2_vbus-supply = <®_usb2_vbus>; 124c66ec88fSEmmanuel Vadot }; 125