sunxi: initial 3.13 support
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 173-3-dt-sun4i-add-ehci-cubieboard.patch
1 From 875bbd46c296e4b9ed130848bc64be5cf39669c8 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 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7
8 Conflicts:
9 arch/arm/boot/dts/sun4i-a10-cubieboard.dts
10 ---
11 arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 46 ++++++++++++++++++++++++++++++
12 1 file changed, 46 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
15 index 53ac453..48864a4 100644
16 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
17 +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
18 @@ -77,6 +77,20 @@
19 allwinner,drive = <1>;
20 allwinner,pull = <0>;
21 };
22 +
23 + usb1_vbus_pin: usb1_vbus_pin@0 {
24 + allwinner,pins = "PH6";
25 + allwinner,function = "gpio_out";
26 + allwinner,drive = <0>;
27 + allwinner,pull = <2>;
28 + };
29 +
30 + usb2_vbus_pin: usb2_vbus_pin@0 {
31 + allwinner,pins = "PH3";
32 + allwinner,function = "gpio_out";
33 + allwinner,drive = <0>;
34 + allwinner,pull = <2>;
35 + };
36 };
37
38 uart0: serial@01c28000 {
39 @@ -96,6 +110,16 @@
40 pinctrl-0 = <&i2c1_pins_a>;
41 status = "okay";
42 };
43 +
44 + ehci0: ehci0@0x01c14000 {
45 + vbus-supply = <&reg_usb1_vbus>;
46 + status = "okay";
47 + };
48 +
49 + ehci1: ehci1@0x01c1c000 {
50 + vbus-supply = <&reg_usb2_vbus>;
51 + status = "okay";
52 + };
53 };
54
55 leds {
56 @@ -128,5 +152,27 @@
57 gpio = <&pio 1 8 0>;
58 enable-active-high;
59 };
60 +
61 + reg_usb1_vbus: usb1-vbus {
62 + compatible = "regulator-fixed";
63 + pinctrl-names = "default";
64 + pinctrl-0 = <&usb1_vbus_pin>;
65 + regulator-name = "usb1-vbus";
66 + regulator-min-microvolt = <3300000>;
67 + regulator-max-microvolt = <3300000>;
68 + enable-active-high;
69 + gpio = <&pio 7 6 0>;
70 + };
71 +
72 + reg_usb2_vbus: usb2-vbus {
73 + compatible = "regulator-fixed";
74 + pinctrl-names = "default";
75 + pinctrl-0 = <&usb2_vbus_pin>;
76 + regulator-name = "usb2-vbus";
77 + regulator-min-microvolt = <3300000>;
78 + regulator-max-microvolt = <3300000>;
79 + enable-active-high;
80 + gpio = <&pio 7 3 0>;
81 + };
82 };
83 };
84 --
85 1.8.5.1
86