This will remove the ethernet0 alias and TODO as setting the LAN MAC via nvmem to gmac0 will set the correct mac to the switch.
Signed-off-by: Christoph Krapp <achterin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20558 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 66169b1)
This aligns the LED behaviour with other Orbi devices. Orbi devices have multiple RBG LEDs at the top of the device and two status LEDs at the back next to the barrel jack. The current behaviour of other Orbi devices is to use the multi-color LEDs at the top for status indication and the green/red LEDs at the back for running/panic-indication. This matches the vendor behaviour except the color choice. Other devices use green as running, blue on upgrade, red on failsafe and white on bootup, so this aligns the LBR20 behaviour to the rest.
Signed-off-by: Christoph Krapp <achterin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20558 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: aa0c78f)
Comparing the partition contents of a bricked and a working unit showed that on the bricked one the fake uImage header was missing. The UBI partition also showed significant changes. Both are fixed when the base DniImage receipt is used.
Signed-off-by: Christoph Krapp <achterin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20558 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 89f3c51)
realtek: pcs: rtl930x: import SerDes setup code from PHY driver
Import SerDes configuration code from PHY driver into the PCS driver. Only do mandatory adjustments, rename the function to adhere to the naming scheme, adjust all SerDes access calls.
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20539 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 9e0cba5)
realtek: pcs: rtl930x: use regmap for register access
Use regmap to access registers in the global register space so we don't have to use the old macros sw_r32/sw_w32 anymore.
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20539 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: d877600)
realtek: dsa,pcs: rtl930x: let PCS driver setup SerDes
Remove SerDes initialization/configuration calls from the DSA driver in 'rtl93xx_phylink_mac_config' and let our PCS driver setup the SerDes now that the driver is able to do that.
Adjust some details in rtl93xx_phylink_mac_config to ensure the MAC is properly disabled MAC before configuring the SerDes. This was done within the SerDes code before.
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20539 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 017fc35)
wifi-scripts: ucode: fix check for empty crypto object while scanning
it can be empty
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu> Link: https://github.com/openwrt/openwrt/pull/20526 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 66e5e96)
realtek: rtl838x: fix regression in enable_phy_polling
Fix regression from back when support for RTL930x was added. While at it replace 0x8000 by BIT(15).
Fixes: 27029277f98ddd0006175bdc5beec8b0b150f187
Tested-by: Jonas Jelonek <jelonek.jonas@gmail.com> Signed-off-by: Felix Baumann <felix.bau@gmx.de> Link: https://github.com/openwrt/openwrt/pull/20549 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 93ba35f)
airoha: add pending patch for USB support on AN7581
Add pending patch for USB support on AN7581 SoC. This is also required to make operational the 3rd PCIe line that use the USB2 Serdes for PCIe operations.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (commit: 7afc2da)
Enable USB node on eMMC RFB board and disable USB2 3.0 port to make the 3rd PCIe line correctly work.
This is needed to prevent the xHCI driver to mess with PCIe by configuring the USB2 3.0 port. Port will still be detected but won't be configureed by the driver and won't have PHY to configure for.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (commit: 6d51c80)
Datasheet claims this register bit is supposed to be set by default, however it was found in practice to not be, and OEM drivers would set this bit at the same time.
Signed-off-by: Richard Huynh <voxlympha@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20465 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (commit: 2b773bd)
MAC addresses ------------- LAN 2.4G + 1 WAN 2.4G + 3 2.4G Label MAC (stored in factory offset 0x1006) 5G 2.4G + 2 (stored in factory offset 0x5006)
Installation ------------ SSH --- 1. Reset the device, setup and enable SSH. 2. Transfer initramfs.itb to /tmp on the device. 3. SSH into the router, credentials are the same as in the web ui. 4. Write initramfs to linux partition: mtd-write -d linux -i initramfs.itb 5. Reboot and wait for OpenWrt to boot. 6. Transfer sysupgrade.bin to /tmp on the device. 7. SSH into the router, user root, no pw. 8. Delete jffs2 ubi partition: ubirmvol /dev/ubi0 --name=jffs2 9. Flash OpenWrt: sysupgrade -n sysupgrade.bin
Signed-off-by: Christoph Krapp <achterin@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20573 Signed-off-by: Robert Marko <robimarko@gmail.com> (commit: 120b70a)
airoha: support openwrt,netdev-name for renaming interfaces
Add support to the airoha target for the OpenWrt-specific DT property `openwrt,netdev-name`. In particular, this is for interfaces under non-DSA `airoha_eth` interfaces.
This will avoid conflicts with upstream code[1]; and maintain forward compatibility with OpenWrt configurations if/when `airoha_eth` becomes a full DSA driver.