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