From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC
Date: Thu, 11 Jan 2018 16:07:36 -0600 [thread overview]
Message-ID: <20180111220736.xkcen5cr5cexihle@rob-hp-laptop> (raw)
In-Reply-To: <bef3ba5e4a2c47f13fa9ba8e6fb0267b7bb15026.1515486346.git-series.quentin.schulz@free-electrons.com>
On Tue, Jan 09, 2018 at 10:33:33AM +0100, Quentin Schulz wrote:
> X-Powers PMICs have several ADC channels that can be used for different
> purposes, e.g. PMIC internal temperature, battery voltage or AC current.
>
> This is the documentation for AXP209, AXP221/223 ADC bindings.
>
> Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
> ---
> Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 39 +++++++++-
> 1 file changed, 39 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt
> new file mode 100644
> index 0000000..ed6d04e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt
> @@ -0,0 +1,39 @@
> +* X-Powers AXP ADC bindings
> +
> +Required properties:
> + - compatible: should be one of:
> + - "x-powers,axp20x-adc",
> + - "x-powers,axp22x-adc",
> + - #io-channel-cells: should be 1,
> +
> +Example:
> +
> +&axp22x {
> + axp_adc: axp-adc {
adc {
With that,
Reviewed-by: Rob Herring <robh@kernel.org>
> + compatible = "x-powers,axp22x-adc";
> + #io-channel-cells = <1>;
> + };
> +};
> +
> +ADC channels and their indexes per variant:
> +
> +AXP209
> +------
> + 0 | acin_v
> + 1 | acin_i
> + 2 | vbus_v
> + 3 | vbus_i
> + 4 | pmic_temp
> + 5 | gpio0_v
> + 6 | gpio1_v
> + 7 | ipsout_v
> + 8 | batt_v
> + 9 | batt_chrg_i
> +10 | batt_dischrg_i
> +
> +AXP22x
> +------
> + 0 | pmic_temp
> + 1 | batt_v
> + 2 | batt_chrg_i
> + 3 | batt_dischrg_i
> --
> git-series 0.9.1
next prev parent reply other threads:[~2018-01-11 22:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 9:33 [PATCH v2 00/16] add support for AXP813 ADC and battery power supply Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 01/16] iio: adc: axp20x_adc: put ADC rate setting in a per-variant function Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC Quentin Schulz
2018-01-11 22:07 ` Rob Herring [this message]
2018-01-09 9:33 ` [PATCH v2 03/16] iio: adc: axp20x_adc: make it possible to probe from DT Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 04/16] ARM: dtsi: axp209: add node for ADC Quentin Schulz
2018-01-09 9:48 ` Maxime Ripard
2018-01-09 9:33 ` [PATCH v2 05/16] ARM: dtsi: axp22x: " Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 06/16] mfd: axp20x: make AXP209/22x cells probe their ADC via DT Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 07/16] dt-bindings: iio: adc: axp20x_adc: add AXP813 variant Quentin Schulz
2018-01-11 22:09 ` Rob Herring
2018-01-09 9:33 ` [PATCH v2 08/16] iio: adc: axp20x_adc: add support for AXP813 ADC Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 09/16] ARM: dtsi: axp81x: add node for ADC Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 10/16] mfd: axp20x: probe axp20x_adc driver for AXP813 Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 11/16] power: supply: axp20x_battery: use data structure instead of ID for Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 12/16] dt-bindings: power: supply: axp20x: add AXP813 battery DT binding Quentin Schulz
2018-01-11 19:46 ` Rob Herring
2018-01-09 9:33 ` [PATCH v2 13/16] power: supply: axp20x_battery: add support for AXP813 Quentin Schulz
2018-01-09 12:53 ` [linux-sunxi] " Julian Calaby
2018-01-09 9:33 ` [PATCH v2 14/16] mfd: axp20x: add battery power supply cell " Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 15/16] ARM: dtsi: axp81x: add battery power supply subnode Quentin Schulz
2018-01-09 9:33 ` [PATCH v2 16/16] ARM: dtsi: sun8i: a711: enable " Quentin Schulz
2018-01-14 13:56 ` [PATCH v2 00/16] add support for AXP813 ADC and battery power supply Jonathan Cameron
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=20180111220736.xkcen5cr5cexihle@rob-hp-laptop \
--to=robh@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox