db7905f9b0143062bb9b2bc09222980ee3e5f164
[openwrt.git] / target / linux / sunxi / patches-3.12 / 157-sun7i-add-dt-usb-ehci-bindings.patch
1 From b434c5aa38e2db0fff9fa39c6e47cc9d13afe8e1 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Thu, 19 Sep 2013 21:36:10 +0200
4 Subject: [PATCH] ARM: sun7i: dt: Add USB EHCI bindings
5
6 ---
7  arch/arm/boot/dts/sun7i-a20.dtsi | 33 +++++++++++++++++++++++++++++++++
8  1 file changed, 33 insertions(+)
9
10 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
11 index 4fe484c..b4e4a5a 100644
12 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
13 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
14 @@ -16,6 +16,11 @@
15  / {
16         interrupt-parent = <&gic>;
17  
18 +       aliases {
19 +               ehci1 = &ehci0;
20 +               ehci2 = &ehci1;
21 +       };
22 +
23         cpus {
24                 #address-cells = <1>;
25                 #size-cells = <0>;
26 @@ -434,5 +439,33 @@
27                         #interrupt-cells = <3>;
28                         interrupts = <1 9 0xf04>;
29                 };
30 +
31 +               usb_rst: reset@0x01c200cc {
32 +                       #reset-cells = <1>;
33 +                       compatible = "allwinner,sun4i-clock-reset";
34 +                       reg = <0x01c200cc 0x4>;
35 +               };
36 +
37 +               ehci0: ehci0@0x01c14000 {
38 +                       compatible = "allwinner,sunxi-ehci";
39 +                       reg = <0x01c14000 0x400 0x01c14800 0x4 0x01c13404 0x4>;
40 +                       interrupts = <0 39 1>;
41 +                       resets = <&usb_rst 1>;
42 +                       reset-names = "ehci_reset";
43 +                       clocks = <&usb 8>, <&ahb_gates 1>;
44 +                       clock-names = "usb_phy", "ahb_ehci";
45 +                       status = "disabled";
46 +               };
47 +
48 +               ehci1: ehci1@0x01c1c000 {
49 +                       compatible = "allwinner,sunxi-ehci";
50 +                       reg = <0x01c1c000 0x400 0x01c1c800 0x4 0x01c13404 0x4>;
51 +                       interrupts = <0 40 1>;
52 +                       resets = <&usb_rst 2>;
53 +                       reset-names = "ehci_reset";
54 +                       clocks = <&usb 8>, <&ahb_gates 3>;
55 +                       clock-names = "usb_phy", "ahb_ehci";
56 +                       status = "disabled";
57 +               };
58         };
59  };
60 -- 
61 1.8.4
62