[PATCH v2 00/14] Switch realtek target to upstream platform
Sander Vanheule
sander at svanheule.net
Sun Dec 12 12:01:22 PST 2021
To reduce the maintenance burden of the realtek target in OpenWrt, Hiroshi and
I have worked on these patches to switch to the upstream platform. Some
downstream code is maintained, primarily for compatibility with the current
downstream-only networking drivers. There should be no functional changes for
users, although there will be some bootlog differences.
In addition to switching MIPS platforms, a patch is provided to enable SMP
support on RTL839x and RTL930x. This is required to support some out-of-tree
code that relies on SMP-support, but is not yet finished and will be added
later.
We hope these patches will make it easier for developers to write upstream-
compatible code on OpenWrt. Vice versa, it should also be easier with these
changes to backport drivers and patches that were upstreamed.
Changes in v2:
- Reorder patches to fix rtl93xx compatible before switching platforms
- Fix small formatting issue in realtek-board.c
- Add Bjørn's Tested-by to all relevant patches for RTL8380
- Add patch to enable SMP
Sander Vanheule (14):
realtek: add missing gpio0 pinctrl properties
realtek: add sys-led disable pinctrl for rtl930x
realtek: remove hardcoded sys-led configurations
realtek: use fixed-clock as CPU clock
realtek: include io.h in mach-rtl83xx.h
realtek: update mach-rtl83xx.h includes
realtek: backport upstream platform
realtek: add board file for MACH_REALTEK_RTL
realtek: use correct compatible for rtl930x SoCs
realtek: update driver platform dependencies
realtek: switch target to upstream platform
realtek: drop downstream platform
realtek: modernise devicetree console setup
realtek: initialise mulithreading on supported SoCs
target/linux/realtek/config-5.10 | 36 +++-
.../dts-5.10/rtl8380_netgear_gigabit.dtsi | 3 +
.../dts-5.10/rtl8382_d-link_dgs-1210.dtsi | 3 +
.../dts-5.10/rtl8382_inaba_aml2-17gp.dts | 3 +
target/linux/realtek/dts-5.10/rtl838x.dtsi | 16 +-
target/linux/realtek/dts-5.10/rtl930x.dtsi | 26 ++-
.../arch/mips/generic/board-realtek.c | 145 ++++++++++++++
.../mips/include/asm/mach-rtl838x/ioremap.h | 29 ---
.../include/asm/mach-rtl838x/mach-rtl83xx.h | 1 +
.../files-5.10/arch/mips/rtl838x/Makefile | 5 -
.../files-5.10/arch/mips/rtl838x/Platform | 5 -
.../files-5.10/arch/mips/rtl838x/prom.c | 183 ------------------
.../files-5.10/arch/mips/rtl838x/setup.c | 116 -----------
.../drivers/clocksource/timer-rtl9300.c | 2 +-
.../drivers/net/dsa/rtl83xx/Kconfig | 2 +-
target/linux/realtek/image/Makefile | 4 +-
...-add-realtek-rtl838x-rtl839x-support.patch | 45 +++++
.../300-mips-add-rtl838x-platform.patch | 39 ----
.../301-gpio-add-rtl8231-driver.patch | 2 +-
...e-dependencies-for-gpio-realtek-otto.patch | 13 --
...pdate-dependency-for-spi-realtek-rtl.patch | 11 --
...pdate-dependency-for-irq-realtek-rtl.patch | 8 -
.../306-gpio-add-legacy-rtl838x-driver.patch | 2 +-
...date-dependency-for-realtek-otto-wdt.patch | 15 --
...-in-board-realtek-for-generic-kernel.patch | 9 +
...S-generic-enable-SMP-on-SMVP-systems.patch | 23 +++
...net-add-support-for-rtl838x-ethernet.patch | 2 +-
.../patches-5.10/705-add-rtl-phy.patch | 2 +-
28 files changed, 308 insertions(+), 442 deletions(-)
create mode 100644 target/linux/realtek/files-5.10/arch/mips/generic/board-realtek.c
delete mode 100644 target/linux/realtek/files-5.10/arch/mips/include/asm/mach-rtl838x/ioremap.h
delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/Makefile
delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/Platform
delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c
delete mode 100644 target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c
create mode 100644 target/linux/realtek/patches-5.10/009-5.12-MIPS-add-realtek-rtl838x-rtl839x-support.patch
delete mode 100644 target/linux/realtek/patches-5.10/300-mips-add-rtl838x-platform.patch
delete mode 100644 target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch
delete mode 100644 target/linux/realtek/patches-5.10/304-spi-update-dependency-for-spi-realtek-rtl.patch
delete mode 100644 target/linux/realtek/patches-5.10/305-irqchip-update-dependency-for-irq-realtek-rtl.patch
delete mode 100644 target/linux/realtek/patches-5.10/307-wdt-update-dependency-for-realtek-otto-wdt.patch
create mode 100644 target/linux/realtek/patches-5.10/309-mips-built-in-board-realtek-for-generic-kernel.patch
create mode 100644 target/linux/realtek/patches-5.10/310-MIPS-generic-enable-SMP-on-SMVP-systems.patch
--
2.33.1
More information about the openwrt-devel
mailing list