diff options
| author | LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn> | 2025-11-17 05:45:08 +0000 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-11-20 12:20:14 +0000 |
| commit | d7dca03a48e2e95b4469d3e3a1ef23065d90f98b (patch) | |
| tree | 4347cd43c52a1bc942cd48126e871d352aaaf592 | |
| parent | 88aa23c12888348bb4910e75a6088f0affc86923 (diff) | |
dt-bindings: leds: pwm: Add enable-gpios property
Some PWM LED driver chips like TPS92380 and LT3743 require a separate
enable signal in addition to PWM control. Add this property to allow
device trees to specify such GPIO, which will be controlled
automatically by the driver based on the LED brightness state.
Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20251117054511.730246-1-Qing-wu.Li@leica-geosystems.com.cn
Signed-off-by: Lee Jones <lee@kernel.org>
| -rw-r--r-- | Documentation/devicetree/bindings/leds/leds-pwm.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.yaml b/Documentation/devicetree/bindings/leds/leds-pwm.yaml index 61b97e8bc36d..6c4fcefbe25f 100644 --- a/Documentation/devicetree/bindings/leds/leds-pwm.yaml +++ b/Documentation/devicetree/bindings/leds/leds-pwm.yaml @@ -40,6 +40,13 @@ patternProperties: initialization. If the option is not set then max brightness is used. $ref: /schemas/types.yaml#/definitions/uint32 + enable-gpios: + description: + GPIO for LED hardware enable control. Set active when brightness is + non-zero and inactive when brightness is zero. + The GPIO default state follows the "default-state" property. + maxItems: 1 + required: - pwms - max-brightness |
