Add support for PMH0101 PWM modules which are compatible with the PM8350c
PWM modules.
Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
---
Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml
index c4b7e57b2518..3da0fe532e74 100644
--- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml
@@ -43,6 +43,7 @@ properties:
- items:
- enum:
- qcom,pm8550-pwm
+ - qcom,pmh0101-pwm
- const: qcom,pm8350c-pwm
- items:
- enum:
--
2.25.1
On Mon, Dec 15, 2025 at 04:41:04PM +0530, Jishnu Prakash wrote: > Add support for PMH0101 PWM modules which are compatible with the PM8350c > PWM modules. > > Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com> > Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com> > --- > Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 1 + > 1 file changed, 1 insertion(+) So how many nvmem entries it has? You need to define it in schema. Best regards, Krzysztof
Hi Krzysztof,
On 12/17/2025 1:45 PM, Krzysztof Kozlowski wrote:
> On Mon, Dec 15, 2025 at 04:41:04PM +0530, Jishnu Prakash wrote:
>> Add support for PMH0101 PWM modules which are compatible with the PM8350c
>> PWM modules.
>>
>> Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com>
>> Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com>
>> ---
>> Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>
> So how many nvmem entries it has? You need to define it in schema.
>
PMH0101 PWM has 2 nvmem entries, the same as PM8350C. But I see that
PM8550 PWM was earlier added under the "if:then" condition for the number
of nvmem entries and you made this change which removed that line:
https://lore.kernel.org/all/20240226073713.19045-1-krzysztof.kozlowski@linaro.org/
dt-bindings: leds: qcom-lpg: Drop redundant qcom,pm8550-pwm in if:then:
"qcom,pm8550-pwm" is compatible with "qcom,pm8350c-pwm" (latter used as
fallback), thus it is enough for the "if:then:" clause to check for the
presence of the fallback "qcom,pm8350c-pwm".
PMH0101 PWM would be the same as it also has PM8350C PWM as fallback.
Do you prefer that I add it or not?
Thanks,
Jishnu
> Best regards,
> Krzysztof
>
On 22/12/2025 14:06, Jishnu Prakash wrote: > Hi Krzysztof, > > On 12/17/2025 1:45 PM, Krzysztof Kozlowski wrote: >> On Mon, Dec 15, 2025 at 04:41:04PM +0530, Jishnu Prakash wrote: >>> Add support for PMH0101 PWM modules which are compatible with the PM8350c >>> PWM modules. >>> >>> Signed-off-by: Jingyi Wang <jingyi.wang@oss.qualcomm.com> >>> Signed-off-by: Jishnu Prakash <jishnu.prakash@oss.qualcomm.com> >>> --- >>> Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 1 + >>> 1 file changed, 1 insertion(+) >> >> So how many nvmem entries it has? You need to define it in schema. >> > > PMH0101 PWM has 2 nvmem entries, the same as PM8350C. But I see that > PM8550 PWM was earlier added under the "if:then" condition for the number > of nvmem entries and you made this change which removed that line: Right, code is fine. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Best regards, Krzysztof
On Mon, 15 Dec 2025 16:41:04 +0530, Jishnu Prakash wrote:
> Add support for PMH0101 PWM modules which are compatible with the PM8350c
> PWM modules.
>
>
Applied, thanks!
[1/2] dt-bindings: leds: leds-qcom-lpg: Add support for PMH0101 PWM
commit: f23ead3e84085cb6119ff07584b9e30a89ee30c4
--
Lee Jones [李琼斯]
© 2016 - 2026 Red Hat, Inc.