^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) LEDs connected to is31fl319x LED controller chip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible : Should be any of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) "issi,is31fl3190"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) "issi,is31fl3191"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) "issi,is31fl3193"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) "issi,is31fl3196"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) "issi,is31fl3199"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) "si-en,sn3199".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - #address-cells: Must be 1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - #size-cells: Must be 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - reg: 0x64, 0x65, 0x66, or 0x67.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - audio-gain-db : audio gain selection for external analog modulation input.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Valid values: 0 - 21, step by 3 (rounded down)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Default: 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - shutdown-gpios : Specifier of the GPIO connected to SDB pin of the chip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) Each led is represented as a sub-node of the issi,is31fl319x device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) There can be less leds subnodes than the chip can support but not more.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Required led sub-node properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) - reg : number of LED line
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Valid values: 1 - number of leds supported by the chip variant.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) Optional led sub-node properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - label : see Documentation/devicetree/bindings/leds/common.txt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - linux,default-trigger :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) see Documentation/devicetree/bindings/leds/common.txt.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) - led-max-microamp : (optional)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Valid values: 5000 - 40000, step by 5000 (rounded down)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) Default: 20000 (20 mA)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Note: a driver will take the lowest of all led limits since the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) chip has a single global setting. The lowest value will be chosen
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) due to the PWM specificity, where lower brightness is achieved
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) by reducing the dury-cycle of pulses and not the current, which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) will always have its peak value equal to led-max-microamp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) fancy_leds: leds@65 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) compatible = "issi,is31fl3196";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) reg = <0x65>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) red_aux: led@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) label = "red:aux";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) reg = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) led-max-microamp = <10000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) green_power: led@5 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) label = "green:power";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) reg = <5>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) linux,default-trigger = "default-on";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) };