sunxi: rework target - update kernel to 3.12 - add patches for clocks, i2c, usb,...
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.12 / 161-sun5i-add-dt-ehci-for-a13-olinuxino.patch
1 From 0944583d288e594d10ed0015b3d45839c70f8931 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 ---
7 arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 27 +++++++++++++++++++++++++++
8 1 file changed, 27 insertions(+)
9
10 diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
11 index 9e508dc..e30b89f 100644
12 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
13 +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
14 @@ -30,6 +30,13 @@
15 allwinner,drive = <1>;
16 allwinner,pull = <0>;
17 };
18 +
19 + usb1_vbus_pin: usb1_vbus_pin@0 {
20 + allwinner,pins = "PG11";
21 + allwinner,function = "gpio_out";
22 + allwinner,drive = <0>;
23 + allwinner,pull = <2>;
24 + };
25 };
26
27 uart1: serial@01c28400 {
28 @@ -55,6 +62,11 @@
29 pinctrl-0 = <&i2c2_pins_a>;
30 status = "okay";
31 };
32 +
33 + ehci0: ehci0@0x01c14000 {
34 + vbus-supply = <&reg_usb1_vbus>;
35 + status = "okay";
36 + };
37 };
38
39 leds {
40 @@ -67,4 +79,19 @@
41 default-state = "on";
42 };
43 };
44 +
45 + regulators {
46 + compatible = "simple-bus";
47 +
48 + reg_usb1_vbus: usb1-vbus {
49 + compatible = "regulator-fixed";
50 + pinctrl-names = "default";
51 + pinctrl-0 = <&usb1_vbus_pin>;
52 + regulator-name = "usb1-vbus";
53 + regulator-min-microvolt = <3300000>;
54 + regulator-max-microvolt = <3300000>;
55 + enable-active-high;
56 + gpio = <&pio 6 11 0>;
57 + };
58 + };
59 };
60 --
61 1.8.4
62