[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220504214840.1ad32bff@jic23-huawei>
Date: Wed, 4 May 2022 21:48:40 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Dmitry Rokosov <DDRokosov@...rdevices.ru>
Cc: Rob Herring <robh@...nel.org>,
"stano.jakubek@...il.com" <stano.jakubek@...il.com>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"lars@...afoo.de" <lars@...afoo.de>,
"andy.shevchenko@...il.com" <andy.shevchenko@...il.com>,
"stephan@...hold.net" <stephan@...hold.net>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
kernel <kernel@...rdevices.ru>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v1 3/3] dt-bindings: iio: accel: add dt-binding schema
for msa311 accel driver
On Wed, 4 May 2022 18:36:33 +0000
Dmitry Rokosov <DDRokosov@...rdevices.ru> wrote:
> Hello Rob,
>
> I've missed one note below, please check if possible.
>
> On Tue, Apr 26, 2022 at 03:31:05PM -0500, Rob Herring wrote:
> > On Tue, Apr 19, 2022 at 03:45:58PM +0000, Rokosov Dmitry Dmitrievich wrote:
> > > + "#address-cells":
> > > + const: 1
> > > +
> > > + "#size-cells":
> > > + const: 0
> >
> > These apply to 'reg' in a child node, but you don't have child nodes so
> > drop them.
> >
>
> I'm afraid, I made a mistake in the previous reply. Here I applied
> address-cells and size-cells to show which type accelerometer's reg
> property has, like this one:
>
> i2c {
> #address-cells = <1>;
> #size-cells = <0>;
>
> accelerometer@62 {
> compatible = "memsensing,msa311";
> reg = <0x62>;
>
> Above accelerometer@62 is child node for i2c bus node, so address and
> size cells mean accelerometer reg format. Am I missing something?
They are characteristics of the i2c master and hence
are listed in those binding docs, not the one for the accelerometer.
Thanks,
Jonathan
>
Powered by blists - more mailing lists