uboot-sunxi: bump u-boot version
[openwrt.git] / target / linux / sunxi / patches-3.12 / 162-1-dt-sun7i-add-ehci-for-a20-olinuxino.patch
1 From 630ccdf33652f8e35b8c84e939d5a86fad9612e2 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Thu, 19 Sep 2013 21:50:21 +0200
4 Subject: [PATCH] ARM: sun7i: dt: Add USB EHCI bindings for A20-Olinuxino
5
6 ---
7  arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 49 +++++++++++++++++++++++++
8  1 file changed, 49 insertions(+)
9
10 diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
11 index ead3013..e6b1e26 100644
12 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
13 +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
14 @@ -41,6 +41,20 @@
15                                 allwinner,drive = <1>;
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 @@ -76,6 +90,15 @@
36                 i2c2: i2c@01c2b400 {
37                         pinctrl-names = "default";
38                         pinctrl-0 = <&i2c2_pins_a>;
39 +               };
40 +
41 +               ehci0: ehci0@0x01c14000 {
42 +                       vbus-supply = <&reg_usb1_vbus>;
43 +                       status = "okay";
44 +               };
45 +
46 +               ehci1: ehci1@0x01c1c000 {
47 +                       vbus-supply = <&reg_usb2_vbus>;
48                         status = "okay";
49                 };
50         };
51 @@ -91,4 +114,30 @@
52                         default-state = "on";
53                 };
54         };
55 +
56 +       regulators {
57 +               compatible = "simple-bus";
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  };
82 -- 
83 1.8.4
84