[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<PH0PR03MB714190FE95B8E9FEBA847C6CF9A62@PH0PR03MB7141.namprd03.prod.outlook.com>
Date: Fri, 12 Jul 2024 09:53:50 +0000
From: "Paller, Kim Seer" <KimSeer.Paller@...log.com>
To: Rob Herring <robh@...nel.org>, David Lechner <dlechner@...libre.com>,
Conor Dooley <conor+dt@...nel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Jonathan Cameron
<jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Liam Girdwood
<lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Dimitri Fedrau
<dima.fedrau@...il.com>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
"Hennerich, Michael" <Michael.Hennerich@...log.com>,
Nuno Sá <noname.nuno@...il.com>
Subject: RE: [PATCH v6 3/6] dt-bindings: iio: dac: Generalize DAC common
properties
> -----Original Message-----
> From: Rob Herring <robh@...nel.org>
> Sent: Friday, July 12, 2024 6:53 AM
> To: Paller, Kim Seer <KimSeer.Paller@...log.com>
> Cc: linux-kernel@...r.kernel.org; linux-iio@...r.kernel.org;
> devicetree@...r.kernel.org; Jonathan Cameron <jic23@...nel.org>; David
> Lechner <dlechner@...libre.com>; Lars-Peter Clausen <lars@...afoo.de>;
> Liam Girdwood <lgirdwood@...il.com>; Mark Brown <broonie@...nel.org>;
> Dimitri Fedrau <dima.fedrau@...il.com>; Krzysztof Kozlowski
> <krzk+dt@...nel.org>; Conor Dooley <conor+dt@...nel.org>; Hennerich,
> Michael <Michael.Hennerich@...log.com>; Nuno Sá
> <noname.nuno@...il.com>
> Subject: Re: [PATCH v6 3/6] dt-bindings: iio: dac: Generalize DAC common
> properties
>
> [External]
>
> On Thu, Jul 11, 2024 at 07:42:18PM +0800, Kim Seer Paller wrote:
> > Introduce a generalized DAC binding that can be used by DACs that have
> > similar properties adding output-range-microamp and output-range-
> microvolt.
> >
> > Signed-off-by: Kim Seer Paller <kimseer.paller@...log.com>
> > ---
> > .../devicetree/bindings/iio/dac/dac.yaml | 50 +++++++++++++++++++
> > 1 file changed, 50 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/iio/dac/dac.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/iio/dac/dac.yaml
> > b/Documentation/devicetree/bindings/iio/dac/dac.yaml
> > new file mode 100644
> > index 000000000000..a9787bbcd22b
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/dac/dac.yaml
> > @@ -0,0 +1,50 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
> > +---
> > +$id:
> > +https://urldefense.com/v3/__http://devicetree.org/schemas/iio/dac/dac
> >
> +.yaml*__;Iw!!A3Ni8CS0y2Y!7zJ7L3dzud_vULjCirbZeBLxRAdVf8uNPLanf1xKhpv
> u
> > +3c3nbMGr57cvS4-EZ4vbO8qbilWaaSXNAT_z$
> > +$schema:
> > +https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.y
> >
> +aml*__;Iw!!A3Ni8CS0y2Y!7zJ7L3dzud_vULjCirbZeBLxRAdVf8uNPLanf1xKhpvu3
> c
> > +3nbMGr57cvS4-EZ4vbO8qbilWaadHw-qDn$
> > +
> > +title: IIO Common Properties for DAC Channels
> > +
> > +maintainers:
> > + - Jonathan Cameron <jic23@...nel.org>
> > +
> > +description:
> > + A few properties are defined in a common way for DAC channels.
> > +
> > +properties:
> > + $nodename:
> > + pattern: "^channel(@[0-9a-f]+)?$"
> > + description:
> > + A channel index should match reg.
>
> Drop $nodename. That causes this to apply to every matching node and hence
> the failures.
>
> It is also redundant because you define the node name where you reference
> dac.yaml.
I've tried to drop $nodename, but it seems it is still facing errors.
Errors were also encountered with the suggestion from David. I think I will
revert the changes to the original version, as Conor suggested, since it was
also following the same pattern as the adc.yaml.
Powered by blists - more mailing lists