6a5622b813ee57a53d97d26f4319d3b220bd6c3e
[openwrt/staging/ldir.git] /
1 From a2ac2a1b02590a22a236c43c455f421cdede45f5 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
3 Date: Thu, 14 Mar 2024 15:24:35 +0300
4 Subject: [PATCH] arm64: dts: rockchip: set PHY address of MT7531 switch to
5 0x1f
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The MT7531 switch listens on PHY address 0x1f on an MDIO bus. I've got two
11 findings that support this. There's no bootstrapping option to change the
12 PHY address of the switch. The Linux driver hardcodes 0x1f as the PHY
13 address of the switch. So the reg property on the device tree is currently
14 ignored by the Linux driver.
15
16 Therefore, describe the correct PHY address on Banana Pi BPI-R2 Pro that
17 has this switch.
18
19 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
20 Fixes: c1804463e5c6 ("arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board")
21 Link: https://lore.kernel.org/r/20240314-for-rockchip-mt7531-phy-address-v1-1-743b5873358f@arinc9.com
22 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
23 ---
24 arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 4 ++--
25 1 file changed, 2 insertions(+), 2 deletions(-)
26
27 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
28 +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
29 @@ -521,9 +521,9 @@
30 #address-cells = <1>;
31 #size-cells = <0>;
32
33 - switch@0 {
34 + switch@1f {
35 compatible = "mediatek,mt7531";
36 - reg = <0>;
37 + reg = <0x1f>;
38
39 ports {
40 #address-cells = <1>;