sunxi: driver refresh for 3.13
[openwrt/svn-archive/archive.git] / target / linux / sunxi / patches-3.13 / 183-2-dt-sun4i-add-usb-bindings.patch
1 From f1a981bd49f310775780c221fe92f6861c5e8f3f Mon Sep 17 00:00:00 2001
2 From: Roman Byshko <rbyshko@gmail.com>
3 Date: Wed, 18 Sep 2013 00:30:04 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add USB host bindings
5
6 Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
7
8 Signed-off-by: Roman Byshko <rbyshko@gmail.com>
9 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
10 ---
11 arch/arm/boot/dts/sun4i-a10.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++
12 1 file changed, 52 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
15 index 7550c4e..80bbdeb 100644
16 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
17 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
18 @@ -391,6 +391,38 @@
19 status = "disabled";
20 };
21
22 + usbphy: phy@01c13400 {
23 + #phy-cells = <1>;
24 + compatible = "allwinner,sun4i-a10-usb-phy";
25 + reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
26 + reg-names = "phy_ctrl", "pmu1", "pmu2";
27 + clocks = <&usb_clk 8>;
28 + clock-names = "usb_phy";
29 + resets = <&usb_clk 1>, <&usb_clk 2>;
30 + reset-names = "usb1_reset", "usb2_reset";
31 + status = "disabled";
32 + };
33 +
34 + ehci0: usb@01c14000 {
35 + compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
36 + reg = <0x01c14000 0x100>;
37 + interrupts = <39>;
38 + clocks = <&ahb_gates 1>;
39 + phys = <&usbphy 1>;
40 + phy-names = "usb";
41 + status = "disabled";
42 + };
43 +
44 + ohci0: usb@01c14400 {
45 + compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
46 + reg = <0x01c14400 0x100>;
47 + interrupts = <64>;
48 + clocks = <&usb_clk 6>, <&ahb_gates 2>;
49 + phys = <&usbphy 1>;
50 + phy-names = "usb";
51 + status = "disabled";
52 + };
53 +
54 ahci: sata@01c18000 {
55 compatible = "allwinner,sun4i-a10-ahci";
56 reg = <0x01c18000 0x1000>;
57 @@ -399,6 +431,26 @@
58 status = "disabled";
59 };
60
61 + ehci1: usb@01c1c000 {
62 + compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
63 + reg = <0x01c1c000 0x100>;
64 + interrupts = <40>;
65 + clocks = <&ahb_gates 3>;
66 + phys = <&usbphy 2>;
67 + phy-names = "usb";
68 + status = "disabled";
69 + };
70 +
71 + ohci1: usb@01c1c400 {
72 + compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
73 + reg = <0x01c1c400 0x100>;
74 + interrupts = <65>;
75 + clocks = <&usb_clk 7>, <&ahb_gates 4>;
76 + phys = <&usbphy 2>;
77 + phy-names = "usb";
78 + status = "disabled";
79 + };
80 +
81 intc: interrupt-controller@01c20400 {
82 compatible = "allwinner,sun4i-ic";
83 reg = <0x01c20400 0x400>;
84 --
85 1.8.5.5
86