summaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-3.13/174-2-dt-sun7i-add-ehci-bindings.patch
blob: 4b2f9c2229e37e4476432a2668508745172c30af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From a82eb088ea3fa4c25b256400690a30f4b0392e91 Mon Sep 17 00:00:00 2001
From: arokux <arokux@gmail.com>
Date: Thu, 19 Sep 2013 21:36:10 +0200
Subject: [PATCH] ARM: sun7i: dt: Add USB EHCI bindings

Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Conflicts:
	arch/arm/boot/dts/sun7i-a20.dtsi
---
 arch/arm/boot/dts/sun7i-a20.dtsi | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -18,6 +18,8 @@
 
 	aliases {
 		ethernet0 = &gmac;
+		ehci1 = &ehci0;
+		ehci2 = &ehci1;
 	};
 
 	cpus {
@@ -623,5 +625,33 @@
 			#interrupt-cells = <3>;
 			interrupts = <1 9 0xf04>;
 		};
+
+		usb_rst: reset@0x01c200cc {
+		        #reset-cells = <1>;
+		        compatible = "allwinner,sun4i-clock-reset";
+		        reg = <0x01c200cc 0x4>;
+		};
+
+		ehci0: ehci0@0x01c14000 {
+			compatible = "allwinner,sunxi-ehci";
+			reg = <0x01c14000 0x400 0x01c14800 0x4 0x01c13404 0x4>;
+			interrupts = <0 39 1>;
+			resets = <&usb_rst 1>;
+			reset-names = "ehci_reset";
+			clocks = <&usb 8>, <&ahb_gates 1>;
+			clock-names = "usb_phy", "ahb_ehci";
+			status = "disabled";
+		};
+
+		ehci1: ehci1@0x01c1c000 {
+			compatible = "allwinner,sunxi-ehci";
+			reg = <0x01c1c000 0x400 0x01c1c800 0x4 0x01c13404 0x4>;
+			interrupts = <0 40 1>;
+			resets = <&usb_rst 2>;
+			reset-names = "ehci_reset";
+			clocks = <&usb 8>, <&ahb_gates 3>;
+			clock-names = "usb_phy", "ahb_ehci";
+			status = "disabled";
+		};
 	};
 };