f97d4edd75448358a4f0d04d4da0b99e4dfcd870
[openwrt/staging/ansuel.git] /
1 From e0ae343a2c1b782a346d9b844ea65e1d49c428b2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 24 Jul 2023 12:12:27 +0200
4 Subject: [PATCH] ARM: dts: BCM53573: Add Ethernet interfaces links
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 BCM53573 has 2 Ethernet interfaces each connected to one of switch ports
10 in the default design. They both use fixed links.
11
12 An exception are Luxul XAP devices that have switch replaced by a single
13 PHY.
14
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 Link: https://lore.kernel.org/r/20230724101227.5420-1-zajec5@gmail.com
17 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
18 ---
19 .../boot/dts/broadcom/bcm47189-luxul-xap-1440.dts | 2 ++
20 .../arm/boot/dts/broadcom/bcm47189-luxul-xap-810.dts | 2 ++
21 arch/arm/boot/dts/broadcom/bcm53573.dtsi | 12 ++++++++++++
22 3 files changed, 16 insertions(+)
23
24 --- a/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
25 +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
26 @@ -50,6 +50,8 @@
27 phy-mode = "rgmii";
28 phy-handle = <&bcm54210e>;
29
30 + /delete-node/ fixed-link;
31 +
32 mdio {
33 /delete-node/ switch@1e;
34
35 --- a/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
36 +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
37 @@ -86,6 +86,8 @@
38 phy-mode = "rgmii";
39 phy-handle = <&bcm54210e>;
40
41 + /delete-node/ fixed-link;
42 +
43 mdio {
44 /delete-node/ switch@1e;
45
46 --- a/arch/arm/boot/dts/bcm53573.dtsi
47 +++ b/arch/arm/boot/dts/bcm53573.dtsi
48 @@ -181,6 +181,12 @@
49
50 gmac0: ethernet@5000 {
51 reg = <0x5000 0x1000>;
52 + phy-mode = "internal";
53 +
54 + fixed-link {
55 + speed = <1000>;
56 + full-duplex;
57 + };
58
59 mdio {
60 #address-cells = <1>;
61 @@ -237,6 +243,12 @@
62
63 gmac1: ethernet@b000 {
64 reg = <0xb000 0x1000>;
65 + phy-mode = "internal";
66 +
67 + fixed-link {
68 + speed = <1000>;
69 + full-duplex;
70 + };
71 };
72
73 pmu@12000 {