linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* XADC
@ 2014-06-04  0:53 Sören Brinkmann
  2014-06-04  6:47 ` XADC Peter Meerwald
  0 siblings, 1 reply; 6+ messages in thread
From: Sören Brinkmann @ 2014-06-04  0:53 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Lars,

I recently found that you developed a driver for XADC and I thought I
enable it (see patch below). But it seems something is not working
correctly. The values I tested don't seem to be right and also fixed.
I.e. they don't change over time or across boards:

  # cat in_temp0_scale 
  123.040771484
  # cat in_voltage0_vccint_scale 
  0.732421875
  # cat in_voltage0_vccint_raw 
  1384
  # cat in_voltage1_vccaux_s[ 1203.660637] random: nonblocking pool is initialized
  # cat in_voltage1_vccaux_scale 
  0.732421875
  # cat in_voltage3_vccpint_scale 
  0.732421875

Do you have an idea what I'm missing?

	Thanks,
	S?ren

----------------8<-----------------8<-----------------8<--------------8<--------
Date: Tue, 3 Jun 2014 15:11:26 -0700
Subject: [PATCH] ARM: zynq: DT: Add XADC node

Add node for the Xilinx A/D Converter.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
---
 arch/arm/boot/dts/zynq-7000.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index 760bbc463c5b..c5854286a95a 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -65,6 +65,14 @@
 		interrupt-parent = <&intc>;
 		ranges;
 
+		adc at f8007100 {
+			compatible = "xlnx,zynq-xadc-1.00.a";
+			reg = <0xf8007100 0x20>;
+			interrupts = <0 7 4>;
+			interrupt-parent = <&intc>;
+			clocks = <&clkc 12>;
+		};
+
 		i2c0: i2c at e0004000 {
 			compatible = "cdns,i2c-r1p10";
 			status = "disabled";
-- 
2.0.0

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

end of thread, other threads:[~2014-06-05 15:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04  0:53 XADC Sören Brinkmann
2014-06-04  6:47 ` XADC Peter Meerwald
2014-06-04  7:27   ` XADC Lars-Peter Clausen
2014-06-04 14:27     ` XADC Sören Brinkmann
2014-06-05  8:26       ` XADC Lars-Peter Clausen
2014-06-05 15:48         ` XADC Sören Brinkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).