sunxi: rework target - update kernel to 3.12 - add patches for clocks, i2c, usb,...
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.12 / 155-add-ehci-for-cubieboard-a10.patch
1 From bf96cf461ca2d36e962a4acf83f6f779a05c7df3 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Wed, 18 Sep 2013 22:45:06 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add EHCI bindings to Cubieboard-A10
5
6 ---
7 arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 50 ++++++++++++++++++++++++++++++
8 1 file changed, 50 insertions(+)
9
10 diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
11 index 425a7db..eb6c3c1 100644
12 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
13 +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
14 @@ -49,6 +49,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 @@ -68,6 +82,16 @@
36 pinctrl-0 = <&i2c1_pins_a>;
37 status = "okay";
38 };
39 +
40 + ehci0: ehci0@0x01c14000 {
41 + vbus-supply = <&reg_usb1_vbus>;
42 + status = "okay";
43 + };
44 +
45 + ehci1: ehci1@0x01c1c000 {
46 + vbus-supply = <&reg_usb2_vbus>;
47 + status = "okay";
48 + };
49 };
50
51 leds {
52 @@ -86,4 +110,30 @@
53 linux,default-trigger = "heartbeat";
54 };
55 };
56 +
57 + regulators {
58 + compatible = "simple-bus";
59 +
60 + reg_usb1_vbus: usb1-vbus {
61 + compatible = "regulator-fixed";
62 + pinctrl-names = "default";
63 + pinctrl-0 = <&usb1_vbus_pin>;
64 + regulator-name = "usb1-vbus";
65 + regulator-min-microvolt = <3300000>;
66 + regulator-max-microvolt = <3300000>;
67 + enable-active-high;
68 + gpio = <&pio 7 6 0>;
69 + };
70 +
71 + reg_usb2_vbus: usb2-vbus {
72 + compatible = "regulator-fixed";
73 + pinctrl-names = "default";
74 + pinctrl-0 = <&usb2_vbus_pin>;
75 + regulator-name = "usb2-vbus";
76 + regulator-min-microvolt = <3300000>;
77 + regulator-max-microvolt = <3300000>;
78 + enable-active-high;
79 + gpio = <&pio 7 3 0>;
80 + };
81 + };
82 };
83 --
84 1.8.4
85