10b2f7ad1SMaxime Ripard# SPDX-License-Identifier: GPL-2.0 20b2f7ad1SMaxime Ripard%YAML 1.2 30b2f7ad1SMaxime Ripard--- 40b2f7ad1SMaxime Ripard$id: http://devicetree.org/schemas/phy/allwinner,sun8i-a83t-usb-phy.yaml# 50b2f7ad1SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 60b2f7ad1SMaxime Ripard 7*dd3cb467SAndrew Lunntitle: Allwinner A83t USB PHY 80b2f7ad1SMaxime Ripard 90b2f7ad1SMaxime Ripardmaintainers: 100b2f7ad1SMaxime Ripard - Chen-Yu Tsai <wens@csie.org> 110b2f7ad1SMaxime Ripard - Maxime Ripard <mripard@kernel.org> 120b2f7ad1SMaxime Ripard 130b2f7ad1SMaxime Ripardproperties: 140b2f7ad1SMaxime Ripard "#phy-cells": 150b2f7ad1SMaxime Ripard const: 1 160b2f7ad1SMaxime Ripard 170b2f7ad1SMaxime Ripard compatible: 180b2f7ad1SMaxime Ripard const: allwinner,sun8i-a83t-usb-phy 190b2f7ad1SMaxime Ripard 200b2f7ad1SMaxime Ripard reg: 210b2f7ad1SMaxime Ripard items: 220b2f7ad1SMaxime Ripard - description: PHY Control registers 230b2f7ad1SMaxime Ripard - description: PHY PMU1 registers 240b2f7ad1SMaxime Ripard - description: PHY PMU2 registers 250b2f7ad1SMaxime Ripard 260b2f7ad1SMaxime Ripard reg-names: 270b2f7ad1SMaxime Ripard items: 280b2f7ad1SMaxime Ripard - const: phy_ctrl 290b2f7ad1SMaxime Ripard - const: pmu1 300b2f7ad1SMaxime Ripard - const: pmu2 310b2f7ad1SMaxime Ripard 320b2f7ad1SMaxime Ripard clocks: 330b2f7ad1SMaxime Ripard items: 340b2f7ad1SMaxime Ripard - description: USB OTG PHY bus clock 350b2f7ad1SMaxime Ripard - description: USB Host 0 PHY bus clock 360b2f7ad1SMaxime Ripard - description: USB Host 1 PHY bus clock 370b2f7ad1SMaxime Ripard - description: USB HSIC 12MHz clock 380b2f7ad1SMaxime Ripard 390b2f7ad1SMaxime Ripard clock-names: 400b2f7ad1SMaxime Ripard items: 410b2f7ad1SMaxime Ripard - const: usb0_phy 420b2f7ad1SMaxime Ripard - const: usb1_phy 430b2f7ad1SMaxime Ripard - const: usb2_phy 440b2f7ad1SMaxime Ripard - const: usb2_hsic_12M 450b2f7ad1SMaxime Ripard 460b2f7ad1SMaxime Ripard resets: 470b2f7ad1SMaxime Ripard items: 480b2f7ad1SMaxime Ripard - description: USB OTG reset 490b2f7ad1SMaxime Ripard - description: USB Host 1 Controller reset 500b2f7ad1SMaxime Ripard - description: USB Host 2 Controller reset 510b2f7ad1SMaxime Ripard 520b2f7ad1SMaxime Ripard reset-names: 530b2f7ad1SMaxime Ripard items: 540b2f7ad1SMaxime Ripard - const: usb0_reset 550b2f7ad1SMaxime Ripard - const: usb1_reset 560b2f7ad1SMaxime Ripard - const: usb2_reset 570b2f7ad1SMaxime Ripard 580b2f7ad1SMaxime Ripard usb0_id_det-gpios: 590499220dSRob Herring maxItems: 1 600b2f7ad1SMaxime Ripard description: GPIO to the USB OTG ID pin 610b2f7ad1SMaxime Ripard 620b2f7ad1SMaxime Ripard usb0_vbus_det-gpios: 630499220dSRob Herring maxItems: 1 640b2f7ad1SMaxime Ripard description: GPIO to the USB OTG VBUS detect pin 650b2f7ad1SMaxime Ripard 660b2f7ad1SMaxime Ripard usb0_vbus_power-supply: 670b2f7ad1SMaxime Ripard description: Power supply to detect the USB OTG VBUS 680b2f7ad1SMaxime Ripard 690b2f7ad1SMaxime Ripard usb0_vbus-supply: 700b2f7ad1SMaxime Ripard description: Regulator controlling USB OTG VBUS 710b2f7ad1SMaxime Ripard 720b2f7ad1SMaxime Ripard usb1_vbus-supply: 730b2f7ad1SMaxime Ripard description: Regulator controlling USB1 Host controller 740b2f7ad1SMaxime Ripard 750b2f7ad1SMaxime Ripard usb2_vbus-supply: 760b2f7ad1SMaxime Ripard description: Regulator controlling USB2 Host controller 770b2f7ad1SMaxime Ripard 780b2f7ad1SMaxime Ripardrequired: 790b2f7ad1SMaxime Ripard - "#phy-cells" 800b2f7ad1SMaxime Ripard - compatible 810b2f7ad1SMaxime Ripard - clocks 820b2f7ad1SMaxime Ripard - clock-names 830b2f7ad1SMaxime Ripard - reg 840b2f7ad1SMaxime Ripard - reg-names 850b2f7ad1SMaxime Ripard - resets 860b2f7ad1SMaxime Ripard - reset-names 870b2f7ad1SMaxime Ripard 880b2f7ad1SMaxime RipardadditionalProperties: false 890b2f7ad1SMaxime Ripard 900b2f7ad1SMaxime Ripardexamples: 910b2f7ad1SMaxime Ripard - | 920b2f7ad1SMaxime Ripard #include <dt-bindings/gpio/gpio.h> 930b2f7ad1SMaxime Ripard #include <dt-bindings/clock/sun8i-a83t-ccu.h> 940b2f7ad1SMaxime Ripard #include <dt-bindings/reset/sun8i-a83t-ccu.h> 950b2f7ad1SMaxime Ripard 960b2f7ad1SMaxime Ripard phy@1c19400 { 970b2f7ad1SMaxime Ripard #phy-cells = <1>; 980b2f7ad1SMaxime Ripard compatible = "allwinner,sun8i-a83t-usb-phy"; 990b2f7ad1SMaxime Ripard reg = <0x01c19400 0x10>, 1000b2f7ad1SMaxime Ripard <0x01c1a800 0x14>, 1010b2f7ad1SMaxime Ripard <0x01c1b800 0x14>; 1020b2f7ad1SMaxime Ripard reg-names = "phy_ctrl", 1030b2f7ad1SMaxime Ripard "pmu1", 1040b2f7ad1SMaxime Ripard "pmu2"; 1050b2f7ad1SMaxime Ripard clocks = <&ccu CLK_USB_PHY0>, 1060b2f7ad1SMaxime Ripard <&ccu CLK_USB_PHY1>, 1070b2f7ad1SMaxime Ripard <&ccu CLK_USB_HSIC>, 1080b2f7ad1SMaxime Ripard <&ccu CLK_USB_HSIC_12M>; 1090b2f7ad1SMaxime Ripard clock-names = "usb0_phy", 1100b2f7ad1SMaxime Ripard "usb1_phy", 1110b2f7ad1SMaxime Ripard "usb2_phy", 1120b2f7ad1SMaxime Ripard "usb2_hsic_12M"; 1130b2f7ad1SMaxime Ripard resets = <&ccu RST_USB_PHY0>, 1140b2f7ad1SMaxime Ripard <&ccu RST_USB_PHY1>, 1150b2f7ad1SMaxime Ripard <&ccu RST_USB_HSIC>; 1160b2f7ad1SMaxime Ripard reset-names = "usb0_reset", 1170b2f7ad1SMaxime Ripard "usb1_reset", 1180b2f7ad1SMaxime Ripard "usb2_reset"; 1190b2f7ad1SMaxime Ripard usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ 1200b2f7ad1SMaxime Ripard usb0_vbus_power-supply = <&usb_power_supply>; 1210b2f7ad1SMaxime Ripard usb0_vbus-supply = <®_drivevbus>; 1220b2f7ad1SMaxime Ripard usb1_vbus-supply = <®_usb1_vbus>; 1230b2f7ad1SMaxime Ripard usb2_vbus-supply = <®_usb2_vbus>; 1240b2f7ad1SMaxime Ripard }; 125