[RFC PATCH 0/7] realtek: MFD for switch core

Sander Vanheule sander at svanheule.net
Sat Jul 16 12:31:53 PDT 2022


On Sat, 2022-07-16 at 21:09 +0200, Sander Vanheule wrote:
> This RFC series introduces a new MFD device for the switch core found
> in the Realtek SoCs. Currently only an implementation is provided for
> RTL8380, but it written with the register structure of other generations
> in mind.
> 
> The MFD comes with a set of new drivers:
>   - core MFD driver for global register management, sundry small
>     peripherals that don't warrant a specific driver
>   - pin control driver to manage different pin muxes, so we can replace
>     all those pinctrl-single nodes
>   - switch port LED driver with port status HW offloading
> 
> The port LED support will probably be what draws most attention, as this
> is something many users have been requesting. There are two example
> implementations:
>   - ZyXEL GS1900-8, with one LED per port
>   - Netgear GS110TPP, with two LEDs per port
> 
> If you have time, please test these patches and provide some feedback on
> the structure and implementation of the different parts. My plan is for
> this to be the starting point to (finally) start upstreaming the most
> important part of the Realtek SoCs; the ethernet switch.
> 
> Best,
> Sander
> 
> Sander Vanheule (7):
>   kernel: backport devm_bitmap_{alloc,zalloc}
>   realtek: add switch core MFD driver
>   realtek: add pinctrl for Realtek maple
>   realtek: add RTL8380 switch port LED driver
>   realtek: rtl838x: replace pinctrl-single
>   realtek: Zyxel GS1900-8: define port LEDs
>   realtek: Netgear GS110TPPv1: define port LEDs

For your convenience, I've also pushed the (amended) patch series to my staging
tree:
https://git.openwrt.org/?p=openwrt/staging/svanheule.git;a=shortlog;h=refs/heads/rfc/rtl-swcore

Best,
Sander



More information about the openwrt-devel mailing list