[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181029130757.m5okrfvusjl5fu5m@qschulz>
Date: Mon, 29 Oct 2018 14:07:57 +0100
From: Quentin Schulz <quentin.schulz@...tlin.com>
To: Jonathan Cameron <jic23@...23.retrosnub.co.uk>
Cc: Rob Herring <robh@...nel.org>, Oskari Lemmela <oskari@...mela.net>,
Linus Walleij <linus.walleij@...aro.org>,
Sebastian Reichel <sre@...nel.org>,
Lee Jones <lee.jones@...aro.org>,
Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Vasily Khoruzhick <anarsoul@...il.com>,
Quentin Schulz <quentin.schulz@...e-electrons.com>,
linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-gpio@...r.kernel.org, linux-iio@...r.kernel.org
Subject: Re: [PATCH v5 04/11] dt-bindings: iio: adc: add AXP803 ADC bindings
Hi Jonathan,
On Sun, Oct 28, 2018 at 03:40:11PM +0000, Jonathan Cameron wrote:
> On Wed, 24 Oct 2018 08:56:33 -0500
> Rob Herring <robh@...nel.org> wrote:
>
> > On Tue, 23 Oct 2018 21:53:23 +0300, Oskari Lemmela wrote:
> > > The AXP803 ADC is compatible with AXP813 ADC, but add
> > > specific compatible for it.
> > >
> > > Signed-off-by: Oskari Lemmela <oskari@...mela.net>
> > > ---
> > > Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> >
> > Reviewed-by: Rob Herring <robh@...nel.org>
>
> This doesn't seem to have any dependencies with the other patches
> so applied to the togreg branch of iio.git and pushed out as testing
> for the autobuilders to ignore. However I am a little curious to know
> why we would add the ID and then not use it (that I can see)?
>
Sometimes with Allwinner (and X-Powers), two IPs seem identical until we
discover something that is slightly different. When this happens, we
have to add a compatible to differentiate both. However, we would also
need to change the Device Tree to change the compatible. We would need
to handle the driver behaviour for both Device Trees.
So better anticipate a possible difference so that we don't have to do
some hacks in the driver to handle the device correctly.
As always, Chen-Yu or Maxime may know better so I'm just stating what I
seem to recall.
Quentin
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists