From patchwork Wed Apr 24 15:39:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Tull X-Patchwork-Id: 10915081 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 146C014DB for ; Wed, 24 Apr 2019 15:39:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0049528A56 for ; Wed, 24 Apr 2019 15:39:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E29F628A58; Wed, 24 Apr 2019 15:39:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 998E328A56 for ; Wed, 24 Apr 2019 15:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qBvrpdhx2d47nXEDFRjrw1mTMN69izG2f+O+0rgbJFo=; b=SdyTXE3jTLmdMK Pm556rj131fm3N1jyIXebVvlZ/qCKi4KYI/1ffhp5Jhpw8Aj3moJhD8K4MXlTWEZiAMiZNOK0iSpt wuTPUtOUkpADWpz91omHqhUXweEPFhjrm9R5kZENtTs093zKZauW15b3v62tUTzzMD3kdfT3EVRpJ XFz91gQGD776lmNZfK7X8DmHB1ByRYVE6o5xLSda00CSl33KCj2m7+V2ZjuewO4UzGW3Y/yDU1dOm 7X+lxK3dR3yQyyzJAyRpGv4/J8NAtmNRW2Qrje9ymWd6c4PAs/Y2n9/gFeLkNj/pR66mBEG3tvAlb y8xCP+qszFUXHTWzZamg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJJzo-000461-81; Wed, 24 Apr 2019 15:39:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJJzl-00045P-AC for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 15:39:38 +0000 Received: from localhost.localdomain (user-0ccsrjt.cable.mindspring.com [24.206.110.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC61520652; Wed, 24 Apr 2019 15:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556120376; bh=jvxdpg7JNYO7cH9UgE326EZK0YBQDcpNaQukxRtj+Nc=; h=From:To:Cc:Subject:Date:From; b=kHjo/8cg+RadZoE3zYrmSVm06KnqycNCYpOIhrPwsqle4Mo/cV/9coHtcgVnhxT5S 79NYawnKWH9sM9pFd0FwLiFvvukUGuuex3tYRuR/N7TWXj0uVxR3+tIUJ2Bvgj6Uut ZPJkMx/NhsREl2dYDBXmfpxBMGlouMWGaWPy1kTU= From: Alan Tull To: Dinh Nguyen Subject: [PATCH 1/2] ARM: dts: socfpga: add ltc2497 on arria10 devkit Date: Wed, 24 Apr 2019 10:39:15 -0500 Message-Id: <20190424153916.30115-1-atull@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190424_083937_376445_EE0BF02A X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alan Tull , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, delicious.quinoa@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the two ltc2497 devices that are on the SoCFPGA Arria10 Socdk board at addresses 0x14 and 0x16. Signed-off-by: Alan Tull --- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi b/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi index 360dae5a5b12..0efbeccc5cd2 100644 --- a/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi +++ b/arch/arm/boot/dts/socfpga_arria10_socdk.dtsi @@ -48,6 +48,13 @@ }; }; + ref_033v: 033-v-ref { + compatible = "regulator-fixed"; + regulator-name = "0.33V"; + regulator-min-microvolt = <330000>; + regulator-max-microvolt = <330000>; + }; + soc { clkmgr@ffd04000 { clocks { @@ -128,6 +135,18 @@ i2c-sda-falling-time-ns = <6000>; i2c-scl-falling-time-ns = <6000>; + adc@14 { + compatible = "lltc,ltc2497"; + reg = <0x14>; + vref-supply = <&ref_033v>; + }; + + adc@16 { + compatible = "lltc,ltc2497"; + reg = <0x16>; + vref-supply = <&ref_033v>; + }; + eeprom@51 { compatible = "atmel,24c32"; reg = <0x51>; From patchwork Wed Apr 24 15:39:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Tull X-Patchwork-Id: 10915083 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39D1D14DB for ; Wed, 24 Apr 2019 15:39:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28C52289FC for ; Wed, 24 Apr 2019 15:39:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D14228A56; Wed, 24 Apr 2019 15:39:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D089F289FC for ; Wed, 24 Apr 2019 15:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pLgq/N2CkzZVzggMdzpbycwA7Xbom54UZ33RKDQKxKM=; b=LD8RTzi0oJQZKc NbNK18nISb1X0D0xZQ4EVEmvYBl8qMYU4by1UEzIME8vzm8nsXTHXyPjg8ughQV97JLC61lyorH++ Q6p1xntGa4wQmbVNJ1wUNirhv2HQYmOspLFLK1l2WOCBNb+39XetCBMrbzxGiygG7+LZjcsK8fo7s wFXE7DiA04Ehq6YKubbXn7ei+uwGgz6C0SRuDt2r1qDNniBIXcRYYve9jXI4XFieSuwKz7uinzpHg gIg7Qr+gZm21vPTEjyBnSeLTcBS9UGJLYTDtFOck6WsAwrNCbKjk1CbTaJyuU0dFjngJqVAbvVfQo zfnV8zaFGLaoMKfAtV4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJJzu-0004ER-MN; Wed, 24 Apr 2019 15:39:46 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJJzl-00045Q-Gr for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 15:39:38 +0000 Received: from localhost.localdomain (user-0ccsrjt.cable.mindspring.com [24.206.110.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B075F218FE; Wed, 24 Apr 2019 15:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556120377; bh=Gx6D8oVIngXZQhCE73Ll4RIrliO5zdIxd1ORVaeWTMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uw9HpTUz0bc4MRciBhR3fIR8MogAteU9Q6H8uV1JDn6MG1pOJi5fhpaYAGkyVkgmz ttGmW5cqlxDPl7G9mC9O0CU7QIkhtlmGyzpqpJoyGW5s+tRbsqT+Pl5q8+42hUzuYE Wu/0mKN46gdZvqwgxsMsc4Y/9ya5+uIfsWFM9WIE= From: Alan Tull To: Dinh Nguyen Subject: [PATCH 2/2] ARM: socfpga_defconfig: enable LTC2497 Date: Wed, 24 Apr 2019 10:39:16 -0500 Message-Id: <20190424153916.30115-2-atull@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190424153916.30115-1-atull@kernel.org> References: <20190424153916.30115-1-atull@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190424_083937_575202_9CEBBE7D X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alan Tull , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, delicious.quinoa@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the LTC2497 driver to support the two LTC2497's that are on the SoCFPGA Arria10 Devkit. Signed-off-by: Alan Tull --- arch/arm/configs/socfpga_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/socfpga_defconfig b/arch/arm/configs/socfpga_defconfig index 08d1b3e11d68..cfc447161c09 100644 --- a/arch/arm/configs/socfpga_defconfig +++ b/arch/arm/configs/socfpga_defconfig @@ -127,6 +127,8 @@ CONFIG_RTC_DRV_DS1307=y CONFIG_DMADEVICES=y CONFIG_PL330_DMA=y CONFIG_DMATEST=m +CONFIG_IIO=y +CONFIG_LTC2497=y CONFIG_FPGA=y CONFIG_FPGA_MGR_SOCFPGA=y CONFIG_FPGA_MGR_SOCFPGA_A10=y