sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 184-2-dt-sun7i-add-usb-bindings.patch
1 From bc68c927139d1cac9647c8bcd3e8cea1cac9eaef Mon Sep 17 00:00:00 2001
2 From: Roman Byshko <rbyshko@gmail.com>
3 Date: Thu, 19 Sep 2013 21:36:10 +0200
4 Subject: [PATCH] ARM: sun7i: 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/sun7i-a20.dtsi | 52 ++++++++++++++++++++++++++++++++++++++++
12  1 file changed, 52 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
15 index ed9b8cc..bdfa594 100644
16 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
17 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
18 @@ -453,6 +453,38 @@
19                         status = "disabled";
20                 };
21  
22 +               usbphy: phy@01c13400 {
23 +                       #phy-cells = <1>;
24 +                       compatible = "allwinner,sun7i-a20-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,sun7i-a20-ehci", "generic-ehci";
36 +                       reg = <0x01c14000 0x100>;
37 +                       interrupts = <0 39 4>;
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,sun7i-a20-ohci", "generic-ohci";
46 +                       reg = <0x01c14400 0x100>;
47 +                       interrupts = <0 64 4>;
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 @@ -461,6 +493,26 @@
58                         status = "disabled";
59                 };
60  
61 +               ehci1: usb@01c1c000 {
62 +                       compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
63 +                       reg = <0x01c1c000 0x100>;
64 +                       interrupts = <0 40 4>;
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,sun7i-a20-ohci", "generic-ohci";
73 +                       reg = <0x01c1c400 0x100>;
74 +                       interrupts = <0 65 4>;
75 +                       clocks = <&usb_clk 7>, <&ahb_gates 4>;
76 +                       phys = <&usbphy 2>;
77 +                       phy-names = "usb";
78 +                       status = "disabled";
79 +               };
80 +
81                 pio: pinctrl@01c20800 {
82                         compatible = "allwinner,sun7i-a20-pinctrl";
83                         reg = <0x01c20800 0x400>;
84 -- 
85 1.8.5.5
86