OSDN Git Service

usb: gadget: at91_udc: Update DT binding documentation
[uclinux-h8/linux.git] / Documentation / devicetree / bindings / usb / atmel-usb.txt
1 Atmel SOC USB controllers
2
3 OHCI
4
5 Required properties:
6  - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers
7    used in host mode.
8  - num-ports: Number of ports.
9  - atmel,vbus-gpio: If present, specifies a gpio that needs to be
10    activated for the bus to be powered.
11  - atmel,oc-gpio: If present, specifies a gpio that needs to be
12    activated for the overcurrent detection.
13
14 usb0: ohci@00500000 {
15         compatible = "atmel,at91rm9200-ohci", "usb-ohci";
16         reg = <0x00500000 0x100000>;
17         interrupts = <20 4>;
18         num-ports = <2>;
19 };
20
21 EHCI
22
23 Required properties:
24  - compatible: Should be "atmel,at91sam9g45-ehci" for USB controllers
25    used in host mode.
26
27 usb1: ehci@00800000 {
28         compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
29         reg = <0x00800000 0x100000>;
30         interrupts = <22 4>;
31 };
32
33 AT91 USB device controller
34
35 Required properties:
36  - compatible: Should be one of the following
37                "atmel,at91rm9200-udc"
38                "atmel,at91sam9260-udc"
39                "atmel,at91sam9261-udc"
40                "atmel,at91sam9263-udc"
41  - reg: Address and length of the register set for the device
42  - interrupts: Should contain macb interrupt
43  - clocks: Should reference the peripheral and the AHB clocks
44  - clock-names: Should contains two strings
45                 "pclk" for the peripheral clock
46                 "hclk" for the AHB clock
47
48 Optional properties:
49  - atmel,vbus-gpio: If present, specifies a gpio that needs to be
50    activated for the bus to be powered.
51
52 usb1: gadget@fffa4000 {
53         compatible = "atmel,at91rm9200-udc";
54         reg = <0xfffa4000 0x4000>;
55         interrupts = <10 4>;
56         atmel,vbus-gpio = <&pioC 5 0>;
57 };
58
59 Atmel High-Speed USB device controller
60
61 Required properties:
62  - compatible: Should be "atmel,at91sam9rl-udc"
63  - reg: Address and length of the register set for the device
64  - interrupts: Should contain usba interrupt
65  - ep childnode: To specify the number of endpoints and their properties.
66
67 Optional properties:
68  - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether
69    vbus is present (USB is connected).
70
71 Required child node properties:
72  - name: Name of the endpoint.
73  - reg: Num of the endpoint.
74  - atmel,fifo-size: Size of the fifo.
75  - atmel,nb-banks: Number of banks.
76  - atmel,can-dma: Boolean to specify if the endpoint support DMA.
77  - atmel,can-isoc: Boolean to specify if the endpoint support ISOC.
78
79 usb2: gadget@fff78000 {
80         #address-cells = <1>;
81         #size-cells = <0>;
82         compatible = "atmel,at91sam9rl-udc";
83         reg = <0x00600000 0x80000
84                0xfff78000 0x400>;
85         interrupts = <27 4 0>;
86         atmel,vbus-gpio = <&pioB 19 0>;
87
88         ep0 {
89                 reg = <0>;
90                 atmel,fifo-size = <64>;
91                 atmel,nb-banks = <1>;
92         };
93
94         ep1 {
95                 reg = <1>;
96                 atmel,fifo-size = <1024>;
97                 atmel,nb-banks = <2>;
98                 atmel,can-dma;
99                 atmel,can-isoc;
100         };
101
102         ep2 {
103                 reg = <2>;
104                 atmel,fifo-size = <1024>;
105                 atmel,nb-banks = <2>;
106                 atmel,can-dma;
107                 atmel,can-isoc;
108         };
109
110         ep3 {
111                 reg = <3>;
112                 atmel,fifo-size = <1024>;
113                 atmel,nb-banks = <3>;
114                 atmel,can-dma;
115         };
116
117         ep4 {
118                 reg = <4>;
119                 atmel,fifo-size = <1024>;
120                 atmel,nb-banks = <3>;
121                 atmel,can-dma;
122         };
123
124         ep5 {
125                 reg = <5>;
126                 atmel,fifo-size = <1024>;
127                 atmel,nb-banks = <3>;
128                 atmel,can-dma;
129                 atmel,can-isoc;
130         };
131
132         ep6 {
133                 reg = <6>;
134                 atmel,fifo-size = <1024>;
135                 atmel,nb-banks = <3>;
136                 atmel,can-dma;
137                 atmel,can-isoc;
138         };
139 };