From patchwork Wed Jun 4 00:53:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 4291861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5CAD1BEEA7 for ; Wed, 4 Jun 2014 00:59:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 63DB7201D5 for ; Wed, 4 Jun 2014 00:59:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6241F201C8 for ; Wed, 4 Jun 2014 00:59:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WrzVg-0005Sf-Ib; Wed, 04 Jun 2014 00:56:56 +0000 Received: from mail-bl2lp0203.outbound.protection.outlook.com ([207.46.163.203] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WrzVd-0005SD-2R for linux-arm-kernel@lists.infradead.org; Wed, 04 Jun 2014 00:56:54 +0000 Received: from BN1AFFO11FD006.protection.gbl (10.58.52.32) by BN1AFFO11HUB064.protection.gbl (10.58.52.215) with Microsoft SMTP Server (TLS) id 15.0.949.9; Wed, 4 Jun 2014 00:56:24 +0000 Received: from xsj-gw1 (149.199.60.83) by BN1AFFO11FD006.mail.protection.outlook.com (10.58.52.66) with Microsoft SMTP Server id 15.0.959.15 via Frontend Transport; Wed, 4 Jun 2014 00:56:24 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1WrzVA-0000YE-9D; Tue, 03 Jun 2014 17:56:24 -0700 Date: Tue, 3 Jun 2014 17:53:25 -0700 From: =?utf-8?B?U8O2cmVu?= Brinkmann To: Lars-Peter Clausen Subject: XADC MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-RCIS-Action: ALLOW Message-ID: X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:149.199.60.83; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(438001)(199002)(189002)(164054003)(104016001)(74502001)(74662001)(31966008)(50986999)(20776003)(53416003)(19580395003)(19580405001)(54356999)(83322001)(23676002)(21056001)(50466002)(99396002)(1496006)(80022001)(102836001)(79102001)(81342001)(92726001)(87936001)(83072002)(92566001)(77982001)(85852003)(70736001)(221733001)(74316001)(44976005)(83506001)(86362001)(85202002)(85182001)(46102001)(31696002)(47776003)(76482001)(33646001)(81542001)(64706001)(4396001)(215093002); DIR:OUT; SFP:; SCL:1; SRVR:BN1AFFO11HUB064; H:xsj-gw1; FPR:; MLV:sfv; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en; X-OriginatorOrg: xilinx.onmicrosoft.com X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID: X-Forefront-PRVS: 0232B30BBC Received-SPF: Pass (: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=; client-ip=149.199.60.83; helo=xsj-gw1; Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=soren.brinkmann@xilinx.com; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140603_175653_257539_A81DC5A5 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: linux-arm-kernel@lists.infradead.org, Michal Simek , =?utf-8?B?U8O2cmVu?= Brinkmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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@f8007100 { + compatible = "xlnx,zynq-xadc-1.00.a"; + reg = <0xf8007100 0x20>; + interrupts = <0 7 4>; + interrupt-parent = <&intc>; + clocks = <&clkc 12>; + }; + i2c0: i2c@e0004000 { compatible = "cdns,i2c-r1p10"; status = "disabled";