10b2f7ad1SMaxime Ripard# SPDX-License-Identifier: GPL-2.0 20b2f7ad1SMaxime Ripard%YAML 1.2 30b2f7ad1SMaxime Ripard--- 40b2f7ad1SMaxime Ripard$id: http://devicetree.org/schemas/phy/allwinner,sun50i-a64-usb-phy.yaml# 50b2f7ad1SMaxime Ripard$schema: http://devicetree.org/meta-schemas/core.yaml# 60b2f7ad1SMaxime Ripard 7*dd3cb467SAndrew Lunntitle: Allwinner A64 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: 186773675aSSamuel Holland enum: 196773675aSSamuel Holland - allwinner,sun20i-d1-usb-phy 206773675aSSamuel Holland - allwinner,sun50i-a64-usb-phy 210b2f7ad1SMaxime Ripard 220b2f7ad1SMaxime Ripard reg: 230b2f7ad1SMaxime Ripard items: 240b2f7ad1SMaxime Ripard - description: PHY Control registers 250b2f7ad1SMaxime Ripard - description: PHY PMU0 registers 260b2f7ad1SMaxime Ripard - description: PHY PMU1 registers 270b2f7ad1SMaxime Ripard 280b2f7ad1SMaxime Ripard reg-names: 290b2f7ad1SMaxime Ripard items: 300b2f7ad1SMaxime Ripard - const: phy_ctrl 310b2f7ad1SMaxime Ripard - const: pmu0 320b2f7ad1SMaxime Ripard - const: pmu1 330b2f7ad1SMaxime Ripard 340b2f7ad1SMaxime Ripard clocks: 350b2f7ad1SMaxime Ripard items: 360b2f7ad1SMaxime Ripard - description: USB OTG PHY bus clock 370b2f7ad1SMaxime Ripard - description: USB Host 0 PHY bus clock 380b2f7ad1SMaxime Ripard 390b2f7ad1SMaxime Ripard clock-names: 400b2f7ad1SMaxime Ripard items: 410b2f7ad1SMaxime Ripard - const: usb0_phy 420b2f7ad1SMaxime Ripard - const: usb1_phy 430b2f7ad1SMaxime Ripard 440b2f7ad1SMaxime Ripard resets: 450b2f7ad1SMaxime Ripard items: 460b2f7ad1SMaxime Ripard - description: USB OTG reset 470b2f7ad1SMaxime Ripard - description: USB Host 1 Controller reset 480b2f7ad1SMaxime Ripard 490b2f7ad1SMaxime Ripard reset-names: 500b2f7ad1SMaxime Ripard items: 510b2f7ad1SMaxime Ripard - const: usb0_reset 520b2f7ad1SMaxime Ripard - const: usb1_reset 530b2f7ad1SMaxime Ripard 540b2f7ad1SMaxime Ripard usb0_id_det-gpios: 550499220dSRob Herring maxItems: 1 560b2f7ad1SMaxime Ripard description: GPIO to the USB OTG ID pin 570b2f7ad1SMaxime Ripard 580b2f7ad1SMaxime Ripard usb0_vbus_det-gpios: 590499220dSRob Herring maxItems: 1 600b2f7ad1SMaxime Ripard description: GPIO to the USB OTG VBUS detect pin 610b2f7ad1SMaxime Ripard 620b2f7ad1SMaxime Ripard usb0_vbus_power-supply: 630b2f7ad1SMaxime Ripard description: Power supply to detect the USB OTG VBUS 640b2f7ad1SMaxime Ripard 650b2f7ad1SMaxime Ripard usb0_vbus-supply: 660b2f7ad1SMaxime Ripard description: Regulator controlling USB OTG VBUS 670b2f7ad1SMaxime Ripard 680b2f7ad1SMaxime Ripard usb1_vbus-supply: 690b2f7ad1SMaxime Ripard description: Regulator controlling USB1 Host controller 700b2f7ad1SMaxime Ripard 710b2f7ad1SMaxime Ripardrequired: 720b2f7ad1SMaxime Ripard - "#phy-cells" 730b2f7ad1SMaxime Ripard - compatible 740b2f7ad1SMaxime Ripard - clocks 750b2f7ad1SMaxime Ripard - clock-names 760b2f7ad1SMaxime Ripard - reg 770b2f7ad1SMaxime Ripard - reg-names 780b2f7ad1SMaxime Ripard - resets 790b2f7ad1SMaxime Ripard - reset-names 800b2f7ad1SMaxime Ripard 810b2f7ad1SMaxime RipardadditionalProperties: false 820b2f7ad1SMaxime Ripard 830b2f7ad1SMaxime Ripardexamples: 840b2f7ad1SMaxime Ripard - | 850b2f7ad1SMaxime Ripard #include <dt-bindings/gpio/gpio.h> 860b2f7ad1SMaxime Ripard #include <dt-bindings/clock/sun50i-a64-ccu.h> 870b2f7ad1SMaxime Ripard #include <dt-bindings/reset/sun50i-a64-ccu.h> 880b2f7ad1SMaxime Ripard 890b2f7ad1SMaxime Ripard phy@1c19400 { 900b2f7ad1SMaxime Ripard #phy-cells = <1>; 910b2f7ad1SMaxime Ripard compatible = "allwinner,sun50i-a64-usb-phy"; 920b2f7ad1SMaxime Ripard reg = <0x01c19400 0x14>, 930b2f7ad1SMaxime Ripard <0x01c1a800 0x4>, 940b2f7ad1SMaxime Ripard <0x01c1b800 0x4>; 950b2f7ad1SMaxime Ripard reg-names = "phy_ctrl", 960b2f7ad1SMaxime Ripard "pmu0", 970b2f7ad1SMaxime Ripard "pmu1"; 980b2f7ad1SMaxime Ripard clocks = <&ccu CLK_USB_PHY0>, 990b2f7ad1SMaxime Ripard <&ccu CLK_USB_PHY1>; 1000b2f7ad1SMaxime Ripard clock-names = "usb0_phy", 1010b2f7ad1SMaxime Ripard "usb1_phy"; 1020b2f7ad1SMaxime Ripard resets = <&ccu RST_USB_PHY0>, 1030b2f7ad1SMaxime Ripard <&ccu RST_USB_PHY1>; 1040b2f7ad1SMaxime Ripard reset-names = "usb0_reset", 1050b2f7ad1SMaxime Ripard "usb1_reset"; 1060b2f7ad1SMaxime Ripard usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */ 1070b2f7ad1SMaxime Ripard usb0_vbus_power-supply = <&usb_power_supply>; 1080b2f7ad1SMaxime Ripard usb0_vbus-supply = <®_drivevbus>; 1090b2f7ad1SMaxime Ripard usb1_vbus-supply = <®_usb1_vbus>; 1100b2f7ad1SMaxime Ripard }; 111