sunxi: driver refresh for 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 183-4-dt-sun4i-add-ehci-a1000.patch
1 From dee94e49177c0bac675d543b16de0f354b0f476a Mon Sep 17 00:00:00 2001
2 From: Roman Byshko <rbyshko@gmail.com>
3 Date: Wed, 18 Sep 2013 00:30:40 +0200
4 Subject: [PATCH] ARM: sun4i: dt: Add USB host nodes to Mele A1000 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-a1000.dts | 23 +++++++++++++++++++++++
12  1 file changed, 23 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun4i-a10-a1000.dts b/arch/arm/boot/dts/sun4i-a10-a1000.dts
15 index 4b2a694..144b8e6 100644
16 --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
17 +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
18 @@ -13,6 +13,7 @@
19  
20  /dts-v1/;
21  /include/ "sun4i-a10.dtsi"
22 +/include/ "sun4i-a10-usb-vbus-reg.dtsi"
23  
24  / {
25         model = "Mele A1000";
26 @@ -43,10 +44,32 @@
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                         status = "okay";
46                 };
47  
48 +               ehci1: usb@01c1c000 {
49 +                       status = "okay";
50 +               };
51 +
52 +               ohci1: usb@01c1c400 {
53 +                       status = "okay";
54 +               };
55 +
56                 pinctrl@01c20800 {
57                         emac_power_pin_a1000: emac_power_pin@0 {
58                                 allwinner,pins = "PH15";
59 -- 
60 1.8.5.5
61