2021-12-12 22:59:40

by Merlijn Wajer

[permalink] [raw]
Subject: [RFC PATCH 1/2] pmic-cpcap: add motorola,droid3 compatible

The Droid 3 and the Bionic appear to share the same hardware, so add
the compatible for the Droid 3 as well.

Signed-off-by: Merlijn Wajer <[email protected]>
---
arch/arm/mach-omap2/pmic-cpcap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/pmic-cpcap.c b/arch/arm/mach-omap2/pmic-cpcap.c
index 668dc84fd31e..b9188dde13b9 100644
--- a/arch/arm/mach-omap2/pmic-cpcap.c
+++ b/arch/arm/mach-omap2/pmic-cpcap.c
@@ -245,7 +245,8 @@ int __init omap4_cpcap_init(void)
voltdm = voltdm_lookup("mpu");
omap_voltage_register_pmic(voltdm, &omap443x_max8952_mpu);

- if (of_machine_is_compatible("motorola,droid-bionic")) {
+ if (of_machine_is_compatible("motorola,droid-bionic") ||
+ of_machine_is_compatible("motorola,droid3")) {
voltdm = voltdm_lookup("core");
omap_voltage_register_pmic(voltdm, &omap_cpcap_core);

--
2.32.0



2021-12-13 05:57:52

by Tony Lindgren

[permalink] [raw]
Subject: Re: [RFC PATCH 1/2] pmic-cpcap: add motorola,droid3 compatible

* Merlijn Wajer <[email protected]> [211212 23:00]:
> The Droid 3 and the Bionic appear to share the same hardware, so add
> the compatible for the Droid 3 as well.
>
> Signed-off-by: Merlijn Wajer <[email protected]>
> ---
> arch/arm/mach-omap2/pmic-cpcap.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/pmic-cpcap.c b/arch/arm/mach-omap2/pmic-cpcap.c
> index 668dc84fd31e..b9188dde13b9 100644
> --- a/arch/arm/mach-omap2/pmic-cpcap.c
> +++ b/arch/arm/mach-omap2/pmic-cpcap.c
> @@ -245,7 +245,8 @@ int __init omap4_cpcap_init(void)
> voltdm = voltdm_lookup("mpu");
> omap_voltage_register_pmic(voltdm, &omap443x_max8952_mpu);
>
> - if (of_machine_is_compatible("motorola,droid-bionic")) {
> + if (of_machine_is_compatible("motorola,droid-bionic") ||
> + of_machine_is_compatible("motorola,droid3")) {
> voltdm = voltdm_lookup("core");
> omap_voltage_register_pmic(voltdm, &omap_cpcap_core);
>

Looks OK to me, however we should also add all the mapphones to the
Documentation/devicetree/bindings/arm/omap/omap.txt so we can avoid
dtb check warnings. Care to also do a patch for that? Looks like the
others are missing too.

Regards,

Tony



2021-12-13 10:33:02

by Merlijn Wajer

[permalink] [raw]
Subject: Re: [RFC PATCH 1/2] pmic-cpcap: add motorola,droid3 compatible

Hi Tony,

On 13/12/2021 06:57, Tony Lindgren wrote:
> * Merlijn Wajer <[email protected]> [211212 23:00]:
>> The Droid 3 and the Bionic appear to share the same hardware, so add
>> the compatible for the Droid 3 as well.
>>
>> Signed-off-by: Merlijn Wajer <[email protected]>
>> ---
>> arch/arm/mach-omap2/pmic-cpcap.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-omap2/pmic-cpcap.c b/arch/arm/mach-omap2/pmic-cpcap.c
>> index 668dc84fd31e..b9188dde13b9 100644
>> --- a/arch/arm/mach-omap2/pmic-cpcap.c
>> +++ b/arch/arm/mach-omap2/pmic-cpcap.c
>> @@ -245,7 +245,8 @@ int __init omap4_cpcap_init(void)
>> voltdm = voltdm_lookup("mpu");
>> omap_voltage_register_pmic(voltdm, &omap443x_max8952_mpu);
>>
>> - if (of_machine_is_compatible("motorola,droid-bionic")) {
>> + if (of_machine_is_compatible("motorola,droid-bionic") ||
>> + of_machine_is_compatible("motorola,droid3")) {
>> voltdm = voltdm_lookup("core");
>> omap_voltage_register_pmic(voltdm, &omap_cpcap_core);
>>
>
> Looks OK to me, however we should also add all the mapphones to the
> Documentation/devicetree/bindings/arm/omap/omap.txt so we can avoid
> dtb check warnings. Care to also do a patch for that? Looks like the
> others are missing too.

Sure, I'll do that and add the others too while at it. Shall I add those
to this patch, or make a separate patch?

Regards,
Merlijn

2021-12-15 08:42:38

by Tony Lindgren

[permalink] [raw]
Subject: Re: [RFC PATCH 1/2] pmic-cpcap: add motorola,droid3 compatible

* Merlijn Wajer <[email protected]> [211213 10:33]:
> On 13/12/2021 06:57, Tony Lindgren wrote:
> > Looks OK to me, however we should also add all the mapphones to the
> > Documentation/devicetree/bindings/arm/omap/omap.txt so we can avoid
> > dtb check warnings. Care to also do a patch for that? Looks like the
> > others are missing too.
>
> Sure, I'll do that and add the others too while at it. Shall I add those
> to this patch, or make a separate patch?

Please add a separate binding patch and Cc the devicetree mailing list.

Thanks,

Tony