Re: [PATCH 4/7] leds: qcom-lpg: Add PM7550 PWM compatible
From: Konrad Dybcio
Date: Tue Dec 01 2026 - 07:44:32 EST
On 11/27/26 9:49 AM, Vishnu Saini wrote:
> PM7550 provides an LPG block compatible with the PM8350C PWM programming
> model.
>
> Add the PM7550 PWM compatible to the LPG OF match table and reuse the
> existing PM8350C PWM data.
>
> Signed-off-by: Vishnu Saini <vishnu.saini@xxxxxxxxxxxxxxxx>
> ---
> drivers/leds/rgb/leds-qcom-lpg.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c
> index 98e39e03b9a1..6c9cbc75bbfb 100644
> --- a/drivers/leds/rgb/leds-qcom-lpg.c
> +++ b/drivers/leds/rgb/leds-qcom-lpg.c
> @@ -1827,6 +1827,7 @@ static const struct of_device_id lpg_of_table[] = {
> { .compatible = "qcom,pm660l-lpg", .data = &pm660l_lpg_data },
> { .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data },
> { .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data },
> + { .compatible = "qcom,pm7550-pwm", .data = &pm8350c_pwm_data },
This is out of sorting order. Are the PM7550 and PM8350C blocks
1:1 identical? In that case, you could use a fallback compatible
Konrad
> { .compatible = "qcom,pm8350c-pwm", .data = &pm8350c_pwm_data },
> { .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data },
> { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data },
>