Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: leds: is31fl319x: Document variants specificities

Add si-en compatibles for all chip variants and add conditionals
depending on compatibles to document variants specs:
- possible reg addresses
- whether audio-gain-db is supported or not
- maximum number of leds
- led-max-microamp values

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220712100841.1538395-3-vincent.knecht@mailoo.org

authored by

Vincent Knecht and committed by
Rob Herring
fce43d8f dbc801b4

+82 -2
+82 -2
Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml
··· 28 28 - issi,is31fl3193 29 29 - issi,is31fl3196 30 30 - issi,is31fl3199 31 + - si-en,sn3190 32 + - si-en,sn3191 33 + - si-en,sn3193 34 + - si-en,sn3196 31 35 - si-en,sn3199 32 36 33 37 reg: ··· 65 61 maximum: 9 66 62 67 63 led-max-microamp: 68 - default: 20000 69 - enum: [5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000] 70 64 description: 71 65 Note that a driver will take the lowest of all LED limits 72 66 since the chip has a single global setting. The lowest value ··· 72 70 brightness is achieved by reducing the duty-cycle of pulses 73 71 and not the current, which will always have its peak value 74 72 equal to led-max-microamp. 73 + 74 + allOf: 75 + - if: 76 + properties: 77 + compatible: 78 + contains: 79 + enum: 80 + - issi,is31fl3190 81 + - issi,is31fl3191 82 + - issi,is31fl3193 83 + - si-en,sn3190 84 + - si-en,sn3191 85 + - si-en,sn3193 86 + then: 87 + properties: 88 + reg: 89 + enum: [0x68, 0x69, 0x6a, 0x6b] 90 + 91 + audio-gain-db: false 92 + 93 + patternProperties: 94 + "^led@[1-9]$": 95 + properties: 96 + led-max-microamp: 97 + default: 42000 98 + enum: [5000, 10000, 17500, 30000, 42000] 99 + else: 100 + properties: 101 + reg: 102 + enum: [0x64, 0x65, 0x66, 0x67] 103 + 104 + patternProperties: 105 + "^led@[1-9]$": 106 + properties: 107 + led-max-microamp: 108 + default: 20000 109 + enum: [5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000] 110 + - if: 111 + properties: 112 + compatible: 113 + contains: 114 + enum: 115 + - issi,is31fl3190 116 + - issi,is31fl3191 117 + - si-en,sn3190 118 + - si-en,sn3191 119 + then: 120 + patternProperties: 121 + "^led@[1-9]$": 122 + properties: 123 + reg: 124 + maximum: 1 125 + - if: 126 + properties: 127 + compatible: 128 + contains: 129 + enum: 130 + - issi,is31fl3193 131 + - si-en,sn3193 132 + then: 133 + patternProperties: 134 + "^led@[1-9]$": 135 + properties: 136 + reg: 137 + maximum: 3 138 + - if: 139 + properties: 140 + compatible: 141 + contains: 142 + enum: 143 + - issi,is31fl3196 144 + - si-en,sn3196 145 + then: 146 + patternProperties: 147 + "^led@[1-9]$": 148 + properties: 149 + reg: 150 + maximum: 6 75 151 76 152 required: 77 153 - compatible