kernel: add missing config symbols to 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 174-4-dt-sun7i-add-ehci-olinuxino-a20-micro.patch
1 From 5031cb9d88fe9ea4a37fe342ec5f8e2f0f930e00 Mon Sep 17 00:00:00 2001
2 From: Zalan Blenessy <zalan.blenessy@gmail.com>
3 Date: Sun, 22 Dec 2013 17:08:10 +0100
4 Subject: [PATCH] ARM: dts: sun7i: Add ehci nodes to Olinuxino A20 Micro dts
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8  arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 47 +++++++++++++++++++++++++
9  1 file changed, 47 insertions(+)
10
11 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
12 +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
13 @@ -85,6 +85,20 @@
14                                 allwinner,drive = <1>;
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 @@ -122,6 +136,16 @@
35                         pinctrl-0 = <&i2c2_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 @@ -138,6 +162,7 @@
52  
53         regulators {
54                 compatible = "simple-bus";
55 +               pinctrl-names = "default";
56  
57                 reg_ahci_5v: ahci-5v {
58                         compatible = "regulator-fixed";
59 @@ -148,5 +173,27 @@
60                         gpio = <&pio 1 8 0>;
61                         enable-active-high;
62                 };
63 +
64 +               reg_usb1_vbus: usb1-vbus {
65 +                       compatible = "regulator-fixed";
66 +                       pinctrl-names = "default";
67 +                       pinctrl-0 = <&usb1_vbus_pin>;
68 +                       regulator-name = "usb1-vbus";
69 +                       regulator-min-microvolt = <5000000>;
70 +                       regulator-max-microvolt = <5000000>;
71 +                       enable-active-high;
72 +                       gpio = <&pio 7 6 0>;
73 +               };
74 +
75 +               reg_usb2_vbus: usb2-vbus {
76 +                       compatible = "regulator-fixed";
77 +                       pinctrl-names = "default";
78 +                       pinctrl-0 = <&usb2_vbus_pin>;
79 +                       regulator-name = "usb2-vbus";
80 +                       regulator-min-microvolt = <5000000>;
81 +                       regulator-max-microvolt = <5000000>;
82 +                       enable-active-high;
83 +                       gpio = <&pio 7 3 0>;
84 +               };
85         };
86  };