Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1184783

Re: [PATCH v3 2/2] ARM: dts: vf-colibri: Add property for minimum sample time

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Stefan Agner <stefan@agner.ch>
Newsgroups linux.kernel
Subject Re: [PATCH v3 2/2] ARM: dts: vf-colibri: Add property for minimum sample time
Date Wed, 15 Jul 2015 15:10:01 +0200
Message-ID <pMuBH-8op-13@gated-at.bofh.it> (permalink)
References <pM8Uy-2QN-3@gated-at.bofh.it> <pM8Uy-2QN-11@gated-at.bofh.it> <pMk9j-1ri-9@gated-at.bofh.it>
X-Original-To Shawn Guo <shawnguo@kernel.org>
Dkim-Signature v=1; a=rsa-sha256; c=simple/simple; d=agner.ch; s=dkim; t=1436965339; bh=RFTDVfWQEsc6/hhwnGjPPU5JucQ0tie+b+kIBzp85E4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=e6CsAWzP50Je8aB+JUVsgFeehm3e6QNxVrYDIykarE47IOZwK2Pp2dsCjBL4ZBwAK iym/UIjl28EHgU+vHeH8QHftYZYh3jgJ9o9Hc/ihQZ7EjQVuQHBGBz/l6FzHoQKYAI VDMg95WHrAF1l/+mWzn4RuED41q4LYJizIXnna74=
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 44
Organization linux.* mail to news gateway
X-Original-Cc Sanchayan Maity <maitysanchayan@gmail.com>, jic23@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, B38611@freescale.com, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, kernel@pengutronix.de, galak@codeaurora.org, shawn.guo@linaro.org, linux-arm-kernel@lists.infradead.org
X-Original-Date Wed, 15 Jul 2015 15:02:35 +0200
X-Original-Message-ID <c84f141e3e222a48b6adf52e686df7e9@agner.ch>
X-Original-References <cover.1436880513.git.maitysanchayan@gmail.com> <20e2cfad3fbb1a45332e9936ea493ddc8bfaf51d.1436880513.git.maitysanchayan@gmail.com> <20150715015725.GK4119@tiger>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1184783

Show key headers only | View raw


On 2015-07-15 03:57, Shawn Guo wrote:
> On Tue, Jul 14, 2015 at 07:23:23PM +0530, Sanchayan Maity wrote:
>> Add a device tree property which allows to specify the minimum sample
>> time which can be used to calculate the actual ADC cycles required
>> depending on the hardware.
>>
>> Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
>> ---
>>  arch/arm/boot/dts/vf-colibri.dtsi | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi
>> index ab10d2e..59f5deb 100644
>> --- a/arch/arm/boot/dts/vf-colibri.dtsi
>> +++ b/arch/arm/boot/dts/vf-colibri.dtsi
>> @@ -16,10 +16,12 @@
>>  };
>>
>>  &adc0 {
>> +	min-sample-time = <1000>;
>>  	status = "okay";
>>  };
>>
>>  &adc1 {
>> +	min-sample-time = <1000>;
> 
> Since this is the default value anyway, we can just save the patch,
> right?

I thought it would be nice to be explicit here and define this value
which we verified internally.

On the other hand, we did not derived the minimum value from the DS
(using the capacity/resistance of the actual analog source connected) to
maximize the sampling frequency, hence I'm also ok with not explicitly
defining a value.

--
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 — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 2/2] ARM: dts: vf-colibri: Add property for minimum  sample time Shawn Guo <shawnguo@kernel.org> - 2015-07-15 04:00 +0200
  Re: [PATCH v3 2/2] ARM: dts: vf-colibri: Add property for minimum  sample time Stefan Agner <stefan@agner.ch> - 2015-07-15 15:10 +0200

csiph-web