* [PATCH 0/2] leds: lp55xx: support disabling the charge pump
@ 2022-10-28 13:34 Maarten Zanders
2022-10-28 13:34 ` [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump Maarten Zanders
0 siblings, 1 reply; 5+ messages in thread
From: Maarten Zanders @ 2022-10-28 13:34 UTC (permalink / raw)
Cc: Maarten Zanders, devicetree, Jacek Anaszewski, linux-kernel,
linux-leds, Pavel Machek
A new option in the devicetree "ti,disable-charge-pump" disables the internal
charge pump. This can be used to avoid current flowing into the Vout pin when
an external supply has been connected to drive the LEDs.
Maarten Zanders (2):
dt-bindings: leds-lp55xx: add ti,disable-charge-pump
leds: lp55xx: add option to disable charge pump
.../devicetree/bindings/leds/leds-lp55xx.yaml | 5 +++++
drivers/leds/leds-lp5521.c | 6 ++++--
drivers/leds/leds-lp5523.c | 15 +++++++++++----
drivers/leds/leds-lp55xx-common.c | 3 +++
drivers/leds/leds-lp8501.c | 5 ++++-
include/linux/platform_data/leds-lp55xx.h | 3 +++
6 files changed, 30 insertions(+), 7 deletions(-)
base-commit: 5f52a8ba7e91215c3d046d298fb328d1b9f7897d
--
2.37.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump
2022-10-28 13:34 [PATCH 0/2] leds: lp55xx: support disabling the charge pump Maarten Zanders
@ 2022-10-28 13:34 ` Maarten Zanders
2022-10-28 22:07 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Maarten Zanders @ 2022-10-28 13:34 UTC (permalink / raw)
To: Pavel Machek, Rob Herring, Krzysztof Kozlowski, Jacek Anaszewski
Cc: Maarten Zanders, linux-leds, devicetree, linux-kernel
Add a binding to disable the internal charge pump for lp55xx.
Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
---
Documentation/devicetree/bindings/leds/leds-lp55xx.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
index 7ec676e53851..9eb8d1017402 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
@@ -64,6 +64,11 @@ properties:
'#size-cells':
const: 0
+ ti,disable-charge-pump:
+ description: |
+ Disable the internal charge pump.
+ type: boolean
+
patternProperties:
"(^led@[0-9a-f]$|led)":
type: object
--
2.37.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump
2022-10-28 13:34 ` [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump Maarten Zanders
@ 2022-10-28 22:07 ` Krzysztof Kozlowski
2022-10-29 7:48 ` Maarten Zanders
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-10-28 22:07 UTC (permalink / raw)
To: Maarten Zanders, Pavel Machek, Rob Herring, Krzysztof Kozlowski,
Jacek Anaszewski
Cc: linux-leds, devicetree, linux-kernel
On 28/10/2022 09:34, Maarten Zanders wrote:
> Add a binding to disable the internal charge pump for lp55xx.
>
> Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
> ---
> Documentation/devicetree/bindings/leds/leds-lp55xx.yaml | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
> index 7ec676e53851..9eb8d1017402 100644
> --- a/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
> +++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.yaml
> @@ -64,6 +64,11 @@ properties:
> '#size-cells':
> const: 0
>
> + ti,disable-charge-pump:
> + description: |
Drop |
> + Disable the internal charge pump.
Does it mean that it is enabled by default?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump
2022-10-28 22:07 ` Krzysztof Kozlowski
@ 2022-10-29 7:48 ` Maarten Zanders
2022-11-02 16:19 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Maarten Zanders @ 2022-10-29 7:48 UTC (permalink / raw)
To: Krzysztof Kozlowski, Pavel Machek, Rob Herring,
Krzysztof Kozlowski, Jacek Anaszewski
Cc: linux-leds, devicetree, linux-kernel
On 10/29/22 00:07, Krzysztof Kozlowski wrote:
> Drop |
OK.
>> + Disable the internal charge pump.
> Does it mean that it is enabled by default?
The device default after reset is "off".
The current implementation sets it to "auto".
Other possible modes are "bypass" and "boost".
Should I change to an optional "ti,charge_pump_mode" as string and set
default to "auto"?
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump
2022-10-29 7:48 ` Maarten Zanders
@ 2022-11-02 16:19 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-11-02 16:19 UTC (permalink / raw)
To: Maarten Zanders, Pavel Machek, Rob Herring, Krzysztof Kozlowski,
Jacek Anaszewski
Cc: linux-leds, devicetree, linux-kernel
On 29/10/2022 03:48, Maarten Zanders wrote:
>
> On 10/29/22 00:07, Krzysztof Kozlowski wrote:
>> Drop |
> OK.
>>> + Disable the internal charge pump.
>> Does it mean that it is enabled by default?
>
> The device default after reset is "off".
> The current implementation sets it to "auto".
> Other possible modes are "bypass" and "boost".
>
> Should I change to an optional "ti,charge_pump_mode" as string and set
> default to "auto"?
enum makes more sense in that case. Just don't user underscores in
property names.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-02 16:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28 13:34 [PATCH 0/2] leds: lp55xx: support disabling the charge pump Maarten Zanders
2022-10-28 13:34 ` [PATCH 1/2] dt-bindings: leds-lp55xx: add ti,disable-charge-pump Maarten Zanders
2022-10-28 22:07 ` Krzysztof Kozlowski
2022-10-29 7:48 ` Maarten Zanders
2022-11-02 16:19 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).