bcm53xx: backport DT patches for serial, thermal and MDIO
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 046-0003-ARM-BCM5301X-Specify-USB-controllers-in-DT.patch
1 From 45d2567b4b80a3f267502419aaad3d74b745dae7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 7 Dec 2016 08:56:52 +0100
4 Subject: [PATCH 3/6] ARM: BCM5301X: Specify USB controllers in DT
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 There are 3 separated controllers, one per USB /standard/. With PHY
10 drivers in place they can be simply supported with generic drivers.
11
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Reviewed-by: Ray Jui <ray.jui@broadcom.com>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16 arch/arm/boot/dts/bcm5301x.dtsi | 33 ++++++++++++++++++++++++++++++++-
17 1 file changed, 32 insertions(+), 1 deletion(-)
18
19 --- a/arch/arm/boot/dts/bcm5301x.dtsi
20 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
21 @@ -248,8 +248,26 @@
22
23 #address-cells = <1>;
24 #size-cells = <1>;
25 + ranges;
26
27 - phys = <&usb2_phy>;
28 + interrupt-parent = <&gic>;
29 +
30 + ehci: ehci@21000 {
31 + #usb-cells = <0>;
32 +
33 + compatible = "generic-ehci";
34 + reg = <0x00021000 0x1000>;
35 + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
36 + phys = <&usb2_phy>;
37 + };
38 +
39 + ohci: ohci@22000 {
40 + #usb-cells = <0>;
41 +
42 + compatible = "generic-ohci";
43 + reg = <0x00022000 0x1000>;
44 + interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
45 + };
46 };
47
48 usb3: usb3@23000 {
49 @@ -257,6 +275,19 @@
50
51 #address-cells = <1>;
52 #size-cells = <1>;
53 + ranges;
54 +
55 + interrupt-parent = <&gic>;
56 +
57 + xhci: xhci@23000 {
58 + #usb-cells = <0>;
59 +
60 + compatible = "generic-xhci";
61 + reg = <0x00023000 0x1000>;
62 + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
63 + phys = <&usb3_phy>;
64 + phy-names = "usb";
65 + };
66 };
67
68 spi@29000 {