1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/allwinner,sun4i-a10-musb.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: Allwinner A10 mUSB OTG Controller 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 compatible: 15c66ec88fSEmmanuel Vadot oneOf: 16*cb7aa33aSEmmanuel Vadot - enum: 17*cb7aa33aSEmmanuel Vadot - allwinner,sun4i-a10-musb 18*cb7aa33aSEmmanuel Vadot - allwinner,sun6i-a31-musb 19*cb7aa33aSEmmanuel Vadot - allwinner,sun8i-a33-musb 20*cb7aa33aSEmmanuel Vadot - allwinner,sun8i-h3-musb 21*cb7aa33aSEmmanuel Vadot - allwinner,suniv-f1c100s-musb 22c66ec88fSEmmanuel Vadot - items: 23c66ec88fSEmmanuel Vadot - enum: 24c66ec88fSEmmanuel Vadot - allwinner,sun8i-a83t-musb 25b97ee269SEmmanuel Vadot - allwinner,sun20i-d1-musb 26c66ec88fSEmmanuel Vadot - allwinner,sun50i-h6-musb 27c66ec88fSEmmanuel Vadot - const: allwinner,sun8i-a33-musb 285956d97fSEmmanuel Vadot - items: 295956d97fSEmmanuel Vadot - const: allwinner,sun50i-h616-musb 305956d97fSEmmanuel Vadot - const: allwinner,sun8i-h3-musb 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot reg: 33c66ec88fSEmmanuel Vadot maxItems: 1 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot interrupts: 36c66ec88fSEmmanuel Vadot maxItems: 1 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot interrupt-names: 39c66ec88fSEmmanuel Vadot const: mc 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot clocks: 42c66ec88fSEmmanuel Vadot maxItems: 1 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot resets: 45c66ec88fSEmmanuel Vadot maxItems: 1 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot phys: 485def4c47SEmmanuel Vadot maxItems: 1 49c66ec88fSEmmanuel Vadot 50c66ec88fSEmmanuel Vadot phy-names: 51c66ec88fSEmmanuel Vadot const: usb 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot extcon: 54c66ec88fSEmmanuel Vadot description: Extcon specifier for the OTG PHY 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot dr_mode: 57c66ec88fSEmmanuel Vadot enum: 58c66ec88fSEmmanuel Vadot - host 59c66ec88fSEmmanuel Vadot - otg 60c66ec88fSEmmanuel Vadot - peripheral 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot allwinner,sram: 63c66ec88fSEmmanuel Vadot description: Phandle to the device SRAM 64c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadotrequired: 67c66ec88fSEmmanuel Vadot - compatible 68c66ec88fSEmmanuel Vadot - reg 69c66ec88fSEmmanuel Vadot - interrupts 70c66ec88fSEmmanuel Vadot - interrupt-names 71c66ec88fSEmmanuel Vadot - clocks 72c66ec88fSEmmanuel Vadot - phys 73c66ec88fSEmmanuel Vadot - phy-names 74c66ec88fSEmmanuel Vadot - dr_mode 75c66ec88fSEmmanuel Vadot - extcon 76c66ec88fSEmmanuel Vadot 77c66ec88fSEmmanuel Vadotif: 78c66ec88fSEmmanuel Vadot properties: 79c66ec88fSEmmanuel Vadot compatible: 80c66ec88fSEmmanuel Vadot contains: 81c66ec88fSEmmanuel Vadot enum: 82c66ec88fSEmmanuel Vadot - allwinner,sun6i-a31-musb 83c66ec88fSEmmanuel Vadot - allwinner,sun8i-a33-musb 84c66ec88fSEmmanuel Vadot - allwinner,sun8i-h3-musb 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadotthen: 87c66ec88fSEmmanuel Vadot required: 88c66ec88fSEmmanuel Vadot - resets 89c66ec88fSEmmanuel Vadot 90c66ec88fSEmmanuel VadotadditionalProperties: false 91c66ec88fSEmmanuel Vadot 92c66ec88fSEmmanuel Vadotexamples: 93c66ec88fSEmmanuel Vadot - | 94c66ec88fSEmmanuel Vadot usb_otg: usb@1c13000 { 95c66ec88fSEmmanuel Vadot compatible = "allwinner,sun4i-a10-musb"; 96c66ec88fSEmmanuel Vadot reg = <0x01c13000 0x0400>; 97c66ec88fSEmmanuel Vadot clocks = <&ahb_gates 0>; 98c66ec88fSEmmanuel Vadot interrupts = <38>; 99c66ec88fSEmmanuel Vadot interrupt-names = "mc"; 100c66ec88fSEmmanuel Vadot phys = <&usbphy 0>; 101c66ec88fSEmmanuel Vadot phy-names = "usb"; 102c66ec88fSEmmanuel Vadot extcon = <&usbphy 0>; 103c66ec88fSEmmanuel Vadot dr_mode = "peripheral"; 104c66ec88fSEmmanuel Vadot }; 105c66ec88fSEmmanuel Vadot 106c66ec88fSEmmanuel Vadot... 107