sunxi: driver refresh for 3.13
[openwrt/svn-archive/archive.git] / target / linux / sunxi / patches-3.13 / 185-2-dt-sun5i-add-usb-bindings.patch
1 From 22f661c548042565ffa32e468267f94cadafe144 Mon Sep 17 00:00:00 2001
2 From: Roman Byshko <rbyshko@gmail.com>
3 Date: Tue, 24 Sep 2013 20:03:40 +0200
4 Subject: [PATCH] ARM: sun5i: 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/sun5i-a10s.dtsi | 32 ++++++++++++++++++++++++++++++++
12 arch/arm/boot/dts/sun5i-a13.dtsi | 32 ++++++++++++++++++++++++++++++++
13 2 files changed, 64 insertions(+)
14
15 diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi
16 index 0565040..a5431ed 100644
17 --- a/arch/arm/boot/dts/sun5i-a10s.dtsi
18 +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi
19 @@ -341,6 +341,38 @@
20 status = "disabled";
21 };
22
23 + usbphy: phy@01c13400 {
24 + #phy-cells = <1>;
25 + compatible = "allwinner,sun5i-a13-usb-phy";
26 + reg = <0x01c13400 0x10 0x01c14800 0x4>;
27 + reg-names = "phy_ctrl", "pmu1";
28 + clocks = <&usb_clk 8>;
29 + clock-names = "usb_phy";
30 + resets = <&usb_clk 1>;
31 + reset-names = "usb1_reset";
32 + status = "disabled";
33 + };
34 +
35 + ehci0: usb@01c14000 {
36 + compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
37 + reg = <0x01c14000 0x100>;
38 + interrupts = <39>;
39 + clocks = <&ahb_gates 1>;
40 + phys = <&usbphy 1>;
41 + phy-names = "usb";
42 + status = "disabled";
43 + };
44 +
45 + ohci0: usb@01c14400 {
46 + compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
47 + reg = <0x01c14400 0x100>;
48 + interrupts = <40>;
49 + clocks = <&usb_clk 6>, <&ahb_gates 2>;
50 + phys = <&usbphy 1>;
51 + phy-names = "usb";
52 + status = "disabled";
53 + };
54 +
55 intc: interrupt-controller@01c20400 {
56 compatible = "allwinner,sun4i-ic";
57 reg = <0x01c20400 0x400>;
58 diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
59 index 785dea5..7fe9cdc 100644
60 --- a/arch/arm/boot/dts/sun5i-a13.dtsi
61 +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
62 @@ -312,6 +312,38 @@
63 status = "disabled";
64 };
65
66 + usbphy: phy@01c13400 {
67 + #phy-cells = <1>;
68 + compatible = "allwinner,sun5i-a13-usb-phy";
69 + reg = <0x01c13400 0x10 0x01c14800 0x4>;
70 + reg-names = "phy_ctrl", "pmu1";
71 + clocks = <&usb_clk 8>;
72 + clock-names = "usb_phy";
73 + resets = <&usb_clk 1>;
74 + reset-names = "usb1_reset";
75 + status = "disabled";
76 + };
77 +
78 + ehci0: usb@01c14000 {
79 + compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
80 + reg = <0x01c14000 0x100>;
81 + interrupts = <39>;
82 + clocks = <&ahb_gates 1>;
83 + phys = <&usbphy 1>;
84 + phy-names = "usb";
85 + status = "disabled";
86 + };
87 +
88 + ohci0: usb@01c14400 {
89 + compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
90 + reg = <0x01c14400 0x100>;
91 + interrupts = <40>;
92 + clocks = <&usb_clk 6>, <&ahb_gates 2>;
93 + phys = <&usbphy 1>;
94 + phy-names = "usb";
95 + status = "disabled";
96 + };
97 +
98 intc: interrupt-controller@01c20400 {
99 compatible = "allwinner,sun4i-ic";
100 reg = <0x01c20400 0x400>;
101 --
102 1.8.5.5
103