dee5b1b38e68fb797aa1ca6a49062ad28faf53b6
[openwrt.git] / target / linux / sunxi / patches-3.12 / 154-add-ehci-for-a1000.patch
1 From bc8138b4218307a8f25076ec5c8c1eae1e5e8d78 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Wed, 18 Sep 2013 00:30:40 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add EHCI bindings to the Mele A1000
5
6 ---
7  arch/arm/boot/dts/sun4i-a10-a1000.dts | 46 +++++++++++++++++++++++++++++++++++
8  1 file changed, 46 insertions(+)
9
10 diff --git a/arch/arm/boot/dts/sun4i-a10-a1000.dts b/arch/arm/boot/dts/sun4i-a10-a1000.dts
11 index eb4d73b..68c705d 100644
12 --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
13 +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
14 @@ -53,6 +53,20 @@
15                                 allwinner,drive = <0>;
16                                 allwinner,pull = <0>;
17                         };
18 +
19 +                       usb1_vbus_pin: usb1_vbus_pin@0 {
20 +                                       allwinner,pins = "PH6";
21 +                                       allwinner,function = "gpio_out";
22 +                                       allwinner,drive = <0>;
23 +                                       allwinner,pull = <2>;
24 +                       };
25 +
26 +                       usb2_vbus_pin: usb2_vbus_pin@0 {
27 +                                       allwinner,pins = "PH3";
28 +                                       allwinner,function = "gpio_out";
29 +                                       allwinner,drive = <0>;
30 +                                       allwinner,pull = <2>;
31 +                       };
32                 };
33  
34                 uart0: serial@01c28000 {
35 @@ -66,6 +80,16 @@
36                         pinctrl-0 = <&i2c0_pins_a>;
37                         status = "okay";
38                 };
39 +
40 +               ehci0: ehci0@0x01c14000 {
41 +                       vbus-supply = <&reg_usb1_vbus>;
42 +                       status = "okay";
43 +               };
44 +
45 +               ehci1: ehci1@0x01c1c000 {
46 +                       vbus-supply = <&reg_usb2_vbus>;
47 +                       status = "okay";
48 +               };
49         };
50  
51         leds {
52 @@ -97,5 +121,27 @@
53                         enable-active-high;
54                         gpio = <&pio 7 15 0>;
55                 };
56 +
57 +               reg_usb1_vbus: usb1-vbus {
58 +                       compatible = "regulator-fixed";
59 +                       pinctrl-names = "default";
60 +                       pinctrl-0 = <&usb1_vbus_pin>;
61 +                       regulator-name = "usb1-vbus";
62 +                       regulator-min-microvolt = <3300000>;
63 +                       regulator-max-microvolt = <3300000>;
64 +                       enable-active-high;
65 +                       gpio = <&pio 7 6 0>;
66 +               };
67 +
68 +               reg_usb2_vbus: usb2-vbus {
69 +                       compatible = "regulator-fixed";
70 +                       pinctrl-names = "default";
71 +                       pinctrl-0 = <&usb2_vbus_pin>;
72 +                       regulator-name = "usb2-vbus";
73 +                       regulator-min-microvolt = <3300000>;
74 +                       regulator-max-microvolt = <3300000>;
75 +                       enable-active-high;
76 +                       gpio = <&pio 7 3 0>;
77 +               };
78         };
79  };
80 -- 
81 1.8.4
82