1 From 527a3ac9bdf81da4b7160ce3cea57f28a0e5eb64 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 13 Jan 2021 12:14:06 +0100
4 Subject: [PATCH] arm64: dts: broadcom: bcm4908: describe internal switch
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 BCM4908 has internal switch with 5 GPHYs. Ports 0 - 3 are always
10 connected to the internal PHYs. Remaining ports depend on device setup.
12 Asus GT-AC5300 has an extra switch with its PHYs accessible using the
15 CPU port and Ethernet interface remain to be documented.
17 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
20 .../bcm4908/bcm4908-asus-gt-ac5300.dts | 51 +++++++++++
21 .../boot/dts/broadcom/bcm4908/bcm4908.dtsi | 85 ++++++++++++++++++-
22 2 files changed, 135 insertions(+), 1 deletion(-)
24 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts
25 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908-asus-gt-ac5300.dts
47 + /* External BCM53134S switch */
82 nand-ecc-strength = <4>;
83 nand-ecc-step-size = <512>;
84 --- a/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi
85 +++ b/arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi
87 compatible = "simple-bus";
90 - ranges = <0x00 0x00 0x80000000 0x10000>;
91 + ranges = <0x00 0x00 0x80000000 0xd0000>;
94 compatible = "generic-ehci";
96 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
100 + ethernet-switch@80000 {
101 + compatible = "simple-bus";
103 + #address-cells = <1>;
104 + ranges = <0 0x80000 0x50000>;
106 + ethernet-switch@0 {
107 + compatible = "brcm,bcm4908-switch";
108 + reg = <0x0 0x40000>,
114 + reg-names = "core", "reg", "intrl2_0",
115 + "intrl2_1", "fcb", "acb";
116 + interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
117 + <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
118 + brcm,num-gphy = <5>;
119 + brcm,num-rgmii-ports = <2>;
121 + #address-cells = <1>;
125 + #address-cells = <1>;
130 + phy-mode = "internal";
131 + phy-handle = <&phy8>;
136 + phy-mode = "internal";
137 + phy-handle = <&phy9>;
142 + phy-mode = "internal";
143 + phy-handle = <&phy10>;
148 + phy-mode = "internal";
149 + phy-handle = <&phy11>;
155 + compatible = "brcm,unimac-mdio";
156 + reg = <0x405c0 0x8>;
157 + reg-names = "mdio";
159 + #address-cells = <1>;
161 + phy8: ethernet-phy@8 {
165 + phy9: ethernet-phy@9 {
169 + phy10: ethernet-phy@a {
173 + phy11: ethernet-phy@b {
177 + phy12: ethernet-phy@c {