Re: [PATCH] mfd: sc27xx: Use SoC compatible string for PMIC devices

From: Arnd Bergmann
Date: Wed Feb 13 2019 - 09:28:56 EST


On Wed, Feb 13, 2019 at 1:57 PM Baolin Wang <baolin.wang@xxxxxxxxxx> wrote:
>
> We should use SoC compatible string in stead of wildcard string for
> PMIC child devices.
>
> Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxx>

Looks good. I had a look at arch/arm64/boot/dts/sprd/sc2731.dtsi
as well, which contains lines such as

compatible = "sprd,sc27xx-efuse", "sprd,sc2731-efuse";

which fortunately work with both variants of the driver.
Just to make sure we have the same understanding though:

- Other drivers will leave out the 27xx part and just do
compatible = sprd,sc2732-efuse", "sprd,sc2731-efuse";

- When you specific a generic name (such as the sc2731 part),
the more specific one (e.g. sc2732) needs to come /first/.
The current DT appears to have those mixed up.

Arnd