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

dt-bindings: net: phy: Make LED active-low property common

Move LED active-low property to common.yaml. This property is currently
defined multiple times by bcm LEDs. This property will now be supported
in a generic way for PHY LEDs with the use of a generic function.

With active-low bool property not defined, active-high is always
assumed.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Lee Jones <lee@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240125203702.4552-2-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Christian Marangi and committed by
Jakub Kicinski
c94d1783 5642c82b

+6 -19
+6
Documentation/devicetree/bindings/leds/common.yaml
··· 200 200 #trigger-source-cells property in the source node. 201 201 $ref: /schemas/types.yaml#/definitions/phandle-array 202 202 203 + active-low: 204 + type: boolean 205 + description: 206 + Makes LED active low. To turn the LED ON, line needs to be 207 + set to low voltage instead of high. 208 + 203 209 # Required properties for flash LED child nodes: 204 210 flash-max-microamp: 205 211 description:
-4
Documentation/devicetree/bindings/leds/leds-bcm63138.yaml
··· 52 52 maxItems: 1 53 53 description: LED pin number 54 54 55 - active-low: 56 - type: boolean 57 - description: Makes LED active low 58 - 59 55 required: 60 56 - reg 61 57
-4
Documentation/devicetree/bindings/leds/leds-bcm6328.yaml
··· 78 78 - maximum: 23 79 79 description: LED pin number (only LEDs 0 to 23 are valid). 80 80 81 - active-low: 82 - type: boolean 83 - description: Makes LED active low. 84 - 85 81 brcm,hardware-controlled: 86 82 type: boolean 87 83 description: Makes this LED hardware controlled.
-2
Documentation/devicetree/bindings/leds/leds-bcm6358.txt
··· 25 25 26 26 LED sub-node optional properties: 27 27 - label : see Documentation/devicetree/bindings/leds/common.txt 28 - - active-low : Boolean, makes LED active low. 29 - Default : false 30 28 - default-state : see 31 29 Documentation/devicetree/bindings/leds/common.txt 32 30 - linux,default-trigger : see
-4
Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
··· 41 41 42 42 pwm-names: true 43 43 44 - active-low: 45 - description: For PWMs where the LED is wired to supply rather than ground. 46 - type: boolean 47 - 48 44 color: true 49 45 50 46 required:
-5
Documentation/devicetree/bindings/leds/leds-pwm.yaml
··· 34 34 Maximum brightness possible for the LED 35 35 $ref: /schemas/types.yaml#/definitions/uint32 36 36 37 - active-low: 38 - description: 39 - For PWMs where the LED is wired to supply rather than ground. 40 - type: boolean 41 - 42 37 required: 43 38 - pwms 44 39 - max-brightness