* [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties
@ 2019-10-02 14:45 Maxime Ripard
2019-10-02 14:45 ` [PATCH 2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example Maxime Ripard
2019-10-02 19:14 ` [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Rob Herring
0 siblings, 2 replies; 5+ messages in thread
From: Maxime Ripard @ 2019-10-02 14:45 UTC (permalink / raw)
To: Mark Rutland, Rob Herring, Frank Rowand, jic23, knaack.h, lars, pmeerw
Cc: linux-iio, devicetree, Maxime Ripard
The AD7192 binding describes two regulator properties, avdd-supply and
dvdd-supply, but describes it as a constant string that must be avdd and
dvdd. This is wrong since a *-supply property is actually a phandle, and
results in warnings when the example is validated (or any device tree using
that device, for that matter).
Let's remove that requirement.
Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 4 ----
1 file changed, 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
index 676ec42e1438..9e62f54c891a 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
@@ -43,13 +43,9 @@ properties:
dvdd-supply:
description: DVdd voltage supply
- items:
- - const: dvdd
avdd-supply:
description: AVdd voltage supply
- items:
- - const: avdd
adi,rejection-60-Hz-enable:
description: |
--
2.23.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example
2019-10-02 14:45 [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Maxime Ripard
@ 2019-10-02 14:45 ` Maxime Ripard
2019-10-02 19:14 ` Rob Herring
2019-10-02 19:14 ` [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Rob Herring
1 sibling, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2019-10-02 14:45 UTC (permalink / raw)
To: Mark Rutland, Rob Herring, Frank Rowand, jic23, knaack.h, lars, pmeerw
Cc: linux-iio, devicetree, Maxime Ripard
The example contains an SPI bus and device, but doesn't have the
appropriate size and address cells size.
This creates a DTC warning when the example is compiled since the default
ones will not match what the device uses. Let's add them to remove that
warning.
Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
index 9e62f54c891a..567a33a83dce 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml
@@ -95,6 +95,9 @@ required:
examples:
- |
spi0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
adc@0 {
compatible = "adi,ad7192";
reg = <0>;
--
2.23.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties
2019-10-02 14:45 [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Maxime Ripard
2019-10-02 14:45 ` [PATCH 2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example Maxime Ripard
@ 2019-10-02 19:14 ` Rob Herring
2019-10-06 9:59 ` Jonathan Cameron
1 sibling, 1 reply; 5+ messages in thread
From: Rob Herring @ 2019-10-02 19:14 UTC (permalink / raw)
To: Maxime Ripard
Cc: Mark Rutland, Frank Rowand, jic23, knaack.h, lars, pmeerw,
linux-iio, devicetree, Maxime Ripard
On Wed, 2 Oct 2019 16:45:41 +0200, Maxime Ripard wrote:
> The AD7192 binding describes two regulator properties, avdd-supply and
> dvdd-supply, but describes it as a constant string that must be avdd and
> dvdd. This is wrong since a *-supply property is actually a phandle, and
> results in warnings when the example is validated (or any device tree using
> that device, for that matter).
>
> Let's remove that requirement.
>
> Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
> Signed-off-by: Maxime Ripard <mripard@kernel.org>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 4 ----
> 1 file changed, 4 deletions(-)
>
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example
2019-10-02 14:45 ` [PATCH 2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example Maxime Ripard
@ 2019-10-02 19:14 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2019-10-02 19:14 UTC (permalink / raw)
To: Maxime Ripard
Cc: Mark Rutland, Frank Rowand, jic23, knaack.h, lars, pmeerw,
linux-iio, devicetree, Maxime Ripard
On Wed, 2 Oct 2019 16:45:42 +0200, Maxime Ripard wrote:
> The example contains an SPI bus and device, but doesn't have the
> appropriate size and address cells size.
>
> This creates a DTC warning when the example is compiled since the default
> ones will not match what the device uses. Let's add them to remove that
> warning.
>
> Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
> Signed-off-by: Maxime Ripard <mripard@kernel.org>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties
2019-10-02 19:14 ` [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Rob Herring
@ 2019-10-06 9:59 ` Jonathan Cameron
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2019-10-06 9:59 UTC (permalink / raw)
To: Rob Herring
Cc: Maxime Ripard, Mark Rutland, Frank Rowand, knaack.h, lars,
pmeerw, linux-iio, devicetree
On Wed, 2 Oct 2019 14:14:16 -0500
Rob Herring <robh@kernel.org> wrote:
> On Wed, 2 Oct 2019 16:45:41 +0200, Maxime Ripard wrote:
> > The AD7192 binding describes two regulator properties, avdd-supply and
> > dvdd-supply, but describes it as a constant string that must be avdd and
> > dvdd. This is wrong since a *-supply property is actually a phandle, and
> > results in warnings when the example is validated (or any device tree using
> > that device, for that matter).
> >
> > Let's remove that requirement.
> >
> > Fixes: f7356e47032c ("dt-bindings: iio: adc: ad7192: Add binding documentation for AD7192")
> > Signed-off-by: Maxime Ripard <mripard@kernel.org>
> > ---
> > Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml | 4 ----
> > 1 file changed, 4 deletions(-)
> >
>
> Applied, thanks.
>
> Rob
Thanks for clearing this up.
Jonathan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-10-06 9:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-02 14:45 [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Maxime Ripard
2019-10-02 14:45 ` [PATCH 2/2] dt-bindings: iio: ad7192: Fix DTC warning in the example Maxime Ripard
2019-10-02 19:14 ` Rob Herring
2019-10-02 19:14 ` [PATCH 1/2] dt-bindings: iio: ad7192: Fix Regulator Properties Rob Herring
2019-10-06 9:59 ` Jonathan Cameron
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).