sunxi: initial 3.13 support
[openwrt.git] / target / linux / sunxi / patches-3.13 / 174-4-dt-sun7i-add-ehci-olinuxino-a20-micro.patch
1 From 5031cb9d88fe9ea4a37fe342ec5f8e2f0f930e00 Mon Sep 17 00:00:00 2001
2 From: Zalan Blenessy <zalan.blenessy@gmail.com>
3 Date: Sun, 22 Dec 2013 17:08:10 +0100
4 Subject: [PATCH] ARM: dts: sun7i: Add ehci nodes to Olinuxino A20 Micro dts
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8  arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 47 +++++++++++++++++++++++++
9  1 file changed, 47 insertions(+)
10
11 diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
12 index 20b1000..5f13ed64 100644
13 --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
14 +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
15 @@ -70,6 +70,20 @@
16                                 allwinner,drive = <1>;
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 @@ -115,6 +129,16 @@
37                         phy-mode = "mii";
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 @@ -131,6 +155,7 @@
54  
55         regulators {
56                 compatible = "simple-bus";
57 +               pinctrl-names = "default";
58  
59                 reg_ahci_5v: ahci-5v {
60                         compatible = "regulator-fixed";
61 @@ -141,5 +166,27 @@
62                         gpio = <&pio 1 8 0>;
63                         enable-active-high;
64                 };
65 +
66 +               reg_usb1_vbus: usb1-vbus {
67 +                       compatible = "regulator-fixed";
68 +                       pinctrl-names = "default";
69 +                       pinctrl-0 = <&usb1_vbus_pin>;
70 +                       regulator-name = "usb1-vbus";
71 +                       regulator-min-microvolt = <5000000>;
72 +                       regulator-max-microvolt = <5000000>;
73 +                       enable-active-high;
74 +                       gpio = <&pio 7 6 0>;
75 +               };
76 +
77 +               reg_usb2_vbus: usb2-vbus {
78 +                       compatible = "regulator-fixed";
79 +                       pinctrl-names = "default";
80 +                       pinctrl-0 = <&usb2_vbus_pin>;
81 +                       regulator-name = "usb2-vbus";
82 +                       regulator-min-microvolt = <5000000>;
83 +                       regulator-max-microvolt = <5000000>;
84 +                       enable-active-high;
85 +                       gpio = <&pio 7 3 0>;
86 +               };
87         };
88  };
89 -- 
90 1.8.5.1
91