All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: at91: dts: add adc resolution stuff
@ 2013-03-29  9:13 ` ludovic.desroches at atmel.com
  0 siblings, 0 replies; 10+ messages in thread
From: ludovic.desroches @ 2013-03-29  9:13 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: linux-iio, plagnioj, nicolas.ferre, maxime-ripard,
	Ludovic Desroches

From: Ludovic Desroches <ludovic.desroches@atmel.com>

Add the ADC low and high resolution configuration and which one to use.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---

Hi,

This patch is a split from this set of patches:
http://thread.gmane.org/gmane.linux.ports.arm.kernel/206130/focus=6321

Then device tree changes can go through ARM-SOC and driver changes through the
iio subsystem.

Regards

Ludovic

 arch/arm/boot/dts/at91sam9260.dtsi | 3 +++
 arch/arm/boot/dts/at91sam9g45.dtsi | 3 +++
 arch/arm/boot/dts/at91sam9x5.dtsi  | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi
index cb7bcc5..367a604 100644
--- a/arch/arm/boot/dts/at91sam9260.dtsi
+++ b/arch/arm/boot/dts/at91sam9260.dtsi
@@ -484,6 +484,9 @@
 				atmel,adc-drdy-mask = <0x10000>;
 				atmel,adc-status-register = <0x1c>;
 				atmel,adc-trigger-register = <0x04>;
+				atmel,adc-res = <8 10>;
+				atmel,adc-res-names = "lowres", "highres";
+				atmel,adc-use-res = "highres";
 
 				trigger@0 {
 					trigger-name = "timer-counter-0";
diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi
index 6b1d4ca..0fa28af 100644
--- a/arch/arm/boot/dts/at91sam9g45.dtsi
+++ b/arch/arm/boot/dts/at91sam9g45.dtsi
@@ -484,6 +484,9 @@
 				atmel,adc-drdy-mask = <0x10000>;
 				atmel,adc-status-register = <0x1c>;
 				atmel,adc-trigger-register = <0x08>;
+				atmel,adc-res = <8 10>;
+				atmel,adc-res-names = "lowres", "highres";
+				atmel,adc-use-res = "highres";
 
 				trigger@0 {
 					trigger-name = "external-rising";
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
index a98c0d5..08bcdd7 100644
--- a/arch/arm/boot/dts/at91sam9x5.dtsi
+++ b/arch/arm/boot/dts/at91sam9x5.dtsi
@@ -505,6 +505,9 @@
 				atmel,adc-drdy-mask = <0x1000000>;
 				atmel,adc-status-register = <0x30>;
 				atmel,adc-trigger-register = <0xc0>;
+				atmel,adc-res = <8 10>;
+				atmel,adc-res-names = "lowres", "highres";
+				atmel,adc-use-res = "highres";
 
 				trigger@0 {
 					trigger-name = "external-rising";
-- 
1.7.11.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-02 18:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29  9:13 [PATCH] ARM: at91: dts: add adc resolution stuff ludovic.desroches
2013-03-29  9:13 ` ludovic.desroches at atmel.com
2013-03-29  9:47 ` Jonathan Cameron
2013-03-29  9:47   ` Jonathan Cameron
2013-03-29 14:37   ` Nicolas Ferre
2013-03-29 14:37     ` Nicolas Ferre
2013-04-02 18:13     ` Jonathan Cameron
2013-04-02 18:13       ` Jonathan Cameron
2013-03-29 16:28   ` Jean-Christophe PLAGNIOL-VILLARD
2013-03-29 16:28     ` Jean-Christophe PLAGNIOL-VILLARD

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.