[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<CY4PR03MB3399F17206B01006467B602F9B3C2@CY4PR03MB3399.namprd03.prod.outlook.com>
Date: Mon, 9 Dec 2024 14:02:28 +0000
From: "Miclaus, Antoniu" <Antoniu.Miclaus@...log.com>
To: David Lechner <dlechner@...libre.com>,
"jic23@...nel.org"
<jic23@...nel.org>,
"robh@...nel.org" <robh@...nel.org>,
"conor+dt@...nel.org" <conor+dt@...nel.org>,
"linux-iio@...r.kernel.org"
<linux-iio@...r.kernel.org>,
"devicetree@...r.kernel.org"
<devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>,
"linux-pwm@...r.kernel.org"
<linux-pwm@...r.kernel.org>
CC: Conor Dooley <conor.dooley@...rochip.com>
Subject: RE: [PATCH v7 7/8] dt-bindings: iio: adc: add ad4851
--
Antoniu Miclăuş
> -----Original Message-----
> From: David Lechner <dlechner@...libre.com>
> Sent: Thursday, December 5, 2024 2:46 AM
> To: Miclaus, Antoniu <Antoniu.Miclaus@...log.com>; jic23@...nel.org;
> robh@...nel.org; conor+dt@...nel.org; linux-iio@...r.kernel.org;
> devicetree@...r.kernel.org; linux-kernel@...r.kernel.org; linux-
> pwm@...r.kernel.org
> Cc: Conor Dooley <conor.dooley@...rochip.com>
> Subject: Re: [PATCH v7 7/8] dt-bindings: iio: adc: add ad4851
>
> [External]
>
> On 11/29/24 9:35 AM, Antoniu Miclaus wrote:
> > Add devicetree bindings for ad485x family.
> >
> > Reviewed-by: Conor Dooley <conor.dooley@...rochip.com>
> > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@...log.com>
> > ---
> > changes in v7:
> > - add adc channels support
>
> What is the reason for this change? In a previous version of this series,
> you explained that we didn't want to specify diff-channels in the DT
> because there was a use case to use channels as both single-ended and
> differential at runtime. So I am surprised to see this being added now.
>
We had a discussion and we decided to go for the dt approach for specifying
the channels configuration, even though in the first place we wanted to avoid this.
Overall it makes more sense.
> > +patternProperties:
> > + "^channel(@[0-7])?$":
> > + $ref: adc.yaml
> > + type: object
> > + description: Represents the channels which are connected to the ADC.
> > +
> > + properties:
> > + reg:
> > + description: The channel number in single-ended mode.
> > + minimum: 0
> > + maximum: 7
> > +
> > + diff-channels: true
> > +
> > + required:
> > + - reg
> > +
> > + additionalProperties: false
> > +
Powered by blists - more mailing lists