[PATCH V5 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5

2021-03-18 Thread Kiran Gunda
adopting the common wled3_sync_toggle() for WLED5 and introducing new code to the brightness update path to compensate. Signed-off-by: Kiran Gunda Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff

[PATCH V5 0/2] Fix WLED FSC Sync and brightness Sync settings

2021-03-18 Thread Kiran Gunda
Updated the cover letter with "set" and "clear" terminology instead of "1" and "0". Changes from V1: 1. Updated the cover letter. 2. Updated the description of the patches as per Daniel's suggestion. Kiran Gunda (2): ba

[PATCH V5 2/2] backlight: qcom-wled: Correct the sync_toggle sequence

2021-03-18 Thread Kiran Gunda
guarantee such a transition regardless of the previous register state. Signed-off-by: Kiran Gunda Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video

[PATCH V4 2/2] backlight: qcom-wled: Correct the sync_toggle sequence

2021-03-01 Thread Kiran Gunda
guarantee such a transition regardless of the previous register state. Signed-off-by: Kiran Gunda Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video

[PATCH V4 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5

2021-03-01 Thread Kiran Gunda
adopting the common wled3_sync_toggle() for WLED5 and introducing new code to the brightness update path to compensate. Signed-off-by: Kiran Gunda Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff

[PATCH V4 0/2] Fix WLED FSC Sync and brightness Sync settings

2021-03-01 Thread Kiran Gunda
patch 1/2. 2. Updated the patch 2/2 description with "set" and "clear" terminology instead of "1" and "0". 3. Updated the cover letter with "set" and "clear" terminology instead of "1" and "0". Changes from V

[PATCH V3 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5

2021-03-01 Thread Kiran Gunda
adopting the common wled3_sync_toggle() for WLED5 and introducing new code to the brightness update path to compensate. Signed-off-by: Kiran Gunda Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff

[PATCH V3 2/2] backlight: qcom-wled: Correct the sync_toggle sequence

2021-03-01 Thread Kiran Gunda
order to guarantee such a transition regardless of the previous register state. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom

[PATCH V3 0/2] Fix WLED FSC Sync and brightness Sync settings

2021-03-01 Thread Kiran Gunda
t; terminology instead of "1" and "0". Changes from V1: 1. Updated the cover letter. 2. Updated the description of the patches as per Daniel's suggestion. Kiran Gunda (2): backlight: qcom-wled: Fix FSC update issue for WLED5

[PATCH V2 2/2] backlight: qcom-wled: Correct the sync_toggle sequence

2021-02-26 Thread Kiran Gunda
guarantee such a transition regardless of the previous register state. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index

[PATCH V2 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5

2021-02-26 Thread Kiran Gunda
adopting the common wled3_sync_toggle() for WLED5 and introducing new code to the brightness update path to compensate. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/video

[PATCH V2 0/2] Fix WLED FSC Sync and brightness Sync settings

2021-02-26 Thread Kiran Gunda
the cover letter. 2. Updated the description of the patches as per Daniel's suggestion. Kiran Gunda (2): backlight: qcom-wled: Fix FSC update issue for WLED5 backlight: qcom-wled: Correct the sync_toggle sequence drivers/video/backlight/qcom-wled.c

[PATCH V1 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5

2021-02-23 Thread Kiran Gunda
Currently, for WLED5, after FSC register update MOD_SYNC_BIT is toggled instead of SYNC_BIT. MOD_SYNC_BIT has to be toggled after the brightness update and SYNC_BIT has to be toggled after FSC update for WLED5. Fix it. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 25

[PATCH V1 2/2] backlight: qcom-wled: Correct the sync_toggle sequence

2021-02-23 Thread Kiran Gunda
Currently the FSC SYNC_BIT and MOD_SYNC_BIT are toggled from 1 to 0 to update the FSC and brightenss settings. Change this sequence form 0 to 1 as per the hardware team recommendation to update the FSC and brightness correctly. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c

[PATCH V1 0/2] Fix WLED FSC Sync and brightness Sync settings

2021-02-23 Thread Kiran Gunda
The FSC (Full scale current) setting is not updated properly due to the wrong register toggling for WLED5. Also the ILED_SYNC toggle and MOD_SYNC toggle sequence is updated as per the hardware team recommendation to fix the FSC update and brightness update issue. Kiran Gunda (2): backlight

[PATCH V1 1/2] backlight: qcom-wled: Fix FSC update issue for WLED5

2021-02-19 Thread Kiran Gunda
Currently, for WLED5, after FSC register update MOD_SYNC_BIT is toggled instead of SYNC_BIT. MOD_SYNC_BIT has to be toggled after the brightness update and SYNC_BIT has to be toggled after FSC update for WLED5. Fix it. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 25

[PATCH V1 0/2] Fix WLED FSC Sync and brightness Sync settings

2021-02-19 Thread Kiran Gunda
The FSC (Full scale current) setting is not updated properly due to the wrong register toggling for WLED5. Also the ILED_SYNC toggle and MOD_SYNC toggle sequence is updated as per the hardware team recommendation to fix the FSC update and brightness update issue. Kiran Gunda (2): backlight

[PATCH V1 2/2] backlight: qcom-wled: Correct the sync_toggle sequence

2021-02-19 Thread Kiran Gunda
Currently the FSC SYNC_BIT and MOD_SYNC_BIT are toggled from 1 to 0 to update the FSC and brightenss settings. Change this sequence form 0 to 1 as per the hardware team recommendation to update the FSC and brightness correctly. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c

[PATCH V6 0/4] Add support for WLED5

2020-04-23 Thread Kiran Gunda
t; callback as per Daniel Thomson suggestion from patch #2. - Addressed comments from Daniel Thomson on patch #4. Kiran Gunda (3): backlight: qcom-wled: convert the wled bindings to .yaml format backlight: qcom-wled: Add callback functions backlight: qcom-wled: Add W

[PATCH V6 4/4] backlight: qcom-wled: Add support for WLED5 peripheral that is present on PM8150L PMICs

2020-04-23 Thread Kiran Gunda
: Subbaraman Narayanamurthy Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 378 +++- 1 file changed, 376 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index 7b0095e..c25c311

[PATCH V6 3/4] backlight: qcom-wled: Add WLED5 bindings

2020-04-23 Thread Kiran Gunda
Add WLED5 specific bindings. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.yaml | 59 -- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/Documentation

[PATCH V6 1/4] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-04-23 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Also replace PM8941 to WLED3 and PMI8998 to WLED4. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 154 --- .../bindings

[PATCH V6 2/4] backlight: qcom-wled: Add callback functions

2020-04-23 Thread Kiran Gunda
Add wled_cabc_config, wled_sync_toggle, wled_ovp_fault_status and wled_ovp_delay and wled_auto_detection_required callback functions to prepare the driver for adding WLED5 support. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy Reviewed-by: Daniel Thompson --- drivers

[PATCH V5 4/4] backlight: qcom-wled: Add support for WLED5 peripheral that is present on PM8150L PMICs

2020-04-08 Thread Kiran Gunda
: Subbaraman Narayanamurthy Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 443 +++- 1 file changed, 442 insertions(+), 1 deletion(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index a6ddaa9..3a57011 100644

[PATCH V5 0/4] Add support for WLED5

2020-04-08 Thread Kiran Gunda
;backlight: qcom-wled: Add callback functions" Kiran Gunda (3): backlight: qcom-wled: convert the wled bindings to .yaml format backlight: qcom-wled: Add callback functions backlight: qcom-wled: Add WLED5 bindings Subbaraman Narayanamurthy (1): backlight: qcom-wled: Add support for W

[PATCH V5 3/4] backlight: qcom-wled: Add WLED5 bindings

2020-04-08 Thread Kiran Gunda
Add WLED5 specific bindings. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy --- .../bindings/leds/backlight/qcom-wled.yaml | 60 -- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/backlight

[PATCH V5 2/4] backlight: qcom-wled: Add callback functions

2020-04-08 Thread Kiran Gunda
Add wled_cabc_config, wled_sync_toggle, wled_ovp_fault_status and wled_ovp_delay and wled_auto_detection_required callback functions to prepare the driver for adding WLED5 support. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy --- drivers/video/backlight/qcom-wled.c | 216

[PATCH V5 1/4] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-04-07 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Also replace PM8941 to WLED3 and PMI8998 to WLED4. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 154

[PATCH V4 0/4] Add support for WLED5

2020-03-24 Thread Kiran Gunda
anges - Squashed wled5 auto string detection and wled5 basic changes to avoid the NULL callback function pointer issue. Kiran Gunda (3): backlight: qcom-wled: convert the wled bindings to .yaml format backlight: qcom-wled: Add callback functions backlight: qcom-wled: Add WLED5 bin

[PATCH V4 3/4] backlight: qcom-wled: Add WLED5 bindings

2020-03-24 Thread Kiran Gunda
Add WLED5 specific bindings. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy --- .../bindings/leds/backlight/qcom-wled.yaml | 39 ++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml b

[PATCH V4 2/4] backlight: qcom-wled: Add callback functions

2020-03-24 Thread Kiran Gunda
cable for WLED4 and WLED5. wled_ovp_delay() ===> Provides the time to wait before checking the OVP status after wled module enable. It is applicable for WLED4 and WLED5. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-

[PATCH V4 4/4] backlight: qcom-wled: Add support for WLED5 peripheral in PM8150L

2020-03-24 Thread Kiran Gunda
brightness width selection (12 bits to 15 bits) Signed-off-by: Subbaraman Narayanamurthy Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 427 +++- 1 file changed, 424 insertions(+), 3 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c

[PATCH V4 1/4] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-03-24 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda Signed-off-by: Subbaraman Narayanamurthy Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 154 - .../bindings/leds/backlight/qcom-wled.yaml | 184

[PATCH V3 0/4] Add support for WLED5

2020-03-10 Thread Kiran Gunda
: - Addressed Bjorn's comments by splitting the WLED4 changes in a seperate patch. - Added WLED5 auto calibration support Kiran Gunda (4): backlight: qcom-wled: convert the wled bindings to .yaml format backlight: qcom-wled: Add callbacks functions backlight: qcom

[PATCH V3 4/4] backlight: qcom-wled: Update auto calibration support for WLED5

2020-03-10 Thread Kiran Gunda
calibration to fix the sink configuration. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 90 - 1 file changed, 88 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index edbbcb2

[PATCH V3 2/4] backlight: qcom-wled: Add callback functions

2020-03-10 Thread Kiran Gunda
Add cabc_config, sync_toggle, wled_ovp_fault_status and wled_ovp_delay callback functions to prepare the driver for adding WLED5 support. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 196 +++- 1 file changed, 126 insertions(+), 70

[PATCH V3 1/4] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-03-10 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-wled.txt | 154 - .../bindings/leds/backlight/qcom-wled.yaml | 184 + 2 files changed, 184 insertions(+), 154 deletions

[PATCH V3 3/4] backlight: qcom-wled: Add support for WLED5 peripheral in PM8150L

2020-03-10 Thread Kiran Gunda
Add support for WLED5 peripheral that is present on PM8150L PMICs. PM8150L WLED supports the following: - Two modulators and each sink can use any of the modulator - Multiple CABC selection options - Multiple brightness width selection (12 bits to 15 bits) Signed-off-by: Kiran Gunda

[PATCH V2 1/2] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-03-05 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-wled.txt | 154 - .../bindings/leds/backlight/qcom-wled.yaml | 184 + 2 files changed, 184 insertions(+), 154 deletions

[PATCH V2 0/2] Add support for WLED5

2020-03-05 Thread Kiran Gunda
modulators and each sink can use any of the modulator - Multiple CABC selection options - Multiple brightness width selection (12 bits to 15 bits) Changes from V1: - Rebased on top of the below commit. backlight: qcom-wled: Fix unsigned comparison to zero Kiran Gunda (2

[PATCH V2 2/2] backlight: qcom-wled: Add support for WLED5 peripheral in PM8150L

2020-03-05 Thread Kiran Gunda
Add support for WLED5 peripheral that is present on PM8150L PMICs. PM8150L WLED supports the following. - Two modulators and each sink can use any of the modulator - Multiple CABC selection options - Multiple brightness width selection (12 bits to 15 bits) Signed-off-by: Kiran Gunda

[PATCH V1 1/2] backlight: qcom-wled: convert the wled bindings to .yaml format

2020-03-03 Thread Kiran Gunda
Convert the qcom-wled bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-wled.txt | 154 - .../bindings/leds/backlight/qcom-wled.yaml | 184 + 2 files changed, 184 insertions(+), 154 deletions

[PATCH V1 0/2] Add support for WLED5

2020-03-03 Thread Kiran Gunda
modulators and each sink can use any of the modulator - Multiple CABC selection options - Multiple brightness width selection (12 bits to 15 bits) Kiran Gunda (2): backlight: qcom-wled: convert the wled bindings to .yaml format backlight: qcom-wled: Add support for WLED5 peripheral in

[PATCH V1 2/2] backlight: qcom-wled: Add support for WLED5 peripheral in PM8150L

2020-03-03 Thread Kiran Gunda
Add support for WLED5 peripheral that is present on PM8150L PMICs. PM8150L WLED supports the following. - Two modulators and each sink can use any of the modulator - Multiple CABC selection options - Multiple brightness width selection (12 bits to 15 bits) Signed-off-by: Kiran Gunda

[PATCH V10 3/8] backlight: qcom-wled: Add new properties for PMI8998.

2019-11-01 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 74 ++ 1 file changed, 63 insertions(+), 11

[PATCH V10 4/8] backlight: qcom-wled: Rename PM8941* to WLED3

2019-11-01 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names.

[PATCH V10 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2019-11-01 Thread Kiran Gunda
pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds

[PATCH V10 0/8] backlight: qcom-wled: Support for QCOM wled driver

2019-11-01 Thread Kiran Gunda
Reviewed-by tag of Daniel Thompson on patch 8 Kiran Gunda (8): backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c backlight: qcom-wled: restructure the qcom-wled bindings. backlight: qcom-wled: Add new properties for PMI8998. backlight: qcom-wled: Rename PM8941* to WLED3 backl

[PATCH V10 2/8] backlight: qcom-wled: restructure the qcom-wled bindings.

2019-11-01 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds/backlight/qcom-wled.txt | 110 - 1 file changed

[PATCH V10 6/8] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-11-01 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 255

[PATCH V10 8/8] backlight: qcom-wled: Add auto string detection logic

2019-11-01 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 400 +++- 1 file changed, 394 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index

[PATCH V10 5/8] backlight: qcom-wled: Restructure the driver for WLED3.

2019-11-01 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git a/drivers/video/backlight

[PATCH V10 7/8] backlight: qcom-wled: add support for short circuit handling.

2019-11-01 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson

[PATCH V9 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-23 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 400 +++- 1 file changed, 394 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index 658b1e0..33b6007 100644 --- a

[PATCH V9 0/6] backlight: qcom-wled: Support for QCOM wled driver

2019-10-23 Thread Kiran Gunda
ries. https://lore.kernel.org/patchwork/patch/1132467/ https://lore.kernel.org/patchwork/patch/1132468/ Kiran Gunda (6): backlight: qcom-wled: Add new properties for PMI8998. backlight: qcom-wled: Rename PM8941* to WLED3 backlight: qcom-wled: Restructure the driver for WLED3. backlight:

[PATCH V9 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-23 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 255

[PATCH V9 3/6] backlight: qcom-wled: Restructure the driver for WLED3.

2019-10-23 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git a/drivers/video/backlight

[PATCH V9 5/6] backlight: qcom-wled: add support for short circuit handling.

2019-10-23 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson

[PATCH V9 2/6] backlight: qcom-wled: Rename PM8941* to WLED3

2019-10-23 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names.

[PATCH V9 1/6] backlight: qcom-wled: Add new properties for PMI8998.

2019-10-23 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 74 ++ 1 file changed, 63 insertions(+), 11

[PATCH V7 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-18 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- drivers/video/backlight/qcom-wled.c | 263

[PATCH V8 1/6] backlight: qcom-wled: Add new properties for PMI8998.

2019-10-18 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 74 ++ 1 file changed, 63 insertions(+), 11

[PATCH V8 2/6] backlight: qcom-wled: Rename PM8941* to WLED3

2019-10-18 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names.

[PATCH V8 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-18 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 398 +++- 1 file changed, 392 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index 658b1e0..b2e6754 100644 --- a

[PATCH V8 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-18 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- drivers/video/backlight/qcom-wled.c | 255

[PATCH V8 5/6] backlight: qcom-wled: add support for short circuit handling.

2019-10-18 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Daniel Thompson

[PATCH V8 3/6] backlight: qcom-wled: Restructure the driver for WLED3.

2019-10-18 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git a/drivers/video/backlight

[PATCH V8 0/6] backlight: qcom-wled: Support for QCOM wled driver

2019-10-18 Thread Kiran Gunda
2467/ https://lore.kernel.org/patchwork/patch/1132468/ Kiran Gunda (6): backlight: qcom-wled: Add new properties for PMI8998. backlight: qcom-wled: Rename PM8941* to WLED3 backlight: qcom-wled: Restructure the driver for WLED3. backlight: qcom-wled: Add support for WLED4 peripheral. backl

[PATCH V7 3/6] backlight: qcom-wled: Restructure the driver for WLED3

2019-10-16 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 373 ++-- 1 file changed, 234 insertions(+), 139 deletions(-) diff --git a/drivers/video/backlight

[PATCH V7 6/6] backlight: qcom-wled: Add auto string detection logic

2019-10-16 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 410 +++- 1 file changed, 404 insertions(+), 6 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index b5b125c..ff7c409 100644 --- a

[PATCH V7 5/6] backlight: qcom-wled: add support for short circuit handling.

2019-10-16 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- drivers/video/backlight/qcom

[PATCH V7 1/6] backlight: qcom-wled: Add new properties for PMI8998

2019-10-16 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 74 ++ 1 file changed, 63 insertions(+), 11

[PATCH V7 2/6] backlight: qcom-wled: Rename PM8941* to WLED3.

2019-10-16 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names.

[PATCH V7 0/6] backlight: qcom-wled: Support for QCOM wled driver

2019-10-16 Thread Kiran Gunda
2467/ https://lore.kernel.org/patchwork/patch/1132468/ Kiran Gunda (6): backlight: qcom-wled: Add new properties for PMI8998 backlight: qcom-wled: Rename PM8941* to WLED3. backlight: qcom-wled: Restructure the driver for WLED3 backlight: qcom-wled: Add support for WLED4 peripheral. backl

[PATCH V6 8/8] backlight: qcom-wled: Add auto string detection logic

2019-09-29 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 402 +++- 1 file changed, 397 insertions(+), 5 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index 556c734..7a1d3ae 100644 --- a

[PATCH V6 5/8] backlight: qcom-wled: Restructure the driver for WLED3

2019-09-29 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- drivers/video/backlight/qcom-wled.c | 395 ++-- 1 file changed, 245 insertions(+), 150 deletions(-) diff --git a/drivers/video/backlight

[PATCH V6 6/8] backlight: qcom-wled: Add support for WLED4 peripheral

2019-09-29 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- drivers/video/backlight/qcom-wled.c | 263

[PATCH V6 7/8] backlight: qcom-wled: add support for short circuit handling.

2019-09-29 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Change-Id: Ia3f5272e1a50927467611bef4a0d2218dbeb95e6 Signed-off-by: Kiran Gunda Reviewed-by

[PATCH V6 3/8] backlight: qcom-wled: Add new properties for PMI8998

2019-09-29 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- .../bindings/leds/backlight/qcom-wled.txt | 76 ++ 1 file changed, 62 insertions(+), 14

[PATCH V6 4/8] backlight: qcom-wled: Rename PM8941* to WLED3

2019-09-29 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names.

[PATCH V6 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2019-09-29 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds/backlight/qcom-wled.txt | 110 - 1 file changed

[PATCH V6 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2019-09-29 Thread Kiran Gunda
pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Pavel Machek --- .../bindings/leds

[PATCH V6 0/8] backlight: qcom-wled: Support for QCOM wled driver

2019-09-29 Thread Kiran Gunda
d comments from Bjorn/Pavel Kiran Gunda (8): backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c backlight: qcom-wled: restructure the qcom-wled bindings backlight: qcom-wled: Add new properties for PMI8998 backlight: qcom-wled: Rename PM8941* to WLED3 backlight: qcom-wled: Restruc

[PATCH V5 8/8] backlight: qcom-wled: Add auto string detection logic

2018-08-27 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda --- Changes from V3: - Optimized the wled_ovp_work - pr_err/pr_dbg to dev_err/dev_dbg - removed un-necessary variable initializations - Addressed few other comments from Bjorn Changes from V4: - Passing jiffies to schedule_delayed_work

[PATCH V5 0/8] backlight: qcom-wled: Support for QCOM wled driver

2018-08-27 Thread Kiran Gunda
tags - Fixed comments from Bjorn/Vinod/Rob - Splitting the "backlight: qcom-wled: Add support for WLED4 peripheral" patch to seperate the WLED3 specific restructure. Changes from v4: - Added reviewed-by/Acked-by tags - Fixed comments from Bjorn/Daniel/Pavel Kiran Gunda (8): backl

[PATCH V5 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2018-08-27 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- Changes from V3: Added Reviewed-by and Acked-by tags. Changes from V4: None .../bindings/leds/backlight/qcom

[PATCH V5 3/8] backlight: qcom-wled: Add new properties for PMI8998

2018-08-27 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- Changes from V3: - Removed the default values. - Removed pmi8998 example. Changes from V4: - modified qcom

[PATCH V5 5/8] backlight: qcom-wled: Restructure the driver for WLED3

2018-08-27 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda Acked-by: Daniel Thompson --- Changes from V3: - This is the new patch after splitting the "backlight: qcom-wled: Add support for WLED4 peripheral" patch to seperate

[PATCH V5 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2018-08-27 Thread Kiran Gunda
pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson --- changes from V3: Added Reviewed-by and

[PATCH V5 6/8] backlight: qcom-wled: Add support for WLED4 peripheral

2018-08-27 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- Changes from V3: - The WLED3 specific changes are splitted out

[PATCH V5 4/8] backlight: qcom-wled: Rename PM8941* to WLED3

2018-08-27 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Also rename "i_boost_limit" and "i_limit" variables to "boost_i_limit" and "string_i_limit" respectively to resemble the corresponding register names.

[PATCH V5 7/8] backlight: qcom-wled: add support for short circuit handling

2018-08-27 Thread Kiran Gunda
Handle the short circuit interrupt and check if the short circuit interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the short circuit event persists. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson --- Changes from V3: - Added

[PATCH V4 8/8] backlight: qcom-wled: Add auto string detection logic

2018-07-09 Thread Kiran Gunda
damaged. Signed-off-by: Kiran Gunda --- Changes from V3: - Optimized the wled_ovp_work - pr_err/pr_dbg to dev_err/dev_dbg - removed un-necessary variable initializations - Addressed few other comments from Bjorn drivers/video/backlight/qcom-wled.c | 402

[PATCH V4 6/8] backlight: qcom-wled: Add support for WLED4 peripheral

2018-07-09 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and configurations are also different. Add support for it. Signed-off-by: Kiran Gunda --- Changes from V3: - The WLED3 specific changes are splitted out - Merged the

[PATCH V4 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2018-07-09 Thread Kiran Gunda
Restructure the qcom-wled bindings for the better readability. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring Acked-by: Daniel Thompson --- Changes from V3: Added Reviewed-by and Acked-by tags. .../bindings/leds/backlight/qcom-wled.txt

[PATCH V4 1/8] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2018-07-09 Thread Kiran Gunda
pm8941-wled.c driver is supporting the WLED peripheral on pm8941. Rename it to qcom-wled.c so that it can support WLED on multiple PMICs. Signed-off-by: Kiran Gunda Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Acked-by: Daniel Thompson --- changes from V3: Added Reviewed-by and

[PATCH V4 3/8] backlight: qcom-wled: Add new properties for PMI8998

2018-07-09 Thread Kiran Gunda
Update the bindings with the new properties used for PMI8998. Signed-off-by: Kiran Gunda --- Changes from V3: - Removed the default values. - Removed pmi8998 example. .../bindings/leds/backlight/qcom-wled.txt | 76 ++ 1 file changed, 62 insertions

[PATCH V4 0/8] backlight: qcom-wled: Support for QCOM wled driver

2018-07-09 Thread Kiran Gunda
tags - Fixed comments from Bjorn/Vinod/Rob - Splitting the "backlight: qcom-wled: Add support for WLED4 peripheral" patch to seperate the WLED3 specific restructure. Kiran Gunda (8): backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c backlight: qcom-wled: restructure the qco

[PATCH V4 4/8] backlight: qcom-wled: Rename PM8941* to WLED3

2018-07-09 Thread Kiran Gunda
Rename the PM8941* references as WLED3 to make the driver generic and have WLED support for other PMICs. Signed-off-by: Kiran Gunda --- Changes from V3: - Changed the MODULE_DESCRIPTION drivers/video/backlight/qcom-wled.c | 248 ++-- 1 file

[PATCH V4 5/8] backlight: qcom-wled: Restructure the driver for WLED3

2018-07-09 Thread Kiran Gunda
Restructure the driver to add the support for new WLED peripherals. Signed-off-by: Kiran Gunda --- Changes from V3: - This is the new patch after splitting the "backlight: qcom-wled: Add support for WLED4 peripheral" patch to seperate the WLED3 specific r

  1   2   >