Repository navigation
mediatek: add support for Mercusys MR85X with DSA switch driver - #19445
Schneider-Azima wants to merge 4 commits into
Conversation
| diff --git a/drivers/net/dsa/realtek/rtl8365mb.c b/drivers/net/dsa/realtek/rtl8365mb.c | ||
| index 639f741..55d9a11 100644 | ||
| --- a/drivers/net/dsa/realtek/rtl8365mb.c | ||
| +++ b/drivers/net/dsa/realtek/rtl8365mb.c |
There was a problem hiding this comment.
Please add the original patch header or just import the original patches.
There was a problem hiding this comment.
Support for kernel 6.6 was recently removed (7fe6921) please rebase and port to kernel 6.12.
|
Could you use 72eddc0 and then create an additional patch for hsgmii support? |
Shall I also move hsgmiii support patch to generic/pending-6.12? I have only mtk devices for test though. |
825feb1 to
a5feec8
Compare
|
PR #19397 has been rebuilt, please rebuild your patch or revert to the previous version. |
|
@Schneider-Azima I updated your patch to the current version of my PR for kernel 6.6 and 6.12: 862-patch.zip |
a5feec8 to
cba5d12
Compare
|
Import the patch d8490e1 to your repository to avoid CI test errors |
7ecc144 to
a612ce1
Compare
|
If you have run this PR on real hardware, please attach the syslog (as an attachment, not by pasting) (anonymize MAC addresses, passwords, etc.) so that we can assess the effectiveness of the fixes. |
|
I'm afraid this is not very helpful in proving the network works fine. I can also get these print before fixing incompatible mtk cpu tag issue. |
a612ce1 to
1d0266c
Compare
|
Refresh patch file to fit in CI requirement. |
|
Question: Where did you read or how did you test the interrupt for rtl8367mb (IRQ/IRQ_TYPE)? |
Official GPL code has a dts. |
You can test checking that the switch is using interruption and not polling (dmesg will show you this during module loading). If you still have link down/up events, everything is fine. In a new device, you can detect the GPIO by commenting this code and adding a debugfs regmap rw patch (it changes an unconfigurable macro). This way you can export all unused ports via sysfs and monitor them. Once something happens that generates an interruption, like link down/up, the signal will change, as well as the RTL8365MB_INTR_STATUS_REG. With the debugfs regmap rw patch, you can write to RTL8365MB_INTR_STATUS_REG to bring it back to rest state. |
|
Please update patch "kernel: modules: netdevices: improve Realtek DSA driver" from #19397 and refresh your patches. |
|
Next code to test: namiltd#131 |
|
Oh, I had already built your latest namiltd#94 and was going to run speed tests against it probably tonight... Built namiltd#131 now against current Main. Builds/boots fine, but from a brief test, no speed/load difference compared to namiltd#94. FYI, I noticed that the port numbering on the device is different (didn't care before, but the closer a merge comes...):
|
|
In namiltd#131 there is no longer any 8051 firmware loading, so it was important to check if it would work. |
|
Ah nice, yes, I can confirm that combined routing performance is definitely identical (close to 2G) with namiltd#131. So it looks like the 8051 code isn't needed for >1G. |
|
@Shine- PR namiltd#131 updated, try LED labels (lan1-lan3) |
|
Thanks, ports are named identically as labelled on the device now, in correct order. |
The good old reverse engineering was worth it. That firmware blob will not be missed. |
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Signed-off-by: NipaLocal <nipa@local>
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Signed-off-by: NipaLocal <nipa@local>
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: NipaLocal <nipa@local>
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Mieczyslaw Nalewaj <[email protected]> Tested-by: Stanislaw Pal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Mieczyslaw Nalewaj <[email protected]> Tested-by: Stanislaw Pal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Link: namiltd#131 Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]> Link: openwrt#24435 Signed-off-by: Jonas Jelonek <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]> Link: openwrt#24435 Signed-off-by: Jonas Jelonek <[email protected]>
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Mieczyslaw Nalewaj <[email protected]> Tested-by: Stanislaw Pal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
In addition to SGMII, the RTL8367S SerDes also supports HSGMII, which carries 2.5 Gbps with the same signaling as SGMII at 2.5x clock rate. The chip info table already declares HSGMII as a supported interface mode for external interface 1. Extend the SerDes PCS to handle HSGMII, which phylink represents as 2500base-x: - Select the HSGMII SerDes tuning parameters and external interface mode, and mux the SerDes to MAC8 in HSGMII mode, from pcs_config() according to the interface. The parameters are again lifted from the GPL-licensed Realtek rtl8367c vendor driver, and again only cover the tuning variant for a non-zero chip option, so the mode is gated on the option probed at setup. - Advertise 2500base-x and MAC_2500FD on ports whose external interface supports HSGMII. - Accept SPEED_2500 in the forced link configuration. The MAC speed field has no 2.5 Gbps value: the rate is determined by the HSGMII SerDes configuration, and the vendor driver programs the 1 Gbps value here, so do the same. - Raise the port 6 ingress and egress rate limiters to their maximum at setup time, as the vendor switch init does unconditionally for the whole chip family. The chip resets them to 0x1FFFF (~1.048 Gbps in units of 8 Kbps), which caps the aggregate HSGMII throughput at roughly 1 Gbps. The vendor documentation describes the reset default as disabling the limiter, but the cap is real: on an RTL8367S-based Mercusys MR85X running an OpenWrt backport of this series, several clients on 1 Gbps user ports were limited to about 1.02 Gbps combined across the HSGMII CPU port until these limiters were raised, after which throughput reached about 2 Gbps [1]. The related HSGMII scheduler line rate (LINE_RATE_HSG_H) is already set to its maximum by the common init jam table. Tested on a Mercusys MR80X v2.20, where the RTL8367S is connected to the SoC over HSGMII. Link: openwrt/openwrt#19445 (comment) [1] Suggested-by: Luiz Angelo Daros de Luca <[email protected]> Suggested-by: Mieczyslaw Nalewaj <[email protected]> Signed-off-by: Johan Alvarado <[email protected]> Tested-by: Stanisław Pal <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Mieczyslaw Nalewaj <[email protected]> Tested-by: Stanislaw Pal <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt/openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]> Link: openwrt/openwrt#24435 Signed-off-by: Jonas Jelonek <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]> Link: openwrt#24435 Signed-off-by: Jonas Jelonek <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt/openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]> Link: openwrt/openwrt#24435 Signed-off-by: Jonas Jelonek <[email protected]>
Migrate the Mercusys MR85X network switch configuration from the legacy swconfig architecture to the Distributed Switch Architecture (DSA) driver framework. This updates the device tree bindings to utilize the realtek-rtl8365mb DSA driver for the integrated Realtek RTL8367S switch, enabling proper native Linux bridging interface management. Co-authored-by: Schneider Azima <[email protected]> Link: openwrt#19445 Co-authored-by: Mieczyslaw Nalewaj <[email protected]> Co-authored-by: Mikhail Zhilkin <[email protected]> Signed-off-by: Mikhail Zhilkin <[email protected]> Link: openwrt#24435 Signed-off-by: Jonas Jelonek <[email protected]>
|
Mr85x is already in the DSA version; this PR can be closed. |
This commit adds support for Mercusys MR85X router with DSA switch driver.
The driver part is almost all based on @hauke 's and @luizluca ''s work.
https://patchwork.kernel.org/project/netdevbpf/list/?series=639580
#19397
The device support part is almost the same as #19187. Differ in dts switch node, network script, and led script.
Device specification:
Installation (UART):
Recovery:
Stock layout:
ubi0/ubi1 format:
U-Boot at boot checks that all volumes are in place:
MAC addresses:
label MAC address was found in UBI partition "tp_data", file "default-mac".
OEM wireless eeprom is also there, file "MT7981_EEPROM.bin".