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

dt-bindings: leds: Add 'active-high' property

Other than described in commit c94d1783136e ("dt-bindings: net: phy:
Make LED active-low property common") the absence of the 'active-low'
property means not to touch the polarity settings which are inherited
from reset defaults, the bootloader or bootstrap configuration. Hence,
in order to override a LED pin being active-high in case of the default,
bootloader or bootstrap setting being active-low an additional property
'active-high' is required. Document that property and make it mutually
exclusive to the existing 'active-low' property.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/e9b15613a81129ceecb07ec51f71bbe75425ad2e.1728558223.git.daniel@makrotopia.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Daniel Golle and committed by
Lee Jones
c161656b 6bdc6d4a

+14
+14
Documentation/devicetree/bindings/leds/common.yaml
··· 204 204 #trigger-source-cells property in the source node. 205 205 $ref: /schemas/types.yaml#/definitions/phandle-array 206 206 207 + active-high: 208 + type: boolean 209 + description: 210 + Makes LED active high. To turn the LED ON, line needs to be 211 + set to high voltage instead of low. 212 + 207 213 active-low: 208 214 type: boolean 209 215 description: ··· 232 226 description: 233 227 Maximum timeout in microseconds after which the flash LED is turned off. 234 228 Required for flash LED nodes with configurable timeout. 229 + 230 + allOf: 231 + - if: 232 + required: 233 + - active-low 234 + then: 235 + properties: 236 + active-high: false 235 237 236 238 additionalProperties: true 237 239