[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8D93D26B-AE57-4E38-A1AD-FA62894F2947@aspeedtech.com>
Date: Mon, 26 Jul 2021 07:21:29 +0000
From: Billy Tsai <billy_tsai@...eedtech.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>
CC: "jic23@...nel.org" <jic23@...nel.org>,
"lars@...afoo.de" <lars@...afoo.de>,
"pmeerw@...erw.net" <pmeerw@...erw.net>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"joel@....id.au" <joel@....id.au>,
"andrew@...id.au" <andrew@...id.au>,
"p.zabel@...gutronix.de" <p.zabel@...gutronix.de>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-aspeed@...ts.ozlabs.org" <linux-aspeed@...ts.ozlabs.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
BMC-SW <BMC-SW@...eedtech.com>
Subject: Re: [v2 2/8] dt-bindings: iio: adc: Binding ast2600 adc.
Hi Jonathan,
Thanks for your review. I will fix them.
About the vref I reply inline.
On 2021/7/23, 10:52 PM, "Jonathan Cameron" <Jonathan.Cameron@...wei.com> wrote:
On Fri, 23 Jul 2021 16:16:15 +0800
Billy Tsai <billy_tsai@...eedtech.com> wrote:
> > + • Internal or External reference voltage.
> > + • Support 2 Internal reference voltage 1.2v or 2.5v.
> > + • Integrate dividing circuit for battery sensing.
> >
> > properties:
> > compatible:
> > enum:
> > - aspeed,ast2400-adc
> > - aspeed,ast2500-adc
> > + - aspeed,ast2600-adc
> >
> > reg:
> > maxItems: 1
> > @@ -33,6 +45,18 @@ properties:
> > "#io-channel-cells":
> > const: 1
> >
> > + vref:
> > + minItems: 900
> > + maxItems: 2700
> > + default: 2500
> > + description:
> > + ADC Reference voltage in millivolts.
> I'm not clear from this description. Is this describing an externally
> connected voltage reference? If so it needs to be done as a regulator.
> If it's a classic high precision reference, the dts can just use
> a fixed regulator.
In the ast2600, the ADC supports two internal reference voltages of 1.2v or 2.5v,
as well as external voltages. When the user selects a voltage of 1.2v or 2.5v, my
driver will first select to use the internal voltage.
As you mention at patch #4, you suggest to use two property to handle this feature.
vref: indicate the regulator handler. Like other dt-bindings used.
aspeed,int_vref_mv: indicate the chosen of 1.2v or 2.5v
and use "model_data->vref_fixed" to exclude ast2400 and ast2500
Is it right?
Thanks
> > +
> > + battery-sensing:
> > + type: boolean
> > + description:
> > + Inform the driver that last channel will be used to sensor battery.
> This isn't (I think?) a standard dt binding, so it needs a manufacturer
> prefix.
> aspeed,battery-sensing
Best Regards,
Billy Tsai
Powered by blists - more mailing lists