upgrade 3.13 targets to 3.13.2, refresh patches
[openwrt/staging/dedeckeh.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 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
15 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
16 @@ -18,6 +18,8 @@
17
18 aliases {
19 ethernet0 = &gmac;
20 + ehci1 = &ehci0;
21 + ehci2 = &ehci1;
22 };
23
24 cpus {
25 @@ -623,5 +625,33 @@
26 #interrupt-cells = <3>;
27 interrupts = <1 9 0xf04>;
28 };
29 +
30 + usb_rst: reset@0x01c200cc {
31 + #reset-cells = <1>;
32 + compatible = "allwinner,sun4i-clock-reset";
33 + reg = <0x01c200cc 0x4>;
34 + };
35 +
36 + ehci0: ehci0@0x01c14000 {
37 + compatible = "allwinner,sunxi-ehci";
38 + reg = <0x01c14000 0x400 0x01c14800 0x4 0x01c13404 0x4>;
39 + interrupts = <0 39 1>;
40 + resets = <&usb_rst 1>;
41 + reset-names = "ehci_reset";
42 + clocks = <&usb 8>, <&ahb_gates 1>;
43 + clock-names = "usb_phy", "ahb_ehci";
44 + status = "disabled";
45 + };
46 +
47 + ehci1: ehci1@0x01c1c000 {
48 + compatible = "allwinner,sunxi-ehci";
49 + reg = <0x01c1c000 0x400 0x01c1c800 0x4 0x01c13404 0x4>;
50 + interrupts = <0 40 1>;
51 + resets = <&usb_rst 2>;
52 + reset-names = "ehci_reset";
53 + clocks = <&usb 8>, <&ahb_gates 3>;
54 + clock-names = "usb_phy", "ahb_ehci";
55 + status = "disabled";
56 + };
57 };
58 };