Re: [PATCH] ARM: dts: imx: drop "fsl,aips-bus"

From: Rob Herring
Date: Tue Jan 14 2020 - 09:39:33 EST


On Sun, Jan 5, 2020 at 8:38 PM Peng Fan <peng.fan@xxxxxxx> wrote:
>
> Hi Rob,
>
> > Subject: Re: [PATCH] ARM: dts: imx: drop "fsl,aips-bus"
> >
> > On Mon, Dec 30, 2019 at 08:58:05AM +0000, Peng Fan wrote:
> > > From: Peng Fan <peng.fan@xxxxxxx>
> > >
> > > There is no binding doc for "fsl,aips-bus", "simple-bus" is enough for
> > > aips usage, so drop it.
> >
> > NAK. The AIPS bus has registers, so 'simple-bus' alone is not enough.
>
> You mean the "reg" property below, right?
> aips-bus@2000000 { /* AIPS1 */
> - compatible = "fsl,aips-bus", "simple-bus";
> + compatible = "simple-bus";
> #address-cells = <1>;
> #size-cells = <1>;
> reg = <0x02000000 0x100000>;
>
> But the reg property is not required, I think it could be removed.
> There is no binding doc and driver for "fsl,aips-bus", so I think
> It not make sense to have that compatible in dts.

Well, there should be a binding doc, but whether or not there's a
driver is irrelevant.

>From what I remember, either AIPS or SPBA bus has registers to allow
user mode access or not. Something may need to configure those and it
may want to use DT info to do that. It's not just Linux that you need
to think about.

Rob