[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ede75c098e3e354ff7e93e4e1d6191e35ea1fbd2.camel@analog.com>
Date: Thu, 26 Mar 2020 07:57:31 +0000
From: "Ardelean, Alexandru" <alexandru.Ardelean@...log.com>
To: "robh@...nel.org" <robh@...nel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
CC: "daniel.lezcano@...aro.org" <daniel.lezcano@...aro.org>,
"masneyb@...tation.org" <masneyb@...tation.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"khilman@...libre.com" <khilman@...libre.com>,
"sboyd@...nel.org" <sboyd@...nel.org>,
"linux-amlogic@...ts.infradead.org"
<linux-amlogic@...ts.infradead.org>,
"linux-clk@...r.kernel.org" <linux-clk@...r.kernel.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
"Hennerich, Michael" <Michael.Hennerich@...log.com>,
"knaack.h@....de" <knaack.h@....de>,
"pmeerw@...erw.net" <pmeerw@...erw.net>,
"lee.jones@...aro.org" <lee.jones@...aro.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"broonie@...nel.org" <broonie@...nel.org>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"rui.zhang@...el.com" <rui.zhang@...el.com>,
"yamada.masahiro@...ionext.com" <yamada.masahiro@...ionext.com>,
"glaroque@...libre.com" <glaroque@...libre.com>,
"mchehab@...nel.org" <mchehab@...nel.org>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"bjorn.andersson@...aro.org" <bjorn.andersson@...aro.org>,
"linus.walleij@...aro.org" <linus.walleij@...aro.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"jic23@...nel.org" <jic23@...nel.org>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"lars@...afoo.de" <lars@...afoo.de>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
"bgolaszewski@...libre.com" <bgolaszewski@...libre.com>,
"narmstrong@...libre.com" <narmstrong@...libre.com>
Subject: Re: [PATCH 1/4] dt-bindings: iio/accel: Drop duplicate adi,adxl345/6
from trivial-devices.yaml
On Wed, 2020-03-25 at 16:05 -0600, Rob Herring wrote:
> [External]
>
> The 'adi,adxl345' definition is a duplicate as there's a full binding in:
> Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
>
> The trivial-devices binding doesn't capture that 'adi,adxl346' has a
> fallback compatible 'adi,adxl345', so let's add it to adi,adxl345.yaml.
>
Acked-by: Alexandru Ardelean <alexandru.ardelean@...log.com>
> Cc: Michael Hennerich <michael.hennerich@...log.com>
> Cc: Jonathan Cameron <jic23@...nel.org>
> Cc: Hartmut Knaack <knaack.h@....de>
> Cc: Lars-Peter Clausen <lars@...afoo.de>
> Cc: Peter Meerwald-Stadler <pmeerw@...erw.net>
> Cc: linux-iio@...r.kernel.org
> Signed-off-by: Rob Herring <robh@...nel.org>
> ---
> .../devicetree/bindings/iio/accel/adi,adxl345.yaml | 10 +++++++---
> Documentation/devicetree/bindings/trivial-devices.yaml | 4 ----
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
> b/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
> index c602b6fe1c0c..d124eba1ce54 100644
> --- a/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
> +++ b/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
> @@ -17,9 +17,13 @@ description: |
>
> properties:
> compatible:
> - enum:
> - - adi,adxl345
> - - adi,adxl375
> + oneOf:
> + - items:
> + - const: adi,adxl346
> + - const: adi,adxl345
> + - enum:
> + - adi,adxl345
> + - adi,adxl375
>
> reg:
> maxItems: 1
> diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml
> b/Documentation/devicetree/bindings/trivial-devices.yaml
> index 978de7d37c66..51d1f6e43c02 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -42,10 +42,6 @@ properties:
> - adi,adt7476
> # +/-1C TDM Extended Temp Range I.C
> - adi,adt7490
> - # Three-Axis Digital Accelerometer
> - - adi,adxl345
> - # Three-Axis Digital Accelerometer (backward-compatibility value
> "adi,adxl345" must be listed too)
> - - adi,adxl346
> # AMS iAQ-Core VOC Sensor
> - ams,iaq-core
> # i2c serial eeprom (24cxx)
Powered by blists - more mailing lists