[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 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 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 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 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 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 V5 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2020-12-30 Thread Kiran Gunda
Convert the bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 -- .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 117 + 2 files changed, 117 insertions(+), 80 deletions(-) delete

[PATCH V5 2/2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l

2020-12-30 Thread Kiran Gunda
Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms. Signed-off-by: Kiran Gunda Acked-for-MFD-by: Lee Jones Reviewed-by: Stephen Boyd --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++ drivers/mfd/qcom-spmi-pmic.c

[PATCH V5 0/2] Convert qcom,spmi-pmic bindings from .txt to .yaml

2020-12-30 Thread Kiran Gunda
n Boyd - Added "Acked-for-MFD-by" tag from Lee Jones Kiran Gunda (2): mfd: qcom-spmi-pmic: Convert bindings to .yaml format mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 -- .../devicetree/bindings/mfd/qco

[PATCH V4 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2020-12-18 Thread Kiran Gunda
Convert the bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 - .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 127 + 2 files changed, 127 insertions(+), 80 deletions(-) delete mode

[PATCH V4 2/2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l

2020-12-18 Thread Kiran Gunda
Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms. Signed-off-by: Kiran Gunda --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++ drivers/mfd/qcom-spmi-pmic.c | 4 2 files changed, 6 insertions

[PATCH V4 0/2] Convert qcom,spmi-pmic bindings from .txt to .yaml

2020-12-18 Thread Kiran Gunda
comments. Kiran Gunda (2): mfd: qcom-spmi-pmic: Convert bindings to .yaml format mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 - .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 129 + drivers

[PATCH V3 0/2] Convert qcom,spmi-pmic bindings from .txt to .yaml

2020-12-17 Thread Kiran Gunda
This patch series does the following: 1. converts the qcom,spmi-pmic bindings from .txt to .yaml format 2. Sorted the compatible strings 3. Adds PM6150 and PM6150L subtypes. Changes from V2: - Addressed Stephen Boyd and Rob Herring comments. Kiran Gunda (2): mfd: qcom-spmi-pmic: Convert

[PATCH V3 2/2] mfd: qcom-spmi-pmic: Add support for pm6150 and pm6150l

2020-12-17 Thread Kiran Gunda
Add the compatibles and PMIC ids for pm6150 and pm6150l PMICs found on SC7180 based platforms. Signed-off-by: Kiran Gunda --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 2 ++ drivers/mfd/qcom-spmi-pmic.c | 4 2 files changed, 6 insertions

[PATCH V3 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2020-12-17 Thread Kiran Gunda
Convert the bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 - .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 127 + 2 files changed, 127 insertions(+), 80 deletions(-) delete mode

[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 V7 4/6] backlight: qcom-wled: Add support for WLED4 peripheral.

2019-10-16 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 V1] dt-bindings: pinctrl: qcom-pmic-gpio: Add support for pm6150/pm6150l

2019-10-04 Thread Kiran Gunda
Add support for the PM6150 and PM6150L GPIO support to the Qualcomm PMIC GPIO binding. Signed-off-by: Kiran Gunda --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 4 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++ 2 files changed, 6 insertions

[PATCH V2 1/2] ARM: dts: qcom: pm6150: Add PM6150/PM6150L PMIC peripherals

2019-10-04 Thread Kiran Gunda
Add PM6150/PM6150L peripherals such as PON, GPIOs, ADC and other PMIC infra modules. Signed-off-by: Kiran Gunda --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 85 +++ arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47 +++ 2 files changed, 132 insertions

[PATCH V2 2/2] ARM: dts: qcom: sc7180-regulator: Add RPMh regulators for SC7180

2019-10-04 Thread Kiran Gunda
Add regulator devices for SC7180 as RPMh regulators. This ensures that consumers are able to modify the physical state of PMIC regulators. Signed-off-by: Kiran Gunda --- arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi | 210 + 1 file changed, 210 insertions(+) create

[PATCH V1 1/2] ARM: dts: qcom: pm6150: Add PM6150/PM6150L PMIC peripherals

2019-10-04 Thread Kiran Gunda
Add PM6150/PM6150L peripherals such as PON, GPIOs, ADC and other PMIC infra modules. Signed-off-by: Kiran Gunda --- arch/arm64/boot/dts/qcom/pm6150.dtsi | 82 +++ arch/arm64/boot/dts/qcom/pm6150l.dtsi | 47 2 files changed, 129 insertions

[PATCH V1 2/2] ARM: dts: qcom: sc7180-regulator: Add RPMh regulators for SC7180

2019-10-04 Thread Kiran Gunda
Add regulator devices for SC7180 as RPMh regulators. This ensures that consumers are able to modify the physical state of PMIC regulators. Signed-off-by: Kiran Gunda --- arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi | 210 + 1 file changed, 210 insertions(+) create

[PATCH V1] regulator: qcom-rpmh: Fix PMIC5 BoB min voltage

2019-10-04 Thread Kiran Gunda
Correct the PMIC5 BoB min voltage from 0.3V to 3V. Also correct the voltage selector accordingly. Signed-off-by: Kiran Gunda --- Depends-on: This patch depends on "Add regulator support for SC7180" drivers/regulator/qcom-rpmh-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH V1 2/2] regulator: qcom-rpmh: add PM6150/PM6150L regulator support

2019-10-04 Thread Kiran Gunda
Add support for PM6150/PM6150L regulators. This ensures that consumers are able to modify the physical state of PMIC regulators. Signed-off-by: Kiran Gunda --- drivers/regulator/qcom-rpmh-regulator.c | 62 - 1 file changed, 61 insertions(+), 1 deletion(-) diff

[PATCH V1 1/2] regulator: dt-bindings: Add PM6150x compatibles

2019-10-04 Thread Kiran Gunda
Add PM6150 and PM6150L compatibles for Qualcomm SC7180 platfrom. Signed-off-by: Kiran Gunda --- Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt b

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

2018-08-24 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 2/8] backlight: qcom-wled: restructure the qcom-wled bindings

2018-08-24 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 7/8] backlight: qcom-wled: add support for short circuit handling

2018-08-24 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 V2] thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

2018-05-24 Thread Kiran Gunda
: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/thermal/qcom-spmi-temp-alarm.c | 92 ++ 1 file changed, 71 insertions(+), 21 deletions(-) Changes from [V1]: Rebased on top of 4.17-rc6 diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c b/drivers

[PATCH V2 4/5] backlight: qcom-wled: Add support for OVP interrupt handling

2018-05-03 Thread Kiran Gunda
module is enabled, keep OVP fault interrupt disabled for 10 ms to account for soft start delay. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 118 +++- 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/qcom

[PATCH V2 5/5] backlight: qcom-wled: Add auto string detection logic

2018-05-03 Thread Kiran Gunda
interrupts are seen frequently thereby it tries to fix the sink configuration. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 302 1 file changed, 302 insertions(+) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight

[PATCH V2 3/5] backlight: qcom-wled: Add support for short circuit handling

2018-05-03 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 --- drivers/video/backlight/qcom-wled.c | 134

[PATCH V2 2/5] backlight: qcom-wled: Add support for WLED4 peripheral

2018-05-03 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and also configurations are different. Add support for it. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-wled.txt | 172 - drivers/video/backlight/qcom-wled.c

[PATCH V2 1/5] backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c

2018-05-03 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 --- .../bindings/leds/backlight/{pm8941-wled.txt => qcom-wled.txt}| 2 +- drivers/video/backlight/Kcon

[PATCH V2 0/5] backlight: qcom-wled: Support for QCOM wled driver

2018-05-03 Thread Kiran Gunda
: Rename pm8941-wled.c to qcom-wled.c Kiran Gunda (5): backlight: qcom-wled: Rename pm8941-wled.c to qcom-wled.c backlight: qcom-wled: Add support for WLED4 peripheral backlight: qcom-wled: Add support for short circuit handling backlight: qcom-wled: Add support for OVP interrupt handling

[PATCH V1 5/5] backlight: qcom-wled: Add auto string detection logic

2018-05-03 Thread Kiran Gunda
interrupts are seen frequently thereby it tries to fix the sink configuration. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 302 1 file changed, 302 insertions(+) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight

[PATCH V1 2/5] backlight: qcom-wled: Add support for WLED4 peripheral

2018-05-03 Thread Kiran Gunda
WLED4 peripheral is present on some PMICs like pmi8998 and pm660l. It has a different register map and also configurations are different. Add support for it. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-wled.txt | 172 - drivers/video/backlight/qcom-wled.c

[PATCH V1 3/5] backlight: qcom-wled: Add support for short circuit handling

2018-05-03 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 --- drivers/video/backlight/qcom-wled.c | 134

[PATCH V1 4/5] backlight: qcom-wled: Add support for OVP interrupt handling

2018-05-03 Thread Kiran Gunda
module is enabled, keep OVP fault interrupt disabled for 10 ms to account for soft start delay. Signed-off-by: Kiran Gunda --- drivers/video/backlight/qcom-wled.c | 118 +++- 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/qcom

[PATCH V1 1/5] qcom: wled: Rename pm8941-wled.c to qcom-wled.c

2018-05-03 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 --- .../bindings/leds/backlight/{pm8941-wled.txt => qcom-wled.txt}| 2 +- drivers/video/backlight/Kcon

[PATCH V1 0/5] backlight: qcom-wled: Support for QCOM wled driver

2018-05-03 Thread Kiran Gunda
) interrupts. It also has the auto calibration algorithm support to configure the right strings if the user specified string configuration is in-correct. These three features are added in this series for PMI8998. Kiran Gunda (5): qcom: wled: Rename pm8941-wled.c to qcom-wled.c backlight: qcom

[PATCH V1 3/4] qcom: spmi-wled: Add support for OVP interrupt handling

2017-11-16 Thread Kiran Gunda
module is enabled, keep OVP fault interrupt disabled for 10 ms to account for soft start delay. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-spmi-wled.txt | 7 +- drivers/video/backlight/qcom-spmi-wled.c | 83 ++ 2 files changed, 87 insertions

[PATCH V1 4/4] qcom: spmi-wled: Add auto-calibration logic support

2017-11-16 Thread Kiran Gunda
interrupts are seen frequently thereby it tries to fix the sink configuration. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-spmi-wled.txt | 5 + drivers/video/backlight/qcom-spmi-wled.c | 304 - 2 files changed, 306 insertions(+), 3 deletions

[PATCH V1 1/4] qcom: spmi-wled: Add support for qcom wled driver

2017-11-16 Thread Kiran Gunda
WLED driver provides the interface to the display driver to adjust the brightness of the display backlight. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-spmi-wled.txt | 90 drivers/video/backlight/Kconfig| 9 + drivers/video/backlight/Makefile

[PATCH V1 2/4] qcom: spmi-wled: Add support for short circuit handling

2017-11-16 Thread Kiran Gunda
Handle the short circuit(SC) interrupt and check if the SC interrupt is valid. Re-enable the module to check if it goes away. Disable the module altogether if the SC event persists. Signed-off-by: Kiran Gunda --- .../bindings/leds/backlight/qcom-spmi-wled.txt | 22 drivers/video

[PATCH V1 0/4] qcom: spmi-wled: Support for QCOM wled driver

2017-11-16 Thread Kiran Gunda
) and the SC (short circuit protection) interrupts. It also has the auto calibration algorithm support to configure the right strings if the user specified string configuration is in-correct. Kiran Gunda (4): qcom: spmi-wled: Add support for qcom wled driver qcom: spmi-wled: Add support for short

[PATCH V2] spmi: pmic-arb: Move the ownership check to irq_chip callback

2017-08-23 Thread Kiran Gunda
Check the irq ownership in the irq_request_resources callback instead of checking it during the irq mapping. This can prevent installing the flow handler for the interrupt that is not owned by the EE and allow the irq translation during the gpio driver probe. Signed-off-by: Kiran Gunda --- V2

[PATCH V1] spmi: pmic-arb: Move the ownership check to irq_chip callback

2017-08-23 Thread Kiran Gunda
Check the irq ownership in the irq_request_resources callback instead of checking it during the irq mapping. That we can prevent installing the flow handler for the interrupt that is not owned by the EE and allow the irq translation during the gpio driver probe. Signed-off-by: Kiran Gunda

[PATCH V2] spmi: pmic-arb: Enforce the ownership check optionally

2017-08-18 Thread Kiran Gunda
The peripheral ownership check is not necessary on single master platforms. Hence, enforce the peripheral ownership check optionally. Signed-off-by: Kiran Gunda Tested-by: Shawn Guo --- v2: Fixed the commit message. Added Shawn's 'Tested-by' tag. v1: Thi

[PATCH] spmi: pmic-arb: Enforce the ownership check optionally

2017-08-18 Thread Kiran Gunda
The peripheral ownership check is not necessary on single master platforms. Hence, enforce the peripheral ownership check optioanlly. Signed-off-by: Kiran Gunda --- This patch depends on the below patch series. Please take this patch along with this series. [PATCH V2 00/12]: spmi: pmic-arb

[PATCH V2 01/12] spmi: pmic-arb: remove the read/write access checks

2017-07-28 Thread Kiran Gunda
should be fixed in those locations. Hence, remove the access mode checks from the driver. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 75 +++- 1 file changed, 5 insertions(+), 70 deletions(-) diff --git a/drivers

[PATCH V2 02/12] spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other cleanup

2017-07-28 Thread Kiran Gunda
_*(). Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 418 +-- 1 file changed, 209 insertions(+), 209 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 7531519..530fa11

[PATCH V2 03/12] spmi: pmic-arb: clean up pmic_arb_find_apid function

2017-07-28 Thread Kiran Gunda
Clean up the pmic_arb_find_apid() by using the local variables to improve the code readability. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b

[PATCH V2 06/12] spmi: pmic-arb: replace the writel_relaxed with __raw_writel

2017-07-28 Thread Kiran Gunda
Replace the writel_relaxed with __raw_writel to avoid byte swapping in pmic_arb_write_data() function. That way the code is independent of the CPU endianness. Fixes: 111a10bf3e53 ("spmi: pmic-arb: rename spmi_pmic_arb_dev to spmi_pmic_arb") Signed-off-by: Kiran Gunda Reviewed-by: St

[PATCH V2 04/12] spmi: pmic-arb: optimize qpnpint_irq_set_type function

2017-07-28 Thread Kiran Gunda
Optimize the qpnpint_irq_set_type() by using a local variable to hold the handler type. Also clean up other variable usage. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 24 1 file changed, 12 insertions(+), 12 deletions

[PATCH V2 08/12] spmi: pmic-arb: use irq_chip callback to set spmi irq wakeup capability

2017-07-28 Thread Kiran Gunda
the irq_set_wake callback. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 2f9875a..f8900d3 100644 --- a

[PATCH V2 12/12] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-28 Thread Kiran Gunda
Wu Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 3f46445..ca9bdd3 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers

[PATCH V2 11/12] spmi: pmic-arb: add support for HW version 5

2017-07-28 Thread Kiran Gunda
-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 236 +++ 1 file changed, 214 insertions(+), 22 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index bc68e08..3f46445 100644 --- a

[PATCH V2 00/12]: spmi: pmic-arb: Support for HW v5 and other fixes

2017-07-28 Thread Kiran Gunda
pport for HW version 5 Fenglin Wu (1): spmi: pmic-arb: Remove checking opc value not less than 0 Kiran Gunda (10): spmi: pmic-arb: remove the read/write access checks spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other cleanup spmi: pmic-arb: clean up pmic_arb_find_apid function spmi

[PATCH V2 05/12] spmi: pmic-arb: fix memory allocation for mapping_table

2017-07-28 Thread Kiran Gunda
Allocate the correct memory size (max_pmic_peripherals) for the mapping_table that holds the apid to ppid mapping. Also use a local variable for mapping_table for better alignment of the code. Fixes: 987a9f128b8a ("spmi: pmic-arb: Support more than 128 peripherals") Signed-off-by: K

[PATCH V2 07/12] spmi: pmic-arb: return the value instead of passing by pointer

2017-07-28 Thread Kiran Gunda
function instead of passing the sid and addr. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 82 +--- 1 file changed, 40 insertions(+), 42 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi

[PATCH V2 10/12] spmi: pmic-arb: fix a possible null pointer dereference

2017-07-28 Thread Kiran Gunda
If "core" memory resource is not specified, then the driver could end up dereferencing a null pointer. Fix this issue. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH V2 09/12] spmi: pmic-arb: return __iomem pointer instead of offset

2017-07-28 Thread Kiran Gunda
Modify the pmic_arb version ops to return an __iomem pointer to the address instead of an offset. That way we do not need to care about the base address changes in the new HW version. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 93

[PATCH V1 03/12] spmi: pmic-arb: clean up pmic_arb_find_apid function

2017-07-20 Thread Kiran Gunda
Clean up the pmic_arb_find_apid() by using the local variables to improve the code readability. Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic

[PATCH V1 05/12] spmi: pmic-arb: fix memory allocation for mapping_table

2017-07-20 Thread Kiran Gunda
Allocate the correct memory size (max_pmic_peripherals) for the mapping_table that holds the apid to ppid mapping. Also use a local variable for mapping_table for better alignment of the code. Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 11 +-- 1 file changed, 5

[PATCH V1 07/12] spmi: pmic-arb: return the value instead of passing by pointer

2017-07-20 Thread Kiran Gunda
function instead of passing the sid and addr. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 82 +--- 1 file changed, 40 insertions(+), 42 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi

[PATCH V1 09/12] spmi: pmic-arb: return __iomem pointer instead of offset

2017-07-20 Thread Kiran Gunda
Modify the pmic_arb version ops to return an __iomem pointer to the address instead of an offset. That way we do not need to care about the base address changes in the new HW version. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 93

[PATCH V1 12/12] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-20 Thread Kiran Gunda
Wu Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 01559d7..8ab3f6d 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers

[PATCH V1 08/12] spmi: pmic-arb: use irq_chip callback to set spmi irq wakeup capability

2017-07-20 Thread Kiran Gunda
the irq_set_wake callback. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index fed2883a..e8c08c0 100644 --- a

[PATCH V1 11/12] spmi: pmic-arb: add support for HW version 5

2017-07-20 Thread Kiran Gunda
-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 236 +++ 1 file changed, 214 insertions(+), 22 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index c585e06..01559d7 100644 --- a

[PATCH V1 10/12] spmi: pmic-arb: fix a possible null pointer dereference

2017-07-20 Thread Kiran Gunda
If "core" memory resource is not specified, then the driver could end up dereferencing a null pointer. Fix this issue. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH V1 04/12] spmi: pmic-arb: optimize qpnpint_irq_set_type function

2017-07-20 Thread Kiran Gunda
Optimize the qpnpint_irq_set_type() by using a local variable to hold the handler type. Also clean up other variable usage. Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/spmi

[PATCH V1 01/12] spmi: pmic-arb: remove the read/write access checks

2017-07-20 Thread Kiran Gunda
should be fixed in those locations. Hence, remove the access mode checks from the driver. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 75 +++- 1 file changed, 5 insertions(+), 70 deletions(-) diff --git a/drivers

[PATCH V1 02/12] spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other cleanup

2017-07-20 Thread Kiran Gunda
_*(). Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 418 +-- 1 file changed, 209 insertions(+), 209 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 7531519..530fa11 100644 --- a/drivers/spmi/s

[PATCH V1 00/12]: spmi: pmic-arb: Support for HW v5 and other fixes

2017-07-20 Thread Kiran Gunda
reviewed by Stephen Boyd. * This series depends on the below patch uploaded by Stephen Boyd https://patchwork.kernel.org/patch/9810723/. David Collins (1): spmi: pmic-arb: add support for HW version 5 Fenglin Wu (1): spmi: pmic-arb: Remove checking opc value not less than 0 Kiran Gunda (10

[PATCH V1 06/12] spmi: pmic-arb: replace the writel_relaxed with __raw_writel

2017-07-20 Thread Kiran Gunda
Replace the writel_relaxed with __raw_writel to avoid byte swapping in pmic_arb_write_data() function. That way the code is independent of the CPU endianness. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH V4 4/4] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-18 Thread Kiran Gunda
Wu Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index d51329e..49abfa7 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers

[PATCH V4 2/4] spmi: pmic-arb: fix a possible null pointer dereference

2017-07-18 Thread Kiran Gunda
If "core" memory resource is not specified, then the driver could end up dereferencing a null pointer. Fix this issue. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH V4 1/4] spmi: pmic-arb: return __iomem pointer instead of offset

2017-07-18 Thread Kiran Gunda
Modify the pmic_arb version ops to return an __iomem pointer to the address instead of an offset. That way we do not need to care about the base address changes in the new HW version. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 87

[PATCH V4 3/4] spmi: pmic-arb: add support for HW version 5

2017-07-18 Thread Kiran Gunda
-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 236 +++ 1 file changed, 214 insertions(+), 22 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 156f776..d51329e 100644 --- a/drivers/spmi/spmi-pmic-arb.c

[PATCH V4 0/4]: spmi: pmic-arb: support for V5 HW and bug fixes

2017-07-18 Thread Kiran Gunda
el.org/patch/9822609/ https://patchwork.kernel.org/patch/9822613/ David Collins (1): spmi: pmic-arb: add support for HW version 5 Fenglin Wu (1): spmi: pmic-arb: Remove checking opc value not less than 0 Kiran Gunda (2): spmi: pmic-arb: return __iomem pointer instead of offset spmi: pmic-arb:

[PATCH V3 3/5] spmi: pmic-arb: replace the writel_relaxed with __raw_writel

2017-07-18 Thread Kiran Gunda
Replace the writel_relaxed with __raw_writel to avoid byte swapping in pmic_arb_write_data() function. That way the code is independent of the CPU endianness. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH V3 0/5]: spmi: pmic-arb: Fixup patches

2017-07-18 Thread Kiran Gunda
. https://patchwork.kernel.org/patch/9810723/ Kiran Gunda (5): spmi: pmic-arb: remove the read/write access checks spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other code cleanup spmi: pmic-arb: replace the writel_relaxed with __raw_writel spmi: pmic-arb: return the value instea

[PATCH V3 4/5] spmi: pmic-arb: return the value instead of passing by pointer

2017-07-18 Thread Kiran Gunda
function instead of passing the sid and addr. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 82 +--- 1 file changed, 40 insertions(+), 42 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi

[PATCH V3 1/5] spmi: pmic-arb: remove the read/write access checks

2017-07-18 Thread Kiran Gunda
should be fixed in those locations. Hence, remove the access mode checks from the driver. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 75 +++- 1 file changed, 5 insertions(+), 70 deletions(-) diff --git a/drivers

[PATCH V3 5/5] spmi: pmic-arb: use irq_chip callback to set spmi irq wakeup capability

2017-07-18 Thread Kiran Gunda
the irq_set_wake callback. Signed-off-by: Kiran Gunda Reviewed-by: Stephen Boyd --- drivers/spmi/spmi-pmic-arb.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 4795092..4824820 100644 --- a

[PATCH V3 2/5] spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other code cleanup

2017-07-18 Thread Kiran Gunda
q_to_*(). - Clean up qpnpint_irq_set_type() and pmic_arb_find_apid() functions. Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 453 +-- 1 file changed, 226 insertions(+), 227 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/

[PATCH V1] thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

2017-07-13 Thread Kiran Gunda
: Kiran Gunda --- drivers/thermal/qcom-spmi-temp-alarm.c | 92 ++ 1 file changed, 71 insertions(+), 21 deletions(-) diff --git a/drivers/thermal/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom-spmi-temp-alarm.c index f502419..a5e17ba 100644 --- a/drivers/thermal/qcom

  1   2   >