f9a7125d2df0c47aa603add1274ee511f52dec72
[openwrt/staging/nbd.git] / target / linux / sunxi / patches-3.13 / 173-4-dt-sun4i-add-ehci-a1000.patch
1 From 9a86b6c16abc11b1090fbf4e102b4eed1d474d96 Mon Sep 17 00:00:00 2001
2 From: arokux <arokux@gmail.com>
3 Date: Wed, 18 Sep 2013 00:30:40 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add EHCI bindings to the Mele A1000
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8 arch/arm/boot/dts/sun4i-a10-a1000.dts | 46 +++++++++++++++++++++++++++++++++++
9 1 file changed, 46 insertions(+)
10
11 diff --git a/arch/arm/boot/dts/sun4i-a10-a1000.dts b/arch/arm/boot/dts/sun4i-a10-a1000.dts
12 index fd6d512..e3bfc59 100644
13 --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
14 +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
15 @@ -73,6 +73,20 @@
16 allwinner,drive = <0>;
17 allwinner,pull = <0>;
18 };
19 +
20 + usb1_vbus_pin: usb1_vbus_pin@0 {
21 + allwinner,pins = "PH6";
22 + allwinner,function = "gpio_out";
23 + allwinner,drive = <0>;
24 + allwinner,pull = <2>;
25 + };
26 +
27 + usb2_vbus_pin: usb2_vbus_pin@0 {
28 + allwinner,pins = "PH3";
29 + allwinner,function = "gpio_out";
30 + allwinner,drive = <0>;
31 + allwinner,pull = <2>;
32 + };
33 };
34
35 uart0: serial@01c28000 {
36 @@ -86,6 +100,16 @@
37 pinctrl-0 = <&i2c0_pins_a>;
38 status = "okay";
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
52 leds {
53 @@ -117,5 +141,27 @@
54 enable-active-high;
55 gpio = <&pio 7 15 0>;
56 };
57 +
58 + reg_usb1_vbus: usb1-vbus {
59 + compatible = "regulator-fixed";
60 + pinctrl-names = "default";
61 + pinctrl-0 = <&usb1_vbus_pin>;
62 + regulator-name = "usb1-vbus";
63 + regulator-min-microvolt = <3300000>;
64 + regulator-max-microvolt = <3300000>;
65 + enable-active-high;
66 + gpio = <&pio 7 6 0>;
67 + };
68 +
69 + reg_usb2_vbus: usb2-vbus {
70 + compatible = "regulator-fixed";
71 + pinctrl-names = "default";
72 + pinctrl-0 = <&usb2_vbus_pin>;
73 + regulator-name = "usb2-vbus";
74 + regulator-min-microvolt = <3300000>;
75 + regulator-max-microvolt = <3300000>;
76 + enable-active-high;
77 + gpio = <&pio 7 3 0>;
78 + };
79 };
80 };
81 --
82 1.8.5.1
83