From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: linux-aspeed@lists.ozlabs.org
Subject: [v2 2/8] dt-bindings: iio: adc: Binding ast2600 adc.
Date: Fri, 23 Jul 2021 15:51:41 +0100 [thread overview]
Message-ID: <20210723155141.000039ee@Huawei.com> (raw)
In-Reply-To: <20210723081621.29477-3-billy_tsai@aspeedtech.com>
On Fri, 23 Jul 2021 16:16:15 +0800
Billy Tsai <billy_tsai@aspeedtech.com> wrote:
> This patch add more description about aspeed adc and add two property
> for ast2600:
> - vref: used to configure reference voltage.
> - battery-sensing: used to enable battery sensing mode for last channel.
>
> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Hi Billy,
A few comments inline.
Thanks,
Jonathan
> ---
> .../bindings/iio/adc/aspeed,adc.yaml | 28 +++++++++++++++++--
> 1 file changed, 26 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml b/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> index 23f3da1ffca3..a562a7fbc30c 100644
> --- a/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> @@ -10,14 +10,26 @@ maintainers:
> - Joel Stanley <joel@jms.id.au>
>
> description:
I think you need a | after description if you want the formatting to be
maintained (otherwise it will undo the line breaks).
> - This device is a 10-bit converter for 16 voltage channels. All inputs are
> - single ended.
> + ? 10-bits resolution for 16 voltage channels.
> + At ast2400/ast2500 the device has only one engine with 16 voltage channels.
> + At ast2600 the device split into two individual engine and each contains 8 voltage channels.
Please wrap lines at 80 chars unless it badly hurts readability.
engines
> + ? Channel scanning can be non-continuous.
> + ? Programmable ADC clock frequency.
> + ? Programmable upper and lower bound for each channels.
I would use threshold rather than bound. A bound restricts the
value, and I think this is measuring it?
> + ? Interrupt when larger or less than bounds for each channels.
> + ? Support hysteresis for each channels.
> + ? Buildin a compensating method.
Built-in
> + Additional feature at ast2600
of ast2600
> + ? 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.
> +
> + 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
> +
> required:
> - compatible
> - reg
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Billy Tsai <billy_tsai@aspeedtech.com>
Cc: <jic23@kernel.org>, <lars@metafoo.de>, <pmeerw@pmeerw.net>,
<robh+dt@kernel.org>, <joel@jms.id.au>, <andrew@aj.id.au>,
<p.zabel@pengutronix.de>, <linux-iio@vger.kernel.org>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>,
<BMC-SW@aspeedtech.com>
Subject: Re: [v2 2/8] dt-bindings: iio: adc: Binding ast2600 adc.
Date: Fri, 23 Jul 2021 15:51:41 +0100 [thread overview]
Message-ID: <20210723155141.000039ee@Huawei.com> (raw)
In-Reply-To: <20210723081621.29477-3-billy_tsai@aspeedtech.com>
On Fri, 23 Jul 2021 16:16:15 +0800
Billy Tsai <billy_tsai@aspeedtech.com> wrote:
> This patch add more description about aspeed adc and add two property
> for ast2600:
> - vref: used to configure reference voltage.
> - battery-sensing: used to enable battery sensing mode for last channel.
>
> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Hi Billy,
A few comments inline.
Thanks,
Jonathan
> ---
> .../bindings/iio/adc/aspeed,adc.yaml | 28 +++++++++++++++++--
> 1 file changed, 26 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml b/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> index 23f3da1ffca3..a562a7fbc30c 100644
> --- a/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> @@ -10,14 +10,26 @@ maintainers:
> - Joel Stanley <joel@jms.id.au>
>
> description:
I think you need a | after description if you want the formatting to be
maintained (otherwise it will undo the line breaks).
> - This device is a 10-bit converter for 16 voltage channels. All inputs are
> - single ended.
> + • 10-bits resolution for 16 voltage channels.
> + At ast2400/ast2500 the device has only one engine with 16 voltage channels.
> + At ast2600 the device split into two individual engine and each contains 8 voltage channels.
Please wrap lines at 80 chars unless it badly hurts readability.
engines
> + • Channel scanning can be non-continuous.
> + • Programmable ADC clock frequency.
> + • Programmable upper and lower bound for each channels.
I would use threshold rather than bound. A bound restricts the
value, and I think this is measuring it?
> + • Interrupt when larger or less than bounds for each channels.
> + • Support hysteresis for each channels.
> + • Buildin a compensating method.
Built-in
> + Additional feature at ast2600
of ast2600
> + • 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.
> +
> + 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
> +
> required:
> - compatible
> - reg
WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
To: Billy Tsai <billy_tsai@aspeedtech.com>
Cc: <jic23@kernel.org>, <lars@metafoo.de>, <pmeerw@pmeerw.net>,
<robh+dt@kernel.org>, <joel@jms.id.au>, <andrew@aj.id.au>,
<p.zabel@pengutronix.de>, <linux-iio@vger.kernel.org>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-aspeed@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>,
<BMC-SW@aspeedtech.com>
Subject: Re: [v2 2/8] dt-bindings: iio: adc: Binding ast2600 adc.
Date: Fri, 23 Jul 2021 15:51:41 +0100 [thread overview]
Message-ID: <20210723155141.000039ee@Huawei.com> (raw)
In-Reply-To: <20210723081621.29477-3-billy_tsai@aspeedtech.com>
On Fri, 23 Jul 2021 16:16:15 +0800
Billy Tsai <billy_tsai@aspeedtech.com> wrote:
> This patch add more description about aspeed adc and add two property
> for ast2600:
> - vref: used to configure reference voltage.
> - battery-sensing: used to enable battery sensing mode for last channel.
>
> Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Hi Billy,
A few comments inline.
Thanks,
Jonathan
> ---
> .../bindings/iio/adc/aspeed,adc.yaml | 28 +++++++++++++++++--
> 1 file changed, 26 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml b/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> index 23f3da1ffca3..a562a7fbc30c 100644
> --- a/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/aspeed,adc.yaml
> @@ -10,14 +10,26 @@ maintainers:
> - Joel Stanley <joel@jms.id.au>
>
> description:
I think you need a | after description if you want the formatting to be
maintained (otherwise it will undo the line breaks).
> - This device is a 10-bit converter for 16 voltage channels. All inputs are
> - single ended.
> + • 10-bits resolution for 16 voltage channels.
> + At ast2400/ast2500 the device has only one engine with 16 voltage channels.
> + At ast2600 the device split into two individual engine and each contains 8 voltage channels.
Please wrap lines at 80 chars unless it badly hurts readability.
engines
> + • Channel scanning can be non-continuous.
> + • Programmable ADC clock frequency.
> + • Programmable upper and lower bound for each channels.
I would use threshold rather than bound. A bound restricts the
value, and I think this is measuring it?
> + • Interrupt when larger or less than bounds for each channels.
> + • Support hysteresis for each channels.
> + • Buildin a compensating method.
Built-in
> + Additional feature at ast2600
of ast2600
> + • 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.
> +
> + 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
> +
> required:
> - compatible
> - reg
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-07-23 14:51 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 8:16 [v2 0/8] Add support for ast2600 ADC Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` [v2 1/8] dt-bindings: iio: adc: rename the aspeed adc yaml Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 14:44 ` Jonathan Cameron
2021-07-23 14:44 ` Jonathan Cameron
2021-07-23 14:44 ` Jonathan Cameron
2021-07-26 6:53 ` Billy Tsai
2021-07-26 6:53 ` Billy Tsai
2021-07-26 6:53 ` Billy Tsai
2021-07-29 20:31 ` Rob Herring
2021-07-29 20:31 ` Rob Herring
2021-07-29 20:31 ` Rob Herring
2021-07-31 17:27 ` Jonathan Cameron
2021-07-31 17:27 ` Jonathan Cameron
2021-07-31 17:27 ` Jonathan Cameron
2021-07-23 8:16 ` [v2 2/8] dt-bindings: iio: adc: Binding ast2600 adc Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 14:51 ` Jonathan Cameron [this message]
2021-07-23 14:51 ` Jonathan Cameron
2021-07-23 14:51 ` Jonathan Cameron
2021-07-26 7:21 ` Billy Tsai
2021-07-26 7:21 ` Billy Tsai
2021-07-26 7:21 ` Billy Tsai
2021-07-31 17:24 ` Jonathan Cameron
2021-07-23 8:16 ` [v2 3/8] iio: adc: aspeed: completes the bitfield declare Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 14:55 ` Jonathan Cameron
2021-07-23 14:55 ` Jonathan Cameron
2021-07-23 14:55 ` Jonathan Cameron
2021-07-23 8:16 ` [v2 4/8] iio: adc: aspeed: Allow driver to support ast2600 Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 15:29 ` Jonathan Cameron
2021-07-23 15:29 ` Jonathan Cameron
2021-07-23 15:29 ` Jonathan Cameron
2021-07-23 8:16 ` [v2 5/8] iio: adc: aspeed: Add func to set sampling rate Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 15:37 ` Jonathan Cameron
2021-07-23 15:37 ` Jonathan Cameron
2021-07-23 15:37 ` Jonathan Cameron
2021-07-23 8:16 ` [v2 6/8] iio: adc: aspeed: Add compensation phase Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 15:44 ` Jonathan Cameron
2021-07-23 15:44 ` Jonathan Cameron
2021-07-23 15:44 ` Jonathan Cameron
2021-07-23 8:16 ` [v2 7/8] iio: adc: aspeed: Fix the calculate error of clock Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` [v2 8/8] iio: adc: aspeed: Support battery sensing Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 8:16 ` Billy Tsai
2021-07-23 15:56 ` Jonathan Cameron
2021-07-23 15:56 ` Jonathan Cameron
2021-07-23 15:56 ` Jonathan Cameron
2021-07-26 6:54 ` Billy Tsai
2021-07-26 6:54 ` Billy Tsai
2021-07-26 6:54 ` Billy Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210723155141.000039ee@Huawei.com \
--to=jonathan.cameron@huawei.com \
--cc=linux-aspeed@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.