aboutsummaryrefslogtreecommitdiff
path: root/target/linux/realtek/rtl839x
Commit message (Collapse)AuthorAge
* realtek: backport NAND driver for RTL93xxMarkus Stockhausen2025-07-30
| | | | | | | | | | RTL93xx devices have a NAND controller built in. Upstream already has a driver in place. Include it downstream. Activate it in the RTL93xx builds and disable it for the RTL83xx builds. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/19583 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: remove patches, files and config for 6.6Jonas Jelonek2025-06-22
| | | | | | | | Remove all files etc. for 6.6 because 6.12 is default now. Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/19139 Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: Refresh kernel configsHauke Mehrtens2025-06-22
| | | | | | | | | Run this script: ./scripts/kconfig-reorder.sh Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Link: https://github.com/openwrt/openwrt/pull/19200 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: activate i2c-gpio-shared driverMarkus Stockhausen2025-06-17
| | | | | | | | | Currently only RTL83xx devices are known with shared SCL pins. So activate the driver only for those targets. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/18737 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: 6.12: restore config-6.6Markus Stockhausen2025-06-11
| | | | | | | | Automatically generated commit. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/18935 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: 6.12: create config-6.12 from config-6.6Markus Stockhausen2025-06-11
| | | | | | | | Automatically generated commit. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/18935 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: extend simple thermal driver to support rtl839xStephen Howell2025-06-03
| | | | | | | | | * Extends SoC thermal sensor on rtl839x * Tested on HP JG928A Signed-off-by: Stephen Howell <howels@allthatwemight.be> Link: https://github.com/openwrt/openwrt/pull/18825 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: add missing symbolStijn Tintel2025-05-03
| | | | | | | | | | Commit d7e82c78d7a2 added a generic kernel patch that exposes a new symbol REALTEK_PHY_HWMON when REALTEK_PHY and HWMON are enabled. The new symbol was added to kmod-phy-realtek, but the kmod is not used in the realtek target. Fixes: d7e82c78d7a2 ("generic: backport Realtek PHY patches from upstream") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: Activate CONFIG_NET_SWITCHDEV in generic configHauke Mehrtens2025-03-15
| | | | | | | | | | | | | | | | The CONFIG_NET_SWITCHDEV option is needed by CONFIG_DSA and some other options. It is boolean, we have to compile it into the kernel it self. Activate it for all targets in the generic configuration, it is already activated for most of them. This allows to install DSA drivers as a module. On the ramips/mt7620 target the kernel would grown by 4.5kB. For some small targets which do not support a DSA switch by default the option is deactivated. Link: https://github.com/openwrt/openwrt/pull/17668 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* realtek: drop old RTL8231 driverSander Vanheule2025-02-05
| | | | | | | | | | | | | The old RTL8231 driver integrated the MDIO bus access with the GPIO control ops, making this driver not very portable to newer platforms. It depended on the SoC ID instead of the compatible to determine the MDIO access register, further complicating portability. A new MFD driver is now available, which offers proper pin config as well as optional LED support, which can work on any (bitbanged) MDIO bus. Now that all devices have been migrated, we can drop the old code. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: rtl839x: Enable RTL8231 MFD driverSander Vanheule2025-01-18
| | | | | | | Enable the RTL8231 MFD core driver, as well as the pinctrl/gpio driver to allow RTL839x devices to use it. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: rtl839x: Enable AUX MDIO controllerSander Vanheule2025-01-18
| | | | | | | | Enable the driver for the Realtek Otto auxiliary MDIO driver so RTL839x devices can use it. The related node is added to the base devicetree for rtl839x-based devices, so they can enabled and use it when required. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: Add pinctrl support for RTL8231Sander Vanheule2025-01-07
| | | | | | | | | | Add pending patches to add RTL8231 support as a MDIO-bus attached multi-functional device. This includes subdrivers for the pincontrol and GPIO features, as well as the LED matrix support. Leave the drivers disabled until required by a device. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: Add driver for auxiliary MDIO bussesSander Vanheule2025-01-07
| | | | | | | | | | | Add a driver that exposes the auxiliary busses, used for the RTL8231 expanders, as a proper MDIO controller. The device must be instantiated under an MFD device, so the driver should also be compatible with SoC managed by an external CPU via SPI. Leave the driver disabled in builds until required. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: rtl839x: Refresh kernel configSander Vanheule2025-01-07
| | | | | | | | | Run 'make kernel_oldconfig' to get an up-to-date config. "# CONFIG_I2C_MUX_RTL9300 is not set" is retained, as the kernel module build will selects CONFIG_I2C_MUX=m, on which this symbol depends. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: align kernel config with upstreamMarkus Stockhausen2024-11-16
| | | | | | | | | | Since the start of the Realtek target OpenWrt works with RTL83XX as the target architecture. Upstream is using MACH_REALTEK_RTL instead. To simplify further development align that. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/16963 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: Reorder config filesHauke Mehrtens2024-10-22
| | | | | | | | | | Reorder the kernel configuration files. This was done uisng: ./scripts/kconfig-reorder.sh Link: https://github.com/openwrt/openwrt/pull/16743 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* realtek: drop 5.15 supportMieczyslaw Nalewaj2024-09-20
| | | | | | | | Drop config and files for Linux 5.15. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/16417 Signed-off-by: Robert Marko <robimarko@gmail.com>
* realtek: add support for HPE 1920-48G (JG927A) and 1920-48G-PoE (JG928A)Stephen Howell2024-09-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware information: --------------------- - SoC: RTL8393M - Copper phy: 6×RTL8218B - Fibre phy: RTL8214FC - Flash: 32MiB SPI NOR, MX25L25635FMI - RAM: 128MiB DDR3, Micron MT41K64M16TW-107 - Serial port: ±5V serial port to RJ45, ZT3232 (MAX3232 compatible) - +370W POE on JG928A model Note: SFP ports currently non-functional due to missing support for RTL8214FC on the RTL8393M target. Updated for Linux 6.6 kernel. Installation: ------------- - Initial installation follows same process as HPE 1920-24G (JG924A) - Based on prior work of Jan Hoffmann <jan@3e8.eu> - Additional work by Andreas Böhler <dev@aboehler.at> - PoE updates and tidy-up by Stephen Howell <howels@allthatwemight.be> Signed-off-by: Stephen Howell <howels@allthatwemight.be>
* realtek: 6.6: copy files and config from 5.15Markus Stockhausen2024-09-14
| | | | | | | Copy files and config from 5.15 kernel version. Because of the big version jump leave out the patches for now so we can treat them individually later on. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
* treewide: remove files for building 5.10 kernelNick Hainke2023-05-12
| | | | | | | | | | | All targets are bumped to 5.15. Remove the old 5.10 patches, configs and files using: find target/linux -iname '*-5.10' -exec rm -r {} \; Further, remove the 5.10 include. Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: Deactivate CONFIG_LEGACY_PTYSHauke Mehrtens2023-04-29
| | | | | | | | | The legacy (BSD) PTY support could open security problems in a system, We do not need them in OpenWrt, deactivate this option in all targets. Debian also deactivates this option. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* realtek: remove KERNEL_PATCHVER overridesSander Vanheule2023-01-29
| | | | | | | | | | On the realtek target, the subtarget makefiles include a KERNEL_PATCHVER setting, shadowing KERNEL_PATCHVER from target/linux/realtek/Makefile. This makes the realtek target an exception in this regard, and makes switching kernel version a bit bothersome. Remove the overrides so all subtargets use the same kernel version. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: Refresh kernel config with no_except_fillOlliver Schinagl2023-01-24
| | | | | | Update the config files with the previous commit. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
* realtek: rtl839x: enable driver for virtual mtd_concat devices in configDavide Fioravanti2023-01-13
| | | | | | | Enable the driver for the rtl839x target. It's required at least for Netgear GS750E Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
* realtek: Disable boston clockOlliver Schinagl2023-01-01
| | | | | | | We are not on the 'boston' platform so no point in having that clock driver enabled. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
* realtek: Cleanup MakefilesOlliver Schinagl2022-12-27
| | | | | | | Our current Makefiles a little bit messy and can be improved somewhat, both in whitespace and in style. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
* realtek: refresh config-5.15 in all subtargetsINAGAKI Hiroshi2022-12-15
| | | | | | Refresh config-5.15 in all subtargets by kernel_menuconfig. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* realtek: copy dts/files/patches/configs for 5.15INAGAKI Hiroshi2022-12-15
| | | | | | | | Copy dts/files/patches/configs from 5.10 to 5.15. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> [refresh with updated DGS-1210 dts files] Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: timer driver: activate for RTL839X devicesMarkus Stockhausen2022-10-23
| | | | | | | | | Use the new timer driver for the RTL839X devices and remove the no longer needed modules. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> [correct timer compatible order, update selected symbols] Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: activate clock driver for RTL838X/RTL839X targetsMarkus Stockhausen2022-08-28
| | | | | | | | Make use the new clock driver for RTL838X and RTL839x target devices. Of course we will enable their primary consumer (cpufreq-dt) too. To be careful just set the default governor to userspace. As we rely on SRAM activate that module too. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
* kernel: Activate CONFIG_GPIOLIB in generic configurationHauke Mehrtens2022-08-10
| | | | | | | | All targets expect the malta target already activate the CONFIG_GPIOLIB option. Move it to generic kernel configuration and also activate it for malta. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* realtek: enable pca953x GPIO driver for rtl839x subtargetINAGAKI Hiroshi2022-08-06
| | | | | | | | | The system status LED on Panasonic Switch-M48eG PN28480K is connected to a PCA9539PW. To use the LED as a status LED of OpenWrt while booting, enable the pca953x driver and built-in to the kernel. Also enable CONFIG_GPIO_PCA953X_IRQ to use interrupt via RTL83xx GPIO. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM]Tomasz Maciej Nowak2022-06-24
| | | | | | | | | | | | This is now built-in, enable so it won't propagate on target configs. Link: https://lkml.org/lkml/2022/1/3/168 Fixes: 79e7a2552e89 ("kernel: bump 5.15 to 5.15.44") Fixes: 0ca93670693b ("kernel: bump 5.10 to 5.10.119") Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> (Link to Kernel's commit taht made it built-in, CRYPTO_LIB_BLAKE2S[_ARM|_X86] as it's selectable, 5.10 backport) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* config: limit CONFIG_DEBUG_INFO to top-level generic configsTony Ambardar2022-05-18
| | | | | | | | | | Remove redundant target-level entries, noting that these settings will be configured from "Kernel build options" of Kconfig. Signed-off-by: Tony Ambardar <itugrok@yahoo.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [remove from new configs introduced after patch submission] Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* realtek: Remove RTL838X PHY firmware from RTL839X kernelBirger Koblitz2022-02-17
| | | | | | | The RTL839X does not have an internal phy and thus does not need to have any firmware as part of the kernel, especially not firmware for the RTL838X. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
* realtek: Use new CEVT timerBirger Koblitz2022-02-17
| | | | | | | | Selects the new CEVT timer for Realtek instead of the previous timer driver. While we are at it, we explicitily state we do not use the I2C driver of the RTL9300. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
* realtek: Increase zone size for Ethernet driver DMABirger Koblitz2022-02-17
| | | | | | | | | | Set CONFIG_FORCE_MAX_ZONEORDER setting to 13 to allow larger contiguous memory allocation for the DMA of the Ethernet driver. Increase the number of entries in the RX ring to 300 making use of the larger DMA region now possible for receiveing packets. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
* realtek: Add kernel config for RTL839x SoCsBirger Koblitz2022-02-17
| | | | | | | Adds a dedicated kernel configuration for RTL839X SoCs enabling SMP. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
* realtek: Add Makefile for RTL839x sub-architectureBirger Koblitz2022-02-17
Adds the initial Makefile for the RTL839x sub-architecture. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>