zephyr,native-linux-leds

Description

Linux LED backed LED device

Examples

/ {
  leds {
    compatible = "zephyr,native-linux-leds";

    led0: led_0 {
      /* /sys/class/leds/tpacpi::lid_logo_dot/brightness */
      path = "tpacpi::lid_logo_dot";
    };
    led1: led_1 {
      /* /sys/class/leds/tpacpi::power/brightness */
      path = "tpacpi::power";
    };
  };
};

Properties

Top level properties

No top-level properties.

Child node properties

Name

Type

Details

path

string

This property is required.

label

string

Human readable string describing the LED. It can be used by an
application to identify this LED or to retrieve its number/index
(i.e. child node number) on the parent device.

See Important properties for more information.