ISSI LED Controllers for IS31FL319{0,1,3,6,9}
Schema identifier ($id): "http://devicetree.org/schemas/leds/issi,is31fl319x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vincent Knecht <vincent.knecht@mailoo.org>"
The IS31FL319X are LED controllers with I2C interface. Previously known as Si-En SN319{0,1,3,6,9}.
For more product information please see the links below:
https://lumissil.com/assets/pdf/core/IS31FL3190_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3191_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3196_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "issi,is31fl3190", "issi,is31fl3191", "issi,is31fl3193", "issi,is31fl3196", "issi,is31fl3199", "si-en,sn3190", "si-en,sn3191", "si-en,sn3193", "si-en,sn3196", "si-en,sn3199"
reg — required here #
Maximum number of items (maxItems): 1
shutdown-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO attached to the SDB pin.
audio-gain-db — not listed as required here #
Default value (default): 0
Audio gain selection for external analog modulation input.
Allowed values (enum): 0, 3, 6, 9, 12, 15, 18, 21
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[1-9]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Index of the LED.
Minimum value (minimum): 1
Maximum value (maximum): 9
led-max-microamp — not listed as required here
Note that a driver will take the lowest of all LED limits since the chip has a single global setting. The lowest value will be chosen due to the PWM specificity, where lower brightness is achieved by reducing the duty-cycle of pulses and not the current, which will always have its peak value equal to led-max-microamp.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"issi,is31fl3190","issi,is31fl3191","issi,is31fl3193","si-en,sn3190","si-en,sn3191","si-en,sn3193"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):104,105,106,107
audio-gain-db— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
led-max-microamp— not listed as required hereDefault value (
default):42000When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):100,101,102,103Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
led-max-microamp— not listed as required hereDefault value (
default):20000Allowed values (
enum):5000,10000,15000,20000,25000,30000,35000,40000
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"issi,is31fl3190","issi,is31fl3191","si-en,sn3190","si-en,sn3191"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):6
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@65 {
compatible = "issi,is31fl3196";
reg = <0x65>;
#address-cells = <1>;
#size-cells = <0>;
shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
led@1 {
reg = <1>;
label = "red:aux";
led-max-microamp = <10000>;
};
led@5 {
reg = <5>;
label = "green:power";
linux,default-trigger = "default-on";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)