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