openwrt/target/linux/realtek
Sven Eckelmann 9c8d634646 realtek: rtl930x: Define GPIO_SEL_CTRL pinmux node
The pinmux-related registers on the RTL930X SoC family are spread across
various non-consecutive registers. It might be tempting to modify them
directly in a specific driver (SPI, LED, etc.), but this would cause issues
with parallel, non-locked read-modify-write operations, which are required
to update individual portions of these registers.

Instead, it is better to use the devicetree pinctrl properties to define
the correct configurations for the various operation modes.

One important setting here is the LED Sync bit. This allows the LED
controller to generate an additional positive edge on the `STCP`
("STore Clock Pin", also known as `RCLK`) of the LED shift register after
the actual content has already been shifted in using the normal shift
clock. The LED shift register is then expected to copy the content from the
shift register section into the storage registers, which act as the actual
LED output control. This functionality is available in, and commonly used
with, the SNx4HC595 family of shift registers.

To activate it, simply register it in the default state of the
"realtek,rtl83xx-switch" node:

    &switch0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&pinmux_enable_led_sync>;
    	....
    };

It would be nicer when this can be directly added to the led subnode. But
for this to work, `realtek,rtl9300-leds` must first be an actual driver
(known to the driver core).

[1] https://www.ti.com/lit/ds/symlink/sn74hc595.pdf

Suggested-by: Bevan Weiss <bevan.weiss@gmail.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/19815
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-09-03 09:54:51 +02:00
..
base-files realtek: fix model for TP-Link TL-ST1008F v2.0 2025-09-03 00:51:49 +02:00
dts realtek: rtl930x: Define GPIO_SEL_CTRL pinmux node 2025-09-03 09:54:51 +02:00
files/firmware/rtl838x_phy
files-6.12 generic: backport support for Aeonsemi AS21xxx PHY 2025-09-03 00:58:48 +02:00
image realtek: fix model for TP-Link TL-ST1008F v2.0 2025-09-03 00:51:49 +02:00
patches-6.12 generic: backport support for Aeonsemi AS21xxx PHY 2025-09-03 00:58:48 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl839x realtek: backport NAND driver for RTL93xx 2025-07-30 23:22:24 +02:00
rtl930x realtek: rtl930x: Enable parsing of u-boot nvmem layouts 2025-08-28 21:07:57 +02:00
rtl930x_nand realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00
rtl931x realtek: add RTL8231 driver configuration to kernel build 2025-08-17 17:31:24 +02:00
rtl931x_nand realtek: add RTL8231 driver configuration to kernel build 2025-08-17 17:31:24 +02:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00