sunxi: initial 3.13 support
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 174-2-dt-sun7i-add-ehci-bindings.patch
1 From a82eb088ea3fa4c25b256400690a30f4b0392e91 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 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7
8 Conflicts:
9 arch/arm/boot/dts/sun7i-a20.dtsi
10 ---
11 arch/arm/boot/dts/sun7i-a20.dtsi | 30 ++++++++++++++++++++++++++++++
12 1 file changed, 30 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
15 index 4eddc79..956b5cd 100644
16 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
17 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
18 @@ -18,6 +18,8 @@
19
20 aliases {
21 ethernet0 = &gmac;
22 + ehci1 = &ehci0;
23 + ehci2 = &ehci1;
24 };
25
26 cpus {
27 @@ -652,5 +654,33 @@
28 #interrupt-cells = <3>;
29 interrupts = <1 9 0xf04>;
30 };
31 +
32 + usb_rst: reset@0x01c200cc {
33 + #reset-cells = <1>;
34 + compatible = "allwinner,sun4i-clock-reset";
35 + reg = <0x01c200cc 0x4>;
36 + };
37 +
38 + ehci0: ehci0@0x01c14000 {
39 + compatible = "allwinner,sunxi-ehci";
40 + reg = <0x01c14000 0x400 0x01c14800 0x4 0x01c13404 0x4>;
41 + interrupts = <0 39 1>;
42 + resets = <&usb_rst 1>;
43 + reset-names = "ehci_reset";
44 + clocks = <&usb 8>, <&ahb_gates 1>;
45 + clock-names = "usb_phy", "ahb_ehci";
46 + status = "disabled";
47 + };
48 +
49 + ehci1: ehci1@0x01c1c000 {
50 + compatible = "allwinner,sunxi-ehci";
51 + reg = <0x01c1c000 0x400 0x01c1c800 0x4 0x01c13404 0x4>;
52 + interrupts = <0 40 1>;
53 + resets = <&usb_rst 2>;
54 + reset-names = "ehci_reset";
55 + clocks = <&usb 8>, <&ahb_gates 3>;
56 + clock-names = "usb_phy", "ahb_ehci";
57 + status = "disabled";
58 + };
59 };
60 };
61 --
62 1.8.5.1
63