05a7981045acbf947734a7e7e0d9f8270bbb8ab6
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 175-3-dt-sun5i-add-ehci-a13.patch
1 From 586c4aa0aeb07dacccb25a419a7b6625521ddea8 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Tue, 24 Sep 2013 20:07:53 +0200
4 Subject: [PATCH] ARM: sun5i: dt: Add EHCI bindings to A13-Olinuxino
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8 arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 27 +++++++++++++++++++++++++++
9 1 file changed, 27 insertions(+)
10
11 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
12 +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
13 @@ -46,6 +46,13 @@
14 allwinner,drive = <1>;
15 allwinner,pull = <0>;
16 };
17 +
18 + usb1_vbus_pin: usb1_vbus_pin@0 {
19 + allwinner,pins = "PG11";
20 + allwinner,function = "gpio_out";
21 + allwinner,drive = <0>;
22 + allwinner,pull = <2>;
23 + };
24 };
25
26 uart1: serial@01c28400 {
27 @@ -71,6 +78,11 @@
28 pinctrl-0 = <&i2c2_pins_a>;
29 status = "okay";
30 };
31 +
32 + ehci0: ehci0@0x01c14000 {
33 + vbus-supply = <&reg_usb1_vbus>;
34 + status = "okay";
35 + };
36 };
37
38 leds {
39 @@ -83,4 +95,19 @@
40 default-state = "on";
41 };
42 };
43 +
44 + regulators {
45 + compatible = "simple-bus";
46 +
47 + reg_usb1_vbus: usb1-vbus {
48 + compatible = "regulator-fixed";
49 + pinctrl-names = "default";
50 + pinctrl-0 = <&usb1_vbus_pin>;
51 + regulator-name = "usb1-vbus";
52 + regulator-min-microvolt = <3300000>;
53 + regulator-max-microvolt = <3300000>;
54 + enable-active-high;
55 + gpio = <&pio 6 11 0>;
56 + };
57 + };
58 };