f95833e29370eebb36e4788156f833be4807c01e
[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 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
12 +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
13 @@ -43,11 +43,21 @@
14                         status = "okay";
15                 };
16  
17 +               ehci0: ehci0@0x01c14000 {
18 +                       vbus-supply = <&reg_usb1_vbus>;
19 +                       status = "okay";
20 +               };
21 +
22                 sata: ahci@01c18000 {
23                         pwr-supply = <&reg_ahci_5v>;
24                         status = "okay";
25                 };
26  
27 +               ehci1: ehci1@0x01c1c000 {
28 +                       vbus-supply = <&reg_usb2_vbus>;
29 +                       status = "okay";
30 +               };
31 +
32                 pinctrl@01c20800 {
33                         mmc0_cd_pin_cubietruck: mmc0_cd_pin@0 {
34                                 allwinner,pins = "PH1";
35 @@ -90,6 +100,20 @@
36                                         allwinner,drive = <0>;
37                                         allwinner,pull = <2>;
38                         };
39 +
40 +                       usb1_vbus_pin: usb1_vbus_pin@0 {
41 +                                       allwinner,pins = "PH6";
42 +                                       allwinner,function = "gpio_out";
43 +                                       allwinner,drive = <0>;
44 +                                       allwinner,pull = <2>;
45 +                       };
46 +
47 +                       usb2_vbus_pin: usb2_vbus_pin@0 {
48 +                                       allwinner,pins = "PH3";
49 +                                       allwinner,function = "gpio_out";
50 +                                       allwinner,drive = <0>;
51 +                                       allwinner,pull = <2>;
52 +                       };
53                 };
54  
55                 uart0: serial@01c28000 {
56 @@ -175,5 +199,27 @@
57                         gpio = <&pio 7 12 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 = <5000000>;
67 +                       regulator-max-microvolt = <5000000>;
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 = <5000000>;
78 +                       regulator-max-microvolt = <5000000>;
79 +                       enable-active-high;
80 +                       gpio = <&pio 7 3 0>;
81 +               };
82         };
83  };