sunxi: initial 3.14 patchset
[openwrt/svn-archive/archive.git] / target / linux / sunxi / patches-3.14 / 161-dt-sun5i-add-usb-host-bindings.patch
1 From 1b5a1b92147936c5aa2acec1683663b4d22e9ae6 Mon Sep 17 00:00:00 2001
2 From: Roman Byshko <rbyshko@gmail.com>
3 Date: Tue, 24 Sep 2013 20:03:40 +0200
4 Subject: [PATCH] ARM: sun5i: dt: Add USB host bindings
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/sun5i-a10s.dtsi | 32 ++++++++++++++++++++++++++++++++
12 arch/arm/boot/dts/sun5i-a13.dtsi | 32 ++++++++++++++++++++++++++++++++
13 2 files changed, 64 insertions(+)
14
15 diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi
16 index b2cb5dc..f34e0d8 100644
17 diff --git a/arch/arm/boot/dts/sun5i-a13.dtsi b/arch/arm/boot/dts/sun5i-a13.dtsi
18 index 7102d12..0e9c239 100644
19 --- a/arch/arm/boot/dts/sun5i-a13.dtsi
20 +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
21 @@ -320,6 +320,38 @@
22 #size-cells = <0>;
23 };
24
25 + usbphy: phy@01c13400 {
26 + #phy-cells = <1>;
27 + compatible = "allwinner,sun5i-a13-usb-phy";
28 + reg = <0x01c13400 0x10 0x01c14800 0x4>;
29 + reg-names = "phy_ctrl", "pmu1";
30 + clocks = <&usb_clk 8>;
31 + clock-names = "usb_phy";
32 + resets = <&usb_clk 1>;
33 + reset-names = "usb1_reset";
34 + status = "disabled";
35 + };
36 +
37 + ehci0: usb@01c14000 {
38 + compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
39 + reg = <0x01c14000 0x100>;
40 + interrupts = <39>;
41 + clocks = <&ahb_gates 1>;
42 + phys = <&usbphy 1>;
43 + phy-names = "usb";
44 + status = "disabled";
45 + };
46 +
47 + ohci0: usb@01c14400 {
48 + compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
49 + reg = <0x01c14400 0x100>;
50 + interrupts = <40>;
51 + clocks = <&usb_clk 6>, <&ahb_gates 2>;
52 + phys = <&usbphy 1>;
53 + phy-names = "usb";
54 + status = "disabled";
55 + };
56 +
57 spi2: spi@01c17000 {
58 compatible = "allwinner,sun4i-a10-spi";
59 reg = <0x01c17000 0x1000>;
60 --
61 2.0.3
62