162306a36Sopenharmony_ciBindings for Linear Technologies LT3593 LED controller 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRequired properties: 462306a36Sopenharmony_ci- compatible: Should be "lltc,lt3593". 562306a36Sopenharmony_ci- lltc,ctrl-gpios: A handle to the GPIO that is connected to the 'CTRL' 662306a36Sopenharmony_ci pin of the chip. 762306a36Sopenharmony_ci 862306a36Sopenharmony_ciThe hardware supports only one LED. The properties of this LED are 962306a36Sopenharmony_ciconfigured in a sub-node in the device node. 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ciOptional sub-node properties: 1262306a36Sopenharmony_ci- function: See Documentation/devicetree/bindings/leds/common.txt 1362306a36Sopenharmony_ci- color: See Documentation/devicetree/bindings/leds/common.txt 1462306a36Sopenharmony_ci- label: A label for the LED. If none is given, the LED will be 1562306a36Sopenharmony_ci named "lt3595::" (deprecated) 1662306a36Sopenharmony_ci- linux,default-trigger: The default trigger for the LED. 1762306a36Sopenharmony_ci See Documentation/devicetree/bindings/leds/common.txt 1862306a36Sopenharmony_ci- default-state: The initial state of the LED. 1962306a36Sopenharmony_ci See Documentation/devicetree/bindings/leds/common.txt 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ciIf multiple chips of this type are found in a design, each one needs to 2262306a36Sopenharmony_cibe handled by its own device node. 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ciExample: 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci#include <dt-bindings/leds/common.h> 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ciled-controller { 2962306a36Sopenharmony_ci compatible = "lltc,lt3593"; 3062306a36Sopenharmony_ci lltc,ctrl-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci led { 3362306a36Sopenharmony_ci function = LED_FUNCTION_BACKLIGHT; 3462306a36Sopenharmony_ci color = <LED_COLOR_ID_WHITE>; 3562306a36Sopenharmony_ci default-state = "on"; 3662306a36Sopenharmony_ci }; 3762306a36Sopenharmony_ci}; 38