kernel: update 3.14 to 3.14.18
[openwrt.git] / target / linux / sunxi / patches-3.14 / 160-dt-sun4i-add-usb-host-bindings.patch
1 From 991b5f6d2af837b56adfcb3b3a1fe167647b9fdb 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 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
15 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
16 @@ -377,6 +377,38 @@
17                         #size-cells = <0>;
18                 };
19  
20 +               usbphy: phy@01c13400 {
21 +                       #phy-cells = <1>;
22 +                       compatible = "allwinner,sun4i-a10-usb-phy";
23 +                       reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
24 +                       reg-names = "phy_ctrl", "pmu1", "pmu2";
25 +                       clocks = <&usb_clk 8>;
26 +                       clock-names = "usb_phy";
27 +                       resets = <&usb_clk 1>, <&usb_clk 2>;
28 +                       reset-names = "usb1_reset", "usb2_reset";
29 +                       status = "disabled";
30 +               };
31 +
32 +               ehci0: usb@01c14000 {
33 +                       compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
34 +                       reg = <0x01c14000 0x100>;
35 +                       interrupts = <39>;
36 +                       clocks = <&ahb_gates 1>;
37 +                       phys = <&usbphy 1>;
38 +                       phy-names = "usb";
39 +                       status = "disabled";
40 +               };
41 +
42 +               ohci0: usb@01c14400 {
43 +                       compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
44 +                       reg = <0x01c14400 0x100>;
45 +                       interrupts = <64>;
46 +                       clocks = <&usb_clk 6>, <&ahb_gates 2>;
47 +                       phys = <&usbphy 1>;
48 +                       phy-names = "usb";
49 +                       status = "disabled";
50 +               };
51 +
52                 spi2: spi@01c17000 {
53                         compatible = "allwinner,sun4i-a10-spi";
54                         reg = <0x01c17000 0x1000>;
55 @@ -396,6 +428,26 @@
56                         status = "disabled";
57                 };
58  
59 +               ehci1: usb@01c1c000 {
60 +                       compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
61 +                       reg = <0x01c1c000 0x100>;
62 +                       interrupts = <40>;
63 +                       clocks = <&ahb_gates 3>;
64 +                       phys = <&usbphy 2>;
65 +                       phy-names = "usb";
66 +                       status = "disabled";
67 +               };
68 +
69 +               ohci1: usb@01c1c400 {
70 +                       compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
71 +                       reg = <0x01c1c400 0x100>;
72 +                       interrupts = <65>;
73 +                       clocks = <&usb_clk 7>, <&ahb_gates 4>;
74 +                       phys = <&usbphy 2>;
75 +                       phy-names = "usb";
76 +                       status = "disabled";
77 +               };
78 +
79                 spi3: spi@01c1f000 {
80                         compatible = "allwinner,sun4i-a10-spi";
81                         reg = <0x01c1f000 0x1000>;