[PATCH V1 00/15]: support for spmi_pmic_arb v3/v5 and bug fixes

2017-05-30 Thread Kiran Gunda
pointer dereference spmi: pmic-arb: instantiate spmi_devices at arch_initcall David Collins (1): spmi: pmic-arb: add support for HW version 5 Kiran Gunda (1): spmi: spmi-pmic-arb: enable the SPMI interrupt as a wakeup source Subbaraman Narayanamurthy (1): spmi: pmic-arb: do not ack and clear

[PATCH V1 01/15] spmi: pmic_arb: block access of invalid read and writes

2017-05-30 Thread Kiran Gunda
ber of data_channel supported. This new protection is functional on hw v2. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 84 +++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/drivers/s

[PATCH V1 06/15] spmi: pmic-arb: fix missing interrupts

2017-05-30 Thread Kiran Gunda
function and the code is much cleaner without it. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 29 +++-- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi

[PATCH V1 04/15] spmi: pmic-arb: optimize table lookups

2017-05-30 Thread Kiran Gunda
-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 144 ++- 1 file changed, 88 insertions(+), 56 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 7201611..6320f1f 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b

[PATCH V1 08/15] spmi: pmic_arb: use appropriate flow handler

2017-05-30 Thread Kiran Gunda
interrupt. That IRQF_PENDING state indicates an edge transition happened while the interrupt was being handled and the handler is called again. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH V1 09/15] spmi: pmic-arb: check apid enabled before calling the handler

2017-05-30 Thread Kiran Gunda
indeed enabled before calling the apid handler. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index ad34491

[PATCH V1 10/15] spmi: pmic_arb: add support for PMIC bus arbiter v3

2017-05-30 Thread Kiran Gunda
From: Abhijeet Dharmapurikar PMIC bus arbiter v3 supports 512 SPMI peripherals. Add the v3 operators to support this new arbiter version. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 133 +++ 1

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

2017-05-30 Thread Kiran Gunda
-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 248 ++- 1 file changed, 224 insertions(+), 24 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 412481d..b755c24 100644 --- a/drivers/spmi/spmi-pmic-arb.c

[PATCH V1 14/15] spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq

2017-05-30 Thread Kiran Gunda
this, there is a possibility of unwanted triggering of interrupt right after the latched bit is cleared - the interrupt may be left enabled too. To avoid that, clear the enable first followed by clearing the latched bit in the activate callback. Signed-off-by: Subbaraman Narayanamurthy Signed-off-by:

[PATCH V1 11/15] spmi: spmi-pmic-arb: enable the SPMI interrupt as a wakeup source

2017-05-30 Thread Kiran Gunda
Currently the SPMI interrupt will not wake the device. Enable this interrupt as a wakeup source. Signed-off-by: Nicholas Troast Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic

[PATCH V1 15/15] spmi: pmic-arb: instantiate spmi_devices at arch_initcall

2017-05-30 Thread Kiran Gunda
igned-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 767bd2c..069799c 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -1

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

2017-05-30 Thread Kiran Gunda
From: Abhijeet Dharmapurikar If "core" memory resource is not specified, the driver could end up dereferencing a null pointer. Fix this by returning -EINVAL when core resource is missing. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic

[PATCH V1 05/15] spmi: pmic-arb: cleanup unrequested irqs

2017-05-30 Thread Kiran Gunda
interrupt region. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 101 ++- 1 file changed, 43 insertions(+), 58 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index

[PATCH V1 07/15] spmi: pmic-arb: clear the latched status of the interrupt

2017-05-30 Thread Kiran Gunda
: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index bc03737..1d23df0 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b

[PATCH V1 03/15] spmi: pmic-arb: fix inconsistent use of apid and chan

2017-05-30 Thread Kiran Gunda
n registers offset by its corresponding apid. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 68 ++-- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/s

[PATCH V1 02/15] spmi: pmic-arb: rename spmi_pmic_arb_dev to spmi_pmic_arb

2017-05-30 Thread Kiran Gunda
a bit mask. Replace it with the BIT() macro. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 164 +-- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers

[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 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-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-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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 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] 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] 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 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

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

2017-07-10 Thread Kiran Gunda
Stephen Boyd. Please take this series after taking this patch in to the tree. 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

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

2017-07-10 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 3/5] spmi: pmic-arb: replace the writel_relaxed with __raw_writel

2017-07-10 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 V2 2/5] spmi: pmic-arb: rename pa_xx to pmic_arb_xx and other code cleanup

2017-07-10 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 V2 5/5] spmi: pmic-arb: use irq_chip callback to set spmi irq wakeup capability

2017-07-10 Thread Kiran Gunda
the irq_set_wake callback. Signed-off-by: Kiran Gunda --- 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 416b404..25589d6 100644 --- a/drivers/spmi/spmi-pmic-arb.c

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

2017-07-10 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 1/4] spmi: pmic-arb: return __iomem pointer instead of offset

2017-07-10 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 V2 0/4]: spmi: pmic-arb: support for V5 HW and bug fixes

2017-07-10 Thread Kiran Gunda
not less than 0 Kiran Gunda (2): spmi: pmic-arb: return __iomem pointer instead of offset spmi: pmic-arb: fix a possible null pointer dereference drivers/spmi/spmi-pmic-arb.c | 327 +++ 1 file changed, 267 insertions(+), 60 deletions(-) -- The Qual

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

2017-07-10 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 4/4] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-10 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 d992634..5114264 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers

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

2017-07-10 Thread Kiran Gunda
-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 234 +++ 1 file changed, 216 insertions(+), 18 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index c7b54a6..d992634 100644 --- a/drivers/spmi/spmi-pmic-arb.c

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

2017-07-10 Thread Kiran Gunda
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: fix a possible null pointer dereference drivers/spmi/spmi-p

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

2017-07-10 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 V3 1/4] spmi: pmic-arb: return __iomem pointer instead of offset

2017-07-10 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 V3 4/4] spmi: pmic-arb: Remove checking opc value not less than 0

2017-07-10 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 5297aa4..c2dd001 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers

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

2017-07-10 Thread Kiran Gunda
-off-by: Kiran Gunda --- drivers/spmi/spmi-pmic-arb.c | 235 +++ 1 file changed, 217 insertions(+), 18 deletions(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index c7b54a6..5297aa4 100644 --- a/drivers/spmi/spmi-pmic-arb.c

[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 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 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 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 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 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 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 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

  1   2   >