bcm53xx: backport BCM5301X patches from 2019-09-30
[openwrt/staging/mkresin.git] / target / linux / bcm53xx / patches-4.4 / 044-0005-ARM-BCM5301X-Specify-USB-3.0-PHY-in-DT.patch
1 From 5b92db97f4ae345bd6f045c9427471680a7fe2e7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 21 Sep 2016 22:58:34 +0200
4 Subject: [PATCH] ARM: BCM5301X: Specify USB 3.0 PHY in DT
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Driver for Northstar USB 3.0 PHY has been recently added under the name
10 phy-bcm-ns-usb3. Add binding for it into the DT files.
11 The only slightly tricky part is BCM47094 which uses different PHY
12 version and requires different compatible value.
13
14 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
15 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16 ---
17 arch/arm/boot/dts/bcm47094.dtsi | 6 ++++++
18 arch/arm/boot/dts/bcm5301x.dtsi | 7 +++++++
19 2 files changed, 13 insertions(+)
20
21 --- a/arch/arm/boot/dts/bcm47094.dtsi
22 +++ b/arch/arm/boot/dts/bcm47094.dtsi
23 @@ -6,6 +6,12 @@
24
25 #include "bcm4708.dtsi"
26
27 +/ {
28 + usb3_phy: usb3-phy {
29 + compatible = "brcm,ns-bx-usb3-phy";
30 + };
31 +};
32 +
33 &uart0 {
34 clock-frequency = <125000000>;
35 };
36 --- a/arch/arm/boot/dts/bcm5301x.dtsi
37 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
38 @@ -149,6 +149,13 @@
39 clock-names = "phy-ref-clk";
40 };
41
42 + usb3_phy: usb3-phy {
43 + compatible = "brcm,ns-ax-usb3-phy";
44 + reg = <0x18105000 0x1000>, <0x18003000 0x1000>;
45 + reg-names = "dmp", "ccb-mii";
46 + #phy-cells = <0>;
47 + };
48 +
49 axi@18000000 {
50 compatible = "brcm,bus-axi";
51 reg = <0x18000000 0x1000>;