Skip to content

Commit c161656

Browse files
dangowrtlag-linaro
authored andcommitted
dt-bindings: leds: Add 'active-high' property
Other than described in commit c94d178 ("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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/e9b15613a81129ceecb07ec51f71bbe75425ad2e.1728558223.git.daniel@makrotopia.org Signed-off-by: Lee Jones <[email protected]>
1 parent 6bdc6d4 commit c161656

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ properties:
204204
#trigger-source-cells property in the source node.
205205
$ref: /schemas/types.yaml#/definitions/phandle-array
206206

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+
207213
active-low:
208214
type: boolean
209215
description:
@@ -227,6 +233,14 @@ properties:
227233
Maximum timeout in microseconds after which the flash LED is turned off.
228234
Required for flash LED nodes with configurable timeout.
229235

236+
allOf:
237+
- if:
238+
required:
239+
- active-low
240+
then:
241+
properties:
242+
active-high: false
243+
230244
additionalProperties: true
231245

232246
examples:

0 commit comments

Comments
 (0)