Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1160755
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stefan Agner <stefan@agner.ch> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 1/2] iio: adc: vf610: implement configurable conversion modes |
| Date | Mon, 08 Jun 2015 22:10:01 +0200 |
| Message-ID | <pzbwR-QJ-9@gated-at.bofh.it> (permalink) |
| References | <puIWt-3Pm-5@gated-at.bofh.it> <puIWt-3Pm-3@gated-at.bofh.it> <pz9v3-646-3@gated-at.bofh.it> |
| X-Original-To | Rob Herring <robherring2@gmail.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=simple/simple; d=agner.ch; s=dkim; t=1433794019; bh=lEhZKdUfzsQtNrQNsqDU7KwF4iVhxKQvn3H7itr3Nyc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WEDsPhalg0nLrNQQA1fo9wvjYRzXilRD60dtDH6adLI1K6Y4zxcdOChXXGzNgXDeZ OCavBG82zbzuv5F1nZPjeRPquHxJLuJgEOqbOF9OkwG+x8mXhZJH5vkzAr8/ESrSFC HOupuqs50EdRHAO0tkgTYwZr7qV/r3qrQ8HNtcmM= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Sender | stefan@agner.ch |
| User-Agent | Roundcube Webmail/1.1.2 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 68 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jonathan Cameron <jic23@kernel.org>, Shawn Guo <shawn.guo@linaro.org>, kernel@pengutronix.de, knaack.h@gmx.de, Lars-Peter Clausen <lars@metafoo.de>, Peter Meerwald <pmeerw@pmeerw.net>, Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>, Mark Rutland <mark.rutland@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Kumar Gala <galak@codeaurora.org>, Fugang Duan <B38611@freescale.com>, maitysanchayan@gmail.com, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Mon, 08 Jun 2015 22:07:09 +0200 |
| X-Original-Message-ID | <14d469dedae9de1ce519fe90401e526e@agner.ch> |
| X-Original-References | <1432730872-14325-1-git-send-email-stefan@agner.ch> <1432730872-14325-2-git-send-email-stefan@agner.ch> <CAL_JsqK0YxgJ-k8kSs6XQj9n3FSg4QBd-GdFEfcafH7Cm4NreQ@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1160755 |
Show key headers only | View raw
On 2015-06-08 19:49, Rob Herring wrote: > On Wed, May 27, 2015 at 7:47 AM, Stefan Agner <stefan@agner.ch> wrote: >> Support configurable conversion mode through sysfs. So far, the >> mode used was low-power, which is enabled by default now. Beside >> that, the modes normal and high-speed are selectable as well. >> >> Use the new device tree property which specifies the maximum ADC >> conversion clock frequencies. Depending on the mode used, the >> available resulting conversion frequency are calculated >> dynamically. >> >> Acked-by: Fugang Duan <B38611@freescale.com> >> Signed-off-by: Stefan Agner <stefan@agner.ch> >> --- >> Documentation/ABI/testing/sysfs-bus-iio-vf610 | 7 + >> .../devicetree/bindings/iio/adc/vf610-adc.txt | 9 ++ >> drivers/iio/adc/vf610_adc.c | 146 +++++++++++++++------ >> 3 files changed, 120 insertions(+), 42 deletions(-) >> create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-vf610 >> >> diff --git a/Documentation/ABI/testing/sysfs-bus-iio-vf610 b/Documentation/ABI/testing/sysfs-bus-iio-vf610 >> new file mode 100644 >> index 0000000..ecbc1f4 >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-bus-iio-vf610 >> @@ -0,0 +1,7 @@ >> +What: /sys/bus/iio/devices/iio:deviceX/conversion_mode >> +KernelVersion: 4.2 >> +Contact: linux-iio@vger.kernel.org >> +Description: >> + Specifies the hardware conversion mode used. The three >> + available modes are "normal", "high-speed" and "low-power", >> + where the last is the default mode. >> diff --git a/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt b/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt >> index 1a4a43d..3eb40e2 100644 >> --- a/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt >> +++ b/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt >> @@ -11,6 +11,13 @@ Required properties: >> - clock-names: Must contain "adc", matching entry in the clocks property. >> - vref-supply: The regulator supply ADC reference voltage. >> >> +Recommended properties: >> +- fsl,adck-max-frequency: Maximum frequencies according to datasheets operating >> + requirements. Three values are required, depending on conversion mode: >> + - Frequency in normal mode (ADLPC=0, ADHSC=0) >> + - Frequency in high-speed mode (ADLPC=0, ADHSC=1) >> + - Frequency in low-power mode (ADLPC=1, ADHSC=0) > > Why is this "adck" rather than "adc"? That is the name of the clock according to the reference manual and data sheet. > How is this related to today's patch adding min-sample-time? It is related in that this clock is the base to calculate the sampling time, but otherwise not really related. Afaik, not respecting the maximum clock frequency is probably more a issue for the SAR part of the ADC. -- Stefan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v5 1/2] iio: adc: vf610: implement configurable conversion modes Stefan Agner <stefan@agner.ch> - 2015-06-08 22:10 +0200 Re: [PATCH v5 1/2] iio: adc: vf610: implement configurable conversion modes Jonathan Cameron <jic23@kernel.org> - 2015-06-14 13:20 +0200
csiph-web