upgrade 3.13 targets to 3.13.2, refresh patches
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 173-2-dt-sun4i-add-ehci-bindings.patch
1 From ec53e86224acaa3891148fa298bb1504f3579d6b Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Wed, 18 Sep 2013 00:30:04 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add USB EHCI bindings
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7
8 Conflicts:
9 arch/arm/boot/dts/sun4i-a10.dtsi
10 ---
11 arch/arm/boot/dts/sun4i-a10.dtsi | 30 ++++++++++++++++++++++++++++++
12 1 file changed, 30 insertions(+)
13
14 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
15 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
16 @@ -17,6 +17,8 @@
17
18 aliases {
19 ethernet0 = &emac;
20 + ehci1 = &ehci0;
21 + ehci2 = &ehci1;
22 };
23
24 cpus {
25 @@ -563,5 +565,33 @@
26 clock-frequency = <100000>;
27 status = "disabled";
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 = <39>;
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 = <40>;
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 };