public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: pm8xxx: add support for PM8901
@ 2024-04-15 12:39 Herman van Hazendonk
  2024-04-15 19:31 ` Konrad Dybcio
  0 siblings, 1 reply; 3+ messages in thread
From: Herman van Hazendonk @ 2024-04-15 12:39 UTC (permalink / raw)
  To: andersson
  Cc: benwolsieffer, chris.chapuis, Herman van Hazendonk, Konrad Dybcio,
	Lee Jones, linux-arm-msm, linux-kernel

Add support for the pm8901 PMIC used by msm8660.

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
---
 drivers/mfd/qcom-pm8xxx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c
index 8b6285f687da..9cca14d54d8d 100644
--- a/drivers/mfd/qcom-pm8xxx.c
+++ b/drivers/mfd/qcom-pm8xxx.c
@@ -501,6 +501,7 @@ static const struct pm_irq_data pm8821_data = {
 static const struct of_device_id pm8xxx_id_table[] = {
 	{ .compatible = "qcom,pm8058", .data = &pm8xxx_data},
 	{ .compatible = "qcom,pm8821", .data = &pm8821_data},
+	{ .compatible = "qcom,pm8901", .data = &pm8xxx_data},
 	{ .compatible = "qcom,pm8921", .data = &pm8xxx_data},
 	{ }
 };

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mfd: pm8xxx: add support for PM8901
  2024-04-15 12:39 [PATCH] mfd: pm8xxx: add support for PM8901 Herman van Hazendonk
@ 2024-04-15 19:31 ` Konrad Dybcio
  2024-04-17  7:10   ` Dmitry Baryshkov
  0 siblings, 1 reply; 3+ messages in thread
From: Konrad Dybcio @ 2024-04-15 19:31 UTC (permalink / raw)
  To: Herman van Hazendonk, andersson
  Cc: benwolsieffer, chris.chapuis, Lee Jones, linux-arm-msm,
	linux-kernel, Krzysztof Kozlowski



On 4/15/24 14:39, Herman van Hazendonk wrote:
> Add support for the pm8901 PMIC used by msm8660.
> 
> Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
> ---
>   drivers/mfd/qcom-pm8xxx.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c
> index 8b6285f687da..9cca14d54d8d 100644
> --- a/drivers/mfd/qcom-pm8xxx.c
> +++ b/drivers/mfd/qcom-pm8xxx.c
> @@ -501,6 +501,7 @@ static const struct pm_irq_data pm8821_data = {
>   static const struct of_device_id pm8xxx_id_table[] = {
>   	{ .compatible = "qcom,pm8058", .data = &pm8xxx_data},
>   	{ .compatible = "qcom,pm8821", .data = &pm8821_data},
> +	{ .compatible = "qcom,pm8901", .data = &pm8xxx_data},
>   	{ .compatible = "qcom,pm8921", .data = &pm8xxx_data},

Please refrain from adding this new compatible, instead add a new,
generic one and modify the dt-bindings such that we go like:

compatible = "qcom,pm8901", "qcom,pm8xxx-ssbi-pmic"

(or similar, +CC Krzysztof, please chime in)

Konrad

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mfd: pm8xxx: add support for PM8901
  2024-04-15 19:31 ` Konrad Dybcio
@ 2024-04-17  7:10   ` Dmitry Baryshkov
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2024-04-17  7:10 UTC (permalink / raw)
  To: Konrad Dybcio
  Cc: Herman van Hazendonk, andersson, benwolsieffer, chris.chapuis,
	Lee Jones, linux-arm-msm, linux-kernel, Krzysztof Kozlowski

On Mon, 15 Apr 2024 at 22:31, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>
>
>
> On 4/15/24 14:39, Herman van Hazendonk wrote:
> > Add support for the pm8901 PMIC used by msm8660.
> >
> > Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
> > ---
> >   drivers/mfd/qcom-pm8xxx.c | 1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c
> > index 8b6285f687da..9cca14d54d8d 100644
> > --- a/drivers/mfd/qcom-pm8xxx.c
> > +++ b/drivers/mfd/qcom-pm8xxx.c
> > @@ -501,6 +501,7 @@ static const struct pm_irq_data pm8821_data = {
> >   static const struct of_device_id pm8xxx_id_table[] = {
> >       { .compatible = "qcom,pm8058", .data = &pm8xxx_data},
> >       { .compatible = "qcom,pm8821", .data = &pm8821_data},
> > +     { .compatible = "qcom,pm8901", .data = &pm8xxx_data},
> >       { .compatible = "qcom,pm8921", .data = &pm8xxx_data},
>
> Please refrain from adding this new compatible, instead add a new,
> generic one and modify the dt-bindings such that we go like:
>
> compatible = "qcom,pm8901", "qcom,pm8xxx-ssbi-pmic"

I'd suggest against this. These PMICs were similar by nature, but not
fully compatible. Also we should not be using wildcards in compatible
strings.
I think the proposed string is fine.

Herman, I see that these patches are not properly threaded. Please
consider using the 'b4' tool for preparing and sending patches.
See https://b4.docs.kernel.org/en/latest/contributor/prep.html and
https://b4.docs.kernel.org/en/latest/contributor/send.html


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-17  7:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15 12:39 [PATCH] mfd: pm8xxx: add support for PM8901 Herman van Hazendonk
2024-04-15 19:31 ` Konrad Dybcio
2024-04-17  7:10   ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox