a8d0f171d99f35fe86bd3564fb4f54a086c6c843
[openwrt/staging/yousong.git] / target / linux / sunxi / patches-3.14 / 162-dt-sun7i-add-usb-host-bindings.patch
1 From 008dffff2fa751c988671c4fc0c9a404ea808280 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 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
15 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
16 @@ -439,6 +439,38 @@
17 #size-cells = <0>;
18 };
19
20 + usbphy: phy@01c13400 {
21 + #phy-cells = <1>;
22 + compatible = "allwinner,sun7i-a20-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,sun7i-a20-ehci", "generic-ehci";
34 + reg = <0x01c14000 0x100>;
35 + interrupts = <0 39 4>;
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,sun7i-a20-ohci", "generic-ohci";
44 + reg = <0x01c14400 0x100>;
45 + interrupts = <0 64 4>;
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 @@ -458,6 +490,26 @@
56 status = "disabled";
57 };
58
59 + ehci1: usb@01c1c000 {
60 + compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
61 + reg = <0x01c1c000 0x100>;
62 + interrupts = <0 40 4>;
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,sun7i-a20-ohci", "generic-ohci";
71 + reg = <0x01c1c400 0x100>;
72 + interrupts = <0 65 4>;
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>;