sunxi: rework target - update kernel to 3.12 - add patches for clocks, i2c, usb,...
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.12 / 160-sun5i-dt-add-usb-ehci-bindings.patch
1 From d3f751a7afe959d53c2b9e71a25921aeb38e0837 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Tue, 24 Sep 2013 20:03:40 +0200
4 Subject: [PATCH] ARM: sun5i: dt: Add USB EHCI bindings
5
6 ---
7 arch/arm/boot/dts/sun5i-a13.dtsi | 21 +++++++++++++++++++++
8 1 file changed, 21 insertions(+)
9
10 diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
11 index aad270c..a271a2d 100644
12 --- a/arch/arm/boot/dts/sun5i-a13.dtsi
13 +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
14 @@ -16,6 +16,10 @@
15 / {
16 interrupt-parent = <&intc>;
17
18 + aliases {
19 + ehci1 = &ehci0;
20 + };
21 +
22 cpus {
23 #address-cells = <1>;
24 #size-cells = <0>;
25 @@ -310,5 +314,22 @@
26 interrupts = <82>, <83>;
27 clocks = <&ahb_gates 28>;
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 };
48 --
49 1.8.4
50