From fa1e6bf70707c9b2426ea516c557a8497d23e3bf Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Fri, 26 Feb 2021 13:12:27 +0530 Subject: [PATCH] dt-bindings: backlight: Add support for exponential dimming Add support to enable writing a lookup table of brightness values into WLED_SINK peripheral to enable more granular control over brightness, to help end user see brightness change smoothly instead of in visible steps. Change-Id: Ieecd52f2af5f8b3d2daea8ff1cd5e8b51e2ad5c6 --- bindings/leds/backlight/qcom-spmi-wled.txt | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/bindings/leds/backlight/qcom-spmi-wled.txt b/bindings/leds/backlight/qcom-spmi-wled.txt index 884d4e4a90f4..de3ea8558edf 100644 --- a/bindings/leds/backlight/qcom-spmi-wled.txt +++ b/bindings/leds/backlight/qcom-spmi-wled.txt @@ -10,9 +10,9 @@ platforms. The PMIC is connected to the host processor via SPMI bus. Definition: should be one of the below. "qcom,pmi8998-spmi-wled", "qcom,pm8150l-spmi-wled", - "qcom,pm6150l-spmi-wled" - "qcom,pm660l-spmi-wled" - "qcom,pm7325b-spmi-wled" + "qcom,pm6150l-spmi-wled", + "qcom,pm660l-spmi-wled", + "qcom,pm7325b-spmi-wled", - reg Usage: required @@ -158,6 +158,22 @@ platforms. The PMIC is connected to the host processor via SPMI bus. For details about IIO bindings see: Documentation/devicetree/bindings/iio/iio-bindings.txt +- qcom,use-exp-dimming + Usage: optional + Value type: + Definition: Specifies that exponential dimming lookup table values + should be used. + +- qcom,exp-dimming-map + Usage: optional + Value type: + Definition: It specifies a table of brightness values that can be programmed + into WLED_SINK for exponential dimming which provides smooth brightness + change. There should be exactly 256 values in the table and they should + be at most 15 bits long. This table would be used only if the + "qcom,use-exp-dimming" property is set. This feature is supported from + PM7325B onwards. + Following properties are for child subnodes that are needed for WLED preflash (or torch), flash and switch. These child subnodes can be specified only for PMICs that has WLED5 (e.g. PM8150L).