[PATCH] arm64: dts: imx8mm-nitrogen-r2: Pass the i2c3 unit name

Adrien Grassein adrien.grassein at gmail.com
Thu Mar 4 11:41:47 GMT 2021


Le jeu. 4 mars 2021 à 12:30, Shawn Guo <shawnguo at kernel.org> a écrit :
>
> On Mon, Feb 08, 2021 at 11:33:27AM -0300, Fabio Estevam wrote:
> > Pass the i2c3 unit name to fix the following W=1 build warning:
> >
> > arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts:159.8-172.5: Warning (unit_address_vs_reg): /soc at 0/bus at 30800000/i2c at 30a40000/i2cmux at 70/i2c3: node has a reg or ranges property, but no unit name
> >
> > Signed-off-by: Fabio Estevam <festevam at gmail.com>
> > ---
> >  arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts b/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts
> > index c0c384d76147..48ccbb8ff127 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts
> > +++ b/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts
> > @@ -156,7 +156,7 @@ i2cmux at 70 {
> >               #address-cells = <1>;
> >               #size-cells = <0>;
> >
> > -             i2c3 {
> > +             i2c3 at 0 {
>
> Or it should be i2c at 3?

It's in the i2c3 node, so let's name it "i2c3 at 0".

Thanks,

>
> Shawn
>
> >                       reg = <0>;
> >                       #address-cells = <1>;
> >                       #size-cells = <0>;
> > --
> > 2.25.1
> >

Adrien



More information about the linux-arm-kernel mailing list