[23.05] ramips: add support for TP-Link Archer C5 v4#14314
Closed
namiltd wants to merge 5 commits intoopenwrt:openwrt-23.05from
Closed
[23.05] ramips: add support for TP-Link Archer C5 v4#14314namiltd wants to merge 5 commits intoopenwrt:openwrt-23.05from
namiltd wants to merge 5 commits intoopenwrt:openwrt-23.05from
Conversation
From driver point of view no differance between rtl8367b and rtl8367s if it connected through EXT2 (rgmii only). So this trivial patch add some identification and initialization only. SGMII/HSGMII mode for EXT1 is not implemented for the sake of patch clairity. Signed-off-by: Serge Vasilugin <[email protected]> [Fix code format] Signed-off-by: DENG Qingfang <[email protected]> [add flags to separate chip_num/chip_id detection; drop error print in rtl8367b_init_regs, drop unnecessary info prints, code style fixes] Signed-off-by: Chuanhong Guo <[email protected]> [rebase; use MII macros] Signed-off-by: Gaspare Bruno <[email protected]>
TP-Link Archer C5 v4 is a dual band router with 5 GbE ports Advertised as AC1200 for its 867Mbps (2x2) 5GHz band and 300 Mbps (2x2) 2.4GHz band. Specs: - SoC: MediaTek MT7620A - Ethernet: 5x GbE ports (Realtek RTL8367S) - Wireless 2.4GHz: MediaTek MT7620A - Wireless 5GHz: MediaTek MT7612E - RAM: 64MiB - ROM: 8MiB (GD25Q64CSIG) - 1 USB 2.0 port - 2 Buttons (WPS and reset) - 8 LEDs Flash instructions: Currently one has to install OpenWrt only via the serial console 1. Rename the factory.bin to to test.bin 2. start a TFTP server from IP address 192.168.0.225 and serve the image named test.bin 3. connect your device to the LAN port 4. power up the router and press 4 on the console to stop the boot process. 5. enter the following commands on the router console tftp 0x80060000 test.bin erase tplink 0x20000 0x7a0000 cp.b 0x80060000 0x20000 0x7a0000 reset Signed-off-by: DENG Qingfang <[email protected]> [Update leds, add fast-read] Signed-off-by: Gaspare Bruno <[email protected]>
By default rtl8366_smi use phy addr 0 at mii-bus to access switch registers.
This patch allow to set it explicitly in dts-file:
rtl8367 {
compatible = "realtek,rtl8367b";
phy-id = <29>; /* switch address at mii-bus */
realtek,extif2 = <1 0 1 1 1 1 1 1 2>;
mii-bus = <&mdio>;
cpu-port = <7>;
}
Use default 0 address if not set.
Backward compatibility tested on tplink archer c2 v1 (rtl8367rb switch)
Signed-off-by: Serge Vasilugin <[email protected]>
[code style fixes, add explicit phy_id assignment in probe_plat, use
phy-id instead of phy_id for of property name]
Signed-off-by: Chuanhong Guo <[email protected]>
[rebase]
Signed-off-by: Gaspare Bruno <[email protected]>
…r.dtsi New version based on mt7620 tplink_archer.dtsi and added support for external LNA Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
ab8679a to
be776db
Compare
Improved detection of rtl8137c on 64-bit systems. Uses flags assigned to chip definitions. Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
be776db to
12ee84e
Compare
Contributor
|
@namiltd, you should target main branch for new devices. I don't think a PR for a released version will ever be merged without the corresponding support for the next version. |
Contributor
Author
|
This PR without any changes will also work for "main". For compatibility with the remaining dts files in the tree, you only need to move mac-address-increment to nvmem-cells. |
This was referenced Feb 9, 2024
Member
|
Please target the main branch first. When it was merged into main you can create a new pull request with a backport to 23.05. |
Contributor
Author
|
Closed due to PR #14599 closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Patch #14599 successor. PR #14418 compatible with release 23.05.
TP-Link Archer C5 v4 is a dual band router with 5 GbE ports
Advertised as AC1200 for its 867Mbps (2x2) 5GHz band
and 300 Mbps (2x2) 2.4GHz band.
Specs:
Currently, you can install OpenWrt via serial console or TFTP.
Flash instructions via serial console:
tftp 0x80060000 test.bin
erase tplink 0x20000 0x7a0000
cp.b 0x80060000 0x20000 0x7a0000
reset
Flash instructions via TFTP:
A little note: Since there are problems with the performance of 2.4GHz WiFi for Mediatek MT7620, disable 802.11w Management Frame Protection in Wireless Security.