ab27495078aaef76cef51ff1a66dac23aea61c13
[openwrt/staging/neocturne.git] /
1 From 8d6b61ecad2f1c939813c5c4517d53e04672dc48 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Sun, 23 Jul 2023 21:54:15 +0200
4 Subject: [PATCH] ARM: dts: BCM53573: Describe BCM53125 switch ports in the
5 main DTS
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 BCM53125 always has 5 ports with GPHYs (for LAN/WAN ports) and 2 IMP
11 ports. It seems the best place to describe that in the main .dtsi.
12 Device specific bits can go to device .dts files. This will help
13 avoiding some code duplication.
14
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 Link: https://lore.kernel.org/r/20230723195416.7831-2-zajec5@gmail.com
17 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
18 ---
19 .../boot/dts/broadcom/bcm47189-tenda-ac9.dts | 7 -----
20 arch/arm/boot/dts/broadcom/bcm53573.dtsi | 26 ++++++++++++++++++-
21 2 files changed, 25 insertions(+), 8 deletions(-)
22
23 --- a/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
24 +++ b/arch/arm/boot/dts/bcm47189-tenda-ac9.dts
25 @@ -111,34 +111,27 @@
26
27 ports {
28 port@0 {
29 - reg = <0>;
30 label = "wan";
31 };
32
33 port@1 {
34 - reg = <1>;
35 label = "lan1";
36 };
37
38 port@2 {
39 - reg = <2>;
40 label = "lan2";
41 };
42
43 port@3 {
44 - reg = <3>;
45 label = "lan3";
46 };
47
48 port@4 {
49 - reg = <4>;
50 label = "lan4";
51 };
52
53 port@8 {
54 - reg = <8>;
55 label = "cpu";
56 - ethernet = <&gmac0>;
57 };
58 };
59 };
60 --- a/arch/arm/boot/dts/bcm53573.dtsi
61 +++ b/arch/arm/boot/dts/bcm53573.dtsi
62 @@ -192,10 +192,34 @@
63
64 status = "disabled";
65
66 - /* ports are defined in board DTS */
67 ports {
68 #address-cells = <1>;
69 #size-cells = <0>;
70 +
71 + port@0 {
72 + reg = <0>;
73 + };
74 +
75 + port@1 {
76 + reg = <1>;
77 + };
78 +
79 + port@2 {
80 + reg = <2>;
81 + };
82 +
83 + port@3 {
84 + reg = <3>;
85 + };
86 +
87 + port@4 {
88 + reg = <4>;
89 + };
90 +
91 + port@8 {
92 + reg = <8>;
93 + ethernet = <&gmac0>;
94 + };
95 };
96 };
97 };