sunxi: initial 3.13 support
[openwrt/svn-archive/archive.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 diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
15 index c9913c0..64eda82 100644
16 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
17 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
18 @@ -17,6 +17,8 @@
19
20 aliases {
21 ethernet0 = &emac;
22 + ehci1 = &ehci0;
23 + ehci2 = &ehci1;
24 };
25
26 cpus {
27 @@ -556,5 +558,33 @@
28 clock-frequency = <100000>;
29 status = "disabled";
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 = <39>;
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 = <40>;
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