Commit d7dca03a authored by LI Qingwu's avatar LI Qingwu Committed by Lee Jones
Browse files

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: default avatarLI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20251117054511.730246-1-Qing-wu.Li@leica-geosystems.com.cn


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 88aa23c1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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