[PATCH v2 00/16] realtek: pinctrl and switch LED drivers
Sander Vanheule
sander at svanheule.net
Mon Oct 3 13:52:11 PDT 2022
Revised patch set of an earlier RFC, introducing an MFD driver for the
switch core, and dependent pinctrl and LED drivers. This should allow
users to control the switch port LED to their liking, and make it easier
to configure pin muxes. System LED support is also provided, although
not enabled.
Since the RFC, support for Cypress (RTL835x/RTL839x) as added, in
addition to the already suggested Maple support (RTL833x/RTL838x).
The system LED driver was split of from the core MFD driver, and some
shared logic with the switch port LED driver was put into a separate
unit.
As make-shift documentation to the devicetree interfaces, the
corresponding nodes changes are also implemented, including LED support
for the Zyxel GS1900-8 an GS1900-48 switches.
In addition to driver changes, this patch series also includes a
non-code patch introducing a target TODO file.
Sander Vanheule (16):
realtek: add switch core MFD driver
realtek: add switch core pinctrl driver
realtek: add base register field LED support
realtek: add system LED peripheral driver
realtek: add switch port LED driver
realtek: rtl838x: enable switch core drivers
realtek: rtl838x: replace pinctrl nodes
realtek: rtl838x: add sys-led node
realtek: Zyxel GS1900-8: define port LEDs
realtek: rtl839x: enable switch core drivers
realtek: rtl839x: replace pinctrl nodes
realtek: rtl839x: add sys-led node
realtek: Zyxel GS1900-48: add port LEDs
realtek: rtl930x: disable new switch core drivers
realtek: rtl931x: disable new switch core drivers
realtek: add target TODO.md
target/linux/realtek/TODO.md | 22 +
.../dts-5.10/rtl8380_zyxel_gs1900-8.dts | 69 ++
target/linux/realtek/dts-5.10/rtl838x.dtsi | 38 +-
.../dts-5.10/rtl8393_zyxel_gs1900-48.dts | 362 +++++++
target/linux/realtek/dts-5.10/rtl839x.dtsi | 45 +-
.../files-5.10/drivers/leds/realtek/Kconfig | 28 +
.../files-5.10/drivers/leds/realtek/Makefile | 4 +
.../drivers/leds/realtek/led-regfield.c | 99 ++
.../drivers/leds/realtek/led-regfield.h | 55 +
.../leds/realtek/rtl-switch-port-leds.c | 971 ++++++++++++++++++
.../leds/realtek/rtl-switch-sys-leds.c | 105 ++
.../drivers/mfd/realtek-switchcore.c | 217 ++++
.../drivers/pinctrl/pinctrl-rtl-switchcore.c | 447 ++++++++
...0-mfd-add-Realtek-switch-core-driver.patch | 46 +
...inctrl-add-pinctrl-for-Realtek-maple.patch | 49 +
...s-add-Realtek-LED-hardware-directory.patch | 37 +
target/linux/realtek/rtl838x/config-5.10 | 6 +
target/linux/realtek/rtl839x/config-5.10 | 6 +
target/linux/realtek/rtl930x/config-5.10 | 2 +
target/linux/realtek/rtl931x/config-5.10 | 2 +
20 files changed, 2563 insertions(+), 47 deletions(-)
create mode 100644 target/linux/realtek/TODO.md
create mode 100644 target/linux/realtek/files-5.10/drivers/leds/realtek/Kconfig
create mode 100644 target/linux/realtek/files-5.10/drivers/leds/realtek/Makefile
create mode 100644 target/linux/realtek/files-5.10/drivers/leds/realtek/led-regfield.c
create mode 100644 target/linux/realtek/files-5.10/drivers/leds/realtek/led-regfield.h
create mode 100644 target/linux/realtek/files-5.10/drivers/leds/realtek/rtl-switch-port-leds.c
create mode 100644 target/linux/realtek/files-5.10/drivers/leds/realtek/rtl-switch-sys-leds.c
create mode 100644 target/linux/realtek/files-5.10/drivers/mfd/realtek-switchcore.c
create mode 100644 target/linux/realtek/files-5.10/drivers/pinctrl/pinctrl-rtl-switchcore.c
create mode 100644 target/linux/realtek/patches-5.10/200-mfd-add-Realtek-switch-core-driver.patch
create mode 100644 target/linux/realtek/patches-5.10/201-pinctrl-add-pinctrl-for-Realtek-maple.patch
create mode 100644 target/linux/realtek/patches-5.10/202-leds-add-Realtek-LED-hardware-directory.patch
--
2.37.3
More information about the openwrt-devel
mailing list