sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 183-3-dt-sun4i-add-ehci-cubieboard.patch
1 From d2afb2629087ab17d87d605d4b7f49da3a85f1b1 Mon Sep 17 00:00:00 2001
2 From: Roman Byshko <rbyshko@gmail.com>
3 Date: Wed, 18 Sep 2013 22:45:06 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add USB host nodes to cubieboard dts
5
6 Add nodes for the usb-phy and ehci- and ohci-usb-host controllers.
7
8 Signed-off-by: Roman Byshko <rbyshko@gmail.com>
9 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
10 ---
11  arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 23 +++++++++++++++++++++++
12  1 file changed, 23 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 ef85b8e..57d2c9c 100644
16 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
17 +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
18 @@ -13,6 +13,7 @@
19  /dts-v1/;
20  /include/ "sun4i-a10.dtsi"
21  /include/ "sunxi-ahci-reg.dtsi"
22 +/include/ "sun4i-a10-usb-vbus-reg.dtsi"
23  
24  / {
25         model = "Cubietech Cubieboard";
26 @@ -42,11 +43,33 @@
27                         status = "okay";
28                 };
29  
30 +               usbphy: phy@01c13400 {
31 +                       usb1_vbus-supply = <&reg_usb1_vbus>;
32 +                       usb2_vbus-supply = <&reg_usb2_vbus>;
33 +                       status = "okay";
34 +               };
35 +
36 +               ehci0: usb@01c14000 {
37 +                       status = "okay";
38 +               };
39 +
40 +               ohci0: usb@01c14400 {
41 +                       status = "okay";
42 +               };
43 +
44                 ahci: sata@01c18000 {
45                         target-supply = <&reg_ahci_5v>;
46                         status = "okay";
47                 };
48  
49 +               ehci1: usb@01c1c000 {
50 +                       status = "okay";
51 +               };
52 +
53 +               ohci1: usb@01c1c400 {
54 +                       status = "okay";
55 +               };
56 +
57                 pinctrl@01c20800 {
58                         led_pins_cubieboard: led_pins@0 {
59                                 allwinner,pins = "PH20", "PH21";
60 -- 
61 1.8.5.5
62