sunxi: initial 3.13 support
[openwrt/openwrt.git] / target / linux / sunxi / patches-3.13 / 174-5-dt-sun7i-add-ehci-cubietruck.patch
1 From 90cab9a5e7c43bfbda25dd114a838f4e4b50b6ff Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Tue, 17 Dec 2013 23:04:57 +0100
4 Subject: [PATCH] ARM: dts: sun7i: Add ehci nodes to cubietruck dts
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8 arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 46 ++++++++++++++++++++++++++++++
9 1 file changed, 46 insertions(+)
10
11 diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
12 index a5f3418..c8b3ea9 100644
13 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
14 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
15 @@ -28,11 +28,21 @@
16 status = "okay";
17 };
18
19 + ehci0: ehci0@0x01c14000 {
20 + vbus-supply = <&reg_usb1_vbus>;
21 + status = "okay";
22 + };
23 +
24 sata: ahci@01c18000 {
25 pwr-supply = <&reg_ahci_5v>;
26 status = "okay";
27 };
28
29 + ehci1: ehci1@0x01c1c000 {
30 + vbus-supply = <&reg_usb2_vbus>;
31 + status = "okay";
32 + };
33 +
34 pinctrl@01c20800 {
35 mmc0_cd_pin_cubietruck: mmc0_cd_pin@0 {
36 allwinner,pins = "PH1";
37 @@ -54,6 +64,20 @@
38 allwinner,drive = <0>;
39 allwinner,pull = <0>;
40 };
41 +
42 + usb1_vbus_pin: usb1_vbus_pin@0 {
43 + allwinner,pins = "PH6";
44 + allwinner,function = "gpio_out";
45 + allwinner,drive = <0>;
46 + allwinner,pull = <2>;
47 + };
48 +
49 + usb2_vbus_pin: usb2_vbus_pin@0 {
50 + allwinner,pins = "PH3";
51 + allwinner,function = "gpio_out";
52 + allwinner,drive = <0>;
53 + allwinner,pull = <2>;
54 + };
55 };
56
57 uart0: serial@01c28000 {
58 @@ -110,5 +134,27 @@
59 gpio = <&pio 7 12 0>;
60 enable-active-high;
61 };
62 +
63 + reg_usb1_vbus: usb1-vbus {
64 + compatible = "regulator-fixed";
65 + pinctrl-names = "default";
66 + pinctrl-0 = <&usb1_vbus_pin>;
67 + regulator-name = "usb1-vbus";
68 + regulator-min-microvolt = <5000000>;
69 + regulator-max-microvolt = <5000000>;
70 + enable-active-high;
71 + gpio = <&pio 7 6 0>;
72 + };
73 +
74 + reg_usb2_vbus: usb2-vbus {
75 + compatible = "regulator-fixed";
76 + pinctrl-names = "default";
77 + pinctrl-0 = <&usb2_vbus_pin>;
78 + regulator-name = "usb2-vbus";
79 + regulator-min-microvolt = <5000000>;
80 + regulator-max-microvolt = <5000000>;
81 + enable-active-high;
82 + gpio = <&pio 7 3 0>;
83 + };
84 };
85 };
86 --
87 1.8.5.1
88