Heinrich Toews c2a493f4bd leds: wago-m4: support DT child nodes for LED naming
Add Device Tree child-node parsing to the wago-m4-led-wrapper driver so
that individual LEDs on the M4 strip can be named from DTS, matching the
convention used by drivers such as nxp,pca9552.

Driver changes (drivers/leds/rgb/wago-m4-led-wrapper.c):
- Add #include <linux/property.h> for fwnode helpers.
- Extract common sub-LED initialisation into wago_led_init_subled().
- In wago_led_register_leds(), count child nodes first:
  * If child nodes are present, iterate them with
    device_for_each_child_node(); read the 'reg' property to determine
    the strip index, populate led_init_data.fwnode, and register via
    devm_led_classdev_multicolor_register_ext().  The LED core then
    reads the 'label' and 'linux,default-trigger' properties from the
    child node automatically.
  * If no child nodes are present, fall back to the previous hard-coded
    'wago-m4-led-wrapper:<m4-ledN>' naming so existing deployments are
    unaffected.

DTS change (arch/arm64/boot/dts/ti/k3-am623-pfc-750-8400.dts):
- Add #address-cells = <1> / #size-cells = <0> to the leds-m4 node.
- Add led@0 .. led@9 child nodes with 'reg' and 'label' properties,
  using the same names as the PCA9552 multicolor LED groups (sys, run,
  io, em, u1 .. u6) so /sys/class/leds/ entries match across both
  LED controllers.

Signed-off-by: Heinrich Toews <ht@twx-software.de>
2026-04-09 13:30:31 +02:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
TWx Linux Repository
Readme 6.1 GiB
Languages
C 97.6%
Assembly 1%
Shell 0.5%
Python 0.3%
Makefile 0.3%