From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
Bartosz Golaszewski <brgl@bgdev.pl>
Cc: alanx.chiang@intel.com, linux-i2c <linux-i2c@vger.kernel.org>,
andy.yeh@intel.com, Rajmohan Mani <rajmohan.mani@intel.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
tfiga@chromium.org, jcliang@chromium.org,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
devicetree <devicetree@vger.kernel.org>
Subject: Re: [PATCH v3 1/2] dt-bindings: at24: Add address-width property
Date: Wed, 27 Jun 2018 14:41:35 +0300 [thread overview]
Message-ID: <049fae0ebe5521d4bb92d7d0f66cd2a54a1a2d22.camel@linux.intel.com> (raw)
In-Reply-To: <20180627094013.e42crqqufo2jqra6@paasikivi.fi.intel.com>
On Wed, 2018-06-27 at 12:40 +0300, Sakari Ailus wrote:
> On Wed, Jun 27, 2018 at 10:19:38AM +0200, Bartosz Golaszewski wrote:
> > 2018-06-27 7:46 GMT+02:00 <alanx.chiang@intel.com>:
> > > From: Alan Chiang <alanx.chiang@intel.com>
> > >
> > > The AT24 series chips use 8-bit address by default. If some
> > > chips would like to support more than 8 bits, the at24 driver
> > > should be added the compatible field for specfic chips.
> > >
> > > Provide a flexible way to determine the addressing bits through
> > > address-width in this patch.
> > >
> > > Signed-off-by: Alan Chiang <alanx.chiang@intel.com>
> > > Signed-off-by: Andy Yeh <andy.yeh@intel.com>
> > >
> > > ---
> > > since v1:
> > > -- Remove the address-width field in the example.
> > > since v2:
> > > -- Remove redundant space.
> > >
> > > ---
> > > Documentation/devicetree/bindings/eeprom/at24.txt | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/eeprom/at24.txt
> > > b/Documentation/devicetree/bindings/eeprom/at24.txt
> > > index 61d833a..aededdb 100644
> > > --- a/Documentation/devicetree/bindings/eeprom/at24.txt
> > > +++ b/Documentation/devicetree/bindings/eeprom/at24.txt
> > > @@ -72,6 +72,8 @@ Optional properties:
> > >
> > > - wp-gpios: GPIO to which the write-protect pin of the chip is
> > > connected.
> > >
> > > + - address-width: number of address bits (one of 8, 16).
> > > +
> > > Example:
> > >
> > > eeprom@52 {
> > > --
> > > 2.7.4
> > >
> >
> > Rob,
> >
> > we only have two possibilities here and the default is 8 bits.
> >
> > What do you think about introducing a boolean property here called:
> > 'address-width-16' instead of an integer?
>
> I'd have thought the same, but it turns out address-width is already
> being
> used by the at25 bindings:
>
> Documentation/devicetree/bindings/eeprom/at25.txt
>
Agree with Sakari, there is no need to evolve a chaos in DT bindings. We
have too many semi-hemi-duplications in bindings. Especially in this
case we have already established property by a similar driver.
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
next prev parent reply other threads:[~2018-06-27 11:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 5:46 [PATCH v3 0/2] Add a property in at24.c alanx.chiang
2018-06-27 5:46 ` [PATCH v3 1/2] dt-bindings: at24: Add address-width property alanx.chiang
2018-06-27 7:59 ` Sakari Ailus
2018-06-27 8:19 ` Bartosz Golaszewski
2018-06-27 9:40 ` Sakari Ailus
2018-06-27 11:41 ` Andy Shevchenko [this message]
2018-06-27 5:46 ` [PATCH v3 2/2] eeprom: at24: Add support for " alanx.chiang
2018-06-27 7:46 ` Sakari Ailus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=049fae0ebe5521d4bb92d7d0f66cd2a54a1a2d22.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=alanx.chiang@intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy.yeh@intel.com \
--cc=arnd@arndb.de \
--cc=brgl@bgdev.pl \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jcliang@chromium.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=rajmohan.mani@intel.com \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=tfiga@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).