From: Mark Rutland <mark.rutland@arm.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Pawel Moll" <pawel.moll@arm.com>,
"Ian Campbell" <ijc+devicetree@hellion.org.uk>,
"Kumar Gala" <galak@codeaurora.org>,
"Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>,
"Russell King" <linux@arm.linux.org.uk>,
"Marek Belisko" <marek@goldelico.com>,
"Pradeep Goudagunta" <pgoudagunta@nvidia.com>,
"Laxman Dewangan" <ldewangan@nvidia.com>,
gg@slimlogic.co.uk, jic23@jic23.retrosnub.co.uk,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-omap@vger.kernel.org, linux-iio@vger.kernel.org,
"Grazvydas Ignotas" <notasas@gmail.com>
Subject: Re: [PATCH v2 2/3] iio:adc:palmas: add DT support
Date: Mon, 5 Oct 2015 12:17:55 +0100 [thread overview]
Message-ID: <20151005111754.GG19064@leverpostej> (raw)
In-Reply-To: <6C211191-87B8-4444-ADA7-8BE454C2B3D3@goldelico.com>
On Sun, Oct 04, 2015 at 06:05:59PM +0200, H. Nikolaus Schaller wrote:
> From: Marek Belisko <marek@goldelico.com>
>
> Code was found at:
> https://android.googlesource.com/kernel/tegra/+/a90856a6626d502d42c6e7abccbdf9d730b36270%5E%21/#F1
>
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
> [Fixed minor typos + add channels list to documentation]
> Signed-off-by: Marek Belisko <marek@goldelico.com>
> ---
> .../devicetree/bindings/iio/adc/palmas-gpadc.txt | 46 +++++++++++++++++++
> drivers/iio/adc/palmas_gpadc.c | 52 +++++++++++++++++++---
> 2 files changed, 93 insertions(+), 5 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt b/Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt
> new file mode 100644
> index 0000000..2149afe
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt
> @@ -0,0 +1,46 @@
> +* Palmas general purpose ADC IP block devicetree bindings
> +
> +Channels list:
> + 0 battery type
> + 1 battery temp NTC (optional current source)
> + 2 GP
> + 3 temp (with ext. diode, optional current source)
> + 4 GP
> + 5 GP
> + 6 VBAT_SENSE
> + 7 VCC_SENSE
> + 8 Backup Battery voltage
> + 9 external charger (VCHG)
> + 10 VBUS
> + 11 DC-DC current probe (how does this work?)
> + 12 internal die temp
> + 13 internal die temp
> + 14 USB ID pin voltage
> + 15 test network
> +
> +Required properties:
> +- compatible : Must be "ti,palmas-gpadc".
> +
> +Optional sub-nodes:
> +ti,channel0-current-microamp: Channel 0 current in uA.
> + Values are rounded to derive 0uA, 5uA, 15uA, 20uA.
> +ti,channel3-current-microamp: Channel 3 current in uA.
> + Valid are rounded to derive 0uA, 10uA, 400uA, 800uA.
It's only possible to configure channels 0 and 3 in this manner?
> +ti,enable-extended-delay: Enable extended delay.
What is this? When would I select it? Why does it belong in the DT
rather than being a runtime option?
> +Example:
> +
> +pmic {
> + compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
> + ...
> + gpadc {
> + compatible = "ti,palmas-gpadc";
> + interrupts = <18 0
> + 16 0
> + 17 0>;
> + ti,channel0-current-microamp = <5>;
> + ti,channel3-current-microamp = <10>;
> + };
> + };
> + ...
> +};
I thought you needed #iio-cells for encoding the channel?
Mark.
WARNING: multiple messages have this Message-ID (diff)
From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: "H. Nikolaus Schaller" <hns-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
Cc: "Rob Herring" <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"Pawel Moll" <pawel.moll-5wv7dgnIgG8@public.gmane.org>,
"Ian Campbell"
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
"Kumar Gala" <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
"Benoît Cousson"
<bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>,
"Tony Lindgren" <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
"Russell King" <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
"Marek Belisko" <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>,
"Pradeep Goudagunta"
<pgoudagunta-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"Laxman Dewangan"
<ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
gg-kDsPt+C1G03kYMGBc/C6ZA@public.gmane.org,
jic23-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
"Grazvydas Ignotas"
<notasas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH v2 2/3] iio:adc:palmas: add DT support
Date: Mon, 5 Oct 2015 12:17:55 +0100 [thread overview]
Message-ID: <20151005111754.GG19064@leverpostej> (raw)
In-Reply-To: <6C211191-87B8-4444-ADA7-8BE454C2B3D3-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
On Sun, Oct 04, 2015 at 06:05:59PM +0200, H. Nikolaus Schaller wrote:
> From: Marek Belisko <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
>
> Code was found at:
> https://android.googlesource.com/kernel/tegra/+/a90856a6626d502d42c6e7abccbdf9d730b36270%5E%21/#F1
>
> Signed-off-by: Laxman Dewangan <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> [Fixed minor typos + add channels list to documentation]
> Signed-off-by: Marek Belisko <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
> ---
> .../devicetree/bindings/iio/adc/palmas-gpadc.txt | 46 +++++++++++++++++++
> drivers/iio/adc/palmas_gpadc.c | 52 +++++++++++++++++++---
> 2 files changed, 93 insertions(+), 5 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt b/Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt
> new file mode 100644
> index 0000000..2149afe
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/palmas-gpadc.txt
> @@ -0,0 +1,46 @@
> +* Palmas general purpose ADC IP block devicetree bindings
> +
> +Channels list:
> + 0 battery type
> + 1 battery temp NTC (optional current source)
> + 2 GP
> + 3 temp (with ext. diode, optional current source)
> + 4 GP
> + 5 GP
> + 6 VBAT_SENSE
> + 7 VCC_SENSE
> + 8 Backup Battery voltage
> + 9 external charger (VCHG)
> + 10 VBUS
> + 11 DC-DC current probe (how does this work?)
> + 12 internal die temp
> + 13 internal die temp
> + 14 USB ID pin voltage
> + 15 test network
> +
> +Required properties:
> +- compatible : Must be "ti,palmas-gpadc".
> +
> +Optional sub-nodes:
> +ti,channel0-current-microamp: Channel 0 current in uA.
> + Values are rounded to derive 0uA, 5uA, 15uA, 20uA.
> +ti,channel3-current-microamp: Channel 3 current in uA.
> + Valid are rounded to derive 0uA, 10uA, 400uA, 800uA.
It's only possible to configure channels 0 and 3 in this manner?
> +ti,enable-extended-delay: Enable extended delay.
What is this? When would I select it? Why does it belong in the DT
rather than being a runtime option?
> +Example:
> +
> +pmic {
> + compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
> + ...
> + gpadc {
> + compatible = "ti,palmas-gpadc";
> + interrupts = <18 0
> + 16 0
> + 17 0>;
> + ti,channel0-current-microamp = <5>;
> + ti,channel3-current-microamp = <10>;
> + };
> + };
> + ...
> +};
I thought you needed #iio-cells for encoding the channel?
Mark.
next prev parent reply other threads:[~2015-10-05 11:18 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 6:57 twl6030-gpadc support for twl6037 Belisko Marek
2015-07-20 6:57 ` Belisko Marek
2015-07-22 19:28 ` Belisko Marek
2015-07-22 19:28 ` Belisko Marek
2015-07-22 19:33 ` Graeme Gregory
2015-07-22 19:33 ` Graeme Gregory
2015-07-22 19:41 ` Graeme Gregory
2015-07-22 19:41 ` Graeme Gregory
2015-07-22 20:12 ` Dr. H. Nikolaus Schaller
2015-07-22 20:12 ` Dr. H. Nikolaus Schaller
2015-07-23 12:58 ` gpadc iio support for tlw6037/palmas [was: twl6030-gpadc support for twl6037] Dr. H. Nikolaus Schaller
2015-07-23 12:58 ` Dr. H. Nikolaus Schaller
2015-07-23 13:12 ` Graeme Gregory
2015-07-23 13:12 ` Graeme Gregory
2015-07-23 14:12 ` jic23
2015-07-23 14:12 ` jic23-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO
2015-09-23 12:48 ` [PATCH 0/3] Add Palmas iio gpadc H. Nikolaus Schaller
2015-10-04 16:05 ` [PATCH v2 " H. Nikolaus Schaller
2015-10-04 16:05 ` H. Nikolaus Schaller
[not found] ` <cover.1443973837.git.hns@goldelico.com>
2015-10-04 16:05 ` [PATCH v2 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc H. Nikolaus Schaller
2015-10-04 16:05 ` [PATCH v2 2/3] iio:adc:palmas: add DT support H. Nikolaus Schaller
2015-10-04 16:05 ` H. Nikolaus Schaller
2015-10-05 11:17 ` Mark Rutland [this message]
2015-10-05 11:17 ` Mark Rutland
2015-10-05 14:26 ` H. Nikolaus Schaller
2015-10-04 16:06 ` [PATCH v2 3/3] ARM: dts: omap5-uevm: enable iio gpadc for Palmas H. Nikolaus Schaller
2015-10-04 16:06 ` H. Nikolaus Schaller
2015-10-05 6:14 ` [PATCH v2 0/3] Add Palmas iio gpadc H. Nikolaus Schaller
2015-10-05 6:14 ` [PATCH v2 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc H. Nikolaus Schaller
2015-10-05 6:14 ` H. Nikolaus Schaller
2015-10-05 6:54 ` kbuild test robot
2015-10-05 6:54 ` kbuild test robot
2015-10-05 6:54 ` [PATCH] iio:adc: fix platform_no_drv_owner.cocci warnings kbuild test robot
2015-10-05 6:54 ` kbuild test robot
2015-10-05 10:48 ` [PATCH v2 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc Laxman Dewangan
2015-10-05 10:48 ` Laxman Dewangan
2015-10-11 14:27 ` Jonathan Cameron
2015-10-11 14:27 ` Jonathan Cameron
2015-10-13 8:14 ` Lee Jones
2015-10-13 8:14 ` Lee Jones
2015-10-05 6:14 ` [PATCH v2 2/3] iio:adc:palmas: add DT support H. Nikolaus Schaller
2015-10-05 10:53 ` Laxman Dewangan
2015-10-05 10:53 ` Laxman Dewangan
2015-10-05 6:14 ` [PATCH v2 3/3] ARM: dts: omap5-uevm: enable iio gpadc for Palmas H. Nikolaus Schaller
[not found] ` <cover.1443012491.git.hns@goldelico.com>
2015-09-23 12:48 ` [PATCH 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc H. Nikolaus Schaller
2015-09-23 13:26 ` Peter Meerwald
2015-09-23 13:26 ` Peter Meerwald
2015-09-24 8:59 ` H. Nikolaus Schaller
2015-09-24 8:59 ` H. Nikolaus Schaller
2015-09-27 15:21 ` Jonathan Cameron
2015-09-27 15:21 ` Jonathan Cameron
2015-09-28 20:54 ` H. Nikolaus Schaller
2015-09-28 20:54 ` H. Nikolaus Schaller
2015-09-28 20:54 ` H. Nikolaus Schaller
2015-10-04 16:04 ` H. Nikolaus Schaller
2015-10-04 16:04 ` H. Nikolaus Schaller
2015-10-11 14:33 ` Jonathan Cameron
2015-10-11 14:33 ` Jonathan Cameron
2015-09-23 12:49 ` [PATCH 2/3] iio:adc:palmas: add DT support H. Nikolaus Schaller
2015-09-27 15:37 ` Jonathan Cameron
2015-09-27 15:37 ` Jonathan Cameron
2015-10-04 16:05 ` H. Nikolaus Schaller
2015-10-04 16:05 ` H. Nikolaus Schaller
2015-09-23 12:49 ` [PATCH 3/3] ARM: dts: omap5-uevm: enable iio gpadc for Palmas H. Nikolaus Schaller
2015-09-23 16:56 ` Tony Lindgren
2015-09-23 17:03 ` H. Nikolaus Schaller
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=20151005111754.GG19064@leverpostej \
--to=mark.rutland@arm.com \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gg@slimlogic.co.uk \
--cc=hns@goldelico.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=jic23@jic23.retrosnub.co.uk \
--cc=ldewangan@nvidia.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=marek@goldelico.com \
--cc=notasas@gmail.com \
--cc=pawel.moll@arm.com \
--cc=pgoudagunta@nvidia.com \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
/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.