Re: [PATCH v8 0/6] RTL8231 GPIO expander support
From: Sander Vanheule
Date: Wed Nov 19 2025 - 15:06:49 EST
On Wed, 2025-11-19 at 21:02 +0100, Sander Vanheule wrote:
> The RTL8231 GPIO and LED expander can be configured for use as an MDIO
> or SMI bus device. Currently only the MDIO mode is supported, although
> SMI mode support should be fairly straightforward, once an SMI bus
> driver is available.
>
> Provided features by the RTL8231:
> - Up to 37 GPIOs
> - Configurable drive strength: 8mA or 4mA (currently unsupported)
> - Input debouncing on GPIOs 31-36
> - Up to 88 LEDs in multiple scan matrix groups
> - On, off, or one of six toggling intervals
> - "single-color mode": 2×36 single color LEDs + 8 bi-color LEDs
> - "bi-color mode": (12 + 2×6) bi-color LEDs + 24 single color LEDs
> - Up to one PWM output (currently unsupported)
> - Fixed duty cycle, 8 selectable frequencies (1.2kHz - 4.8kHz)
>
> The patches have been in use downstream by OpenWrt for some months. As
> the original patches are already a few years old, I would like to request
> all patches to be reviewed again (and I've dropped all provided tags and
> changelogs until v6).
>
> ---
Forgot to list the changes since v7:
- All drivers can now be built independently with COMPILE_TEST
- Fix storage size of pinfunction flags in a more compatible way
- Add missing OF dependency to pinctrl driver
- Improve references properties in bindings
Best,
Sander