From patchwork Mon Apr 7 15:08:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinh Nguyen X-Patchwork-Id: 3946121 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EAFF89F369 for ; Mon, 7 Apr 2014 15:12:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C507202B4 for ; Mon, 7 Apr 2014 15:12:25 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 EC29920254 for ; Mon, 7 Apr 2014 15:12:23 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WXBDf-0008Qx-DU; Mon, 07 Apr 2014 15:12:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WXBDc-0001d3-R3; Mon, 07 Apr 2014 15:12:16 +0000 Received: from mail-bn1on0117.outbound.protection.outlook.com ([157.56.110.117] helo=na01-bn1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WXBDU-0001bJ-7M for linux-arm-kernel@lists.infradead.org; Mon, 07 Apr 2014 15:12:14 +0000 Received: from BN1BFFO11FD039.protection.gbl (10.58.144.31) by BN1BFFO11HUB014.protection.gbl (10.58.144.161) with Microsoft SMTP Server (TLS) id 15.0.908.10; Mon, 7 Apr 2014 15:11:17 +0000 Received: from SJ-ITEXEDGE02.altera.priv.altera.com (66.35.236.232) by BN1BFFO11FD039.mail.protection.outlook.com (10.58.144.102) with Microsoft SMTP Server (TLS) id 15.0.918.6 via Frontend Transport; Mon, 7 Apr 2014 15:11:17 +0000 Received: from sj-mail01.altera.com (137.57.1.6) by SJ-ITEXEDGE02.altera.priv.altera.com (66.35.236.232) with Microsoft SMTP Server id 8.3.348.2; Mon, 7 Apr 2014 07:58:05 -0700 Received: from linux-builds1.altera.com (linux-builds1.altera.com [137.57.188.114]) by sj-mail01.altera.com (8.13.7+Sun/8.13.7) with ESMTP id s37FAolW028383; Mon, 7 Apr 2014 08:11:15 -0700 (PDT) From: To: Subject: [PATCHv2] ARM: socfpga: dts: add eeprom and rtc on i2c0 Date: Mon, 7 Apr 2014 10:08:32 -0500 Message-ID: <1396883312-6195-1-git-send-email-dinguyen@altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: =?us-ascii?Q?CIP:66.35.236.232; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(1001?= =?us-ascii?Q?9001)(6009001)(458001)(199002)(189002)(95666003)(87286001)(8?= =?us-ascii?Q?4676001)(74662001)(53806001)(94946001)(93916002)(20776003)(8?= =?us-ascii?Q?6362001)(81542001)(65816001)(47776003)(62966002)(56816005)(9?= =?us-ascii?Q?7336001)(4396001)(33646001)(59766001)(92726001)(19580405001)?= =?us-ascii?Q?(69226001)(97186001)(50466002)(74366001)(76176001)(94316002)?= =?us-ascii?Q?(79102001)(74876001)(77156001)(63696002)(36756003)(76482001)?= =?us-ascii?Q?(47446002)(44976005)(50226001)(47736001)(56776001)(97736001)?= =?us-ascii?Q?(50986001)(80976001)(92566001)(88136002)(74502001)(53416003)?= =?us-ascii?Q?(83072002)(76786001)(98676001)(19580395003)(86152002)(680600?= =?us-ascii?Q?4)(99396002)(54316002)(95416001)(81686001)(81342001)(9351600?= =?us-ascii?Q?2)(85852003)(89996001)(49866001)(83322001)(76796001)(3196600?= =?us-ascii?Q?8)(81816001)(77096001)(87936001)(47976001)(93136001)(4837600?= =?us-ascii?Q?2)(46102001)(87266001)(77982001)(90146001)(80022001)(7470600?= =?us-ascii?Q?1)(85306002)(2009001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1BFFO11H?= =?us-ascii?Q?UB014; H:SJ-ITEXEDGE02.altera.priv.altera.com; FPR:9EE4FFE4.B2?= =?us-ascii?Q?928749.715D87DA.4E63AEB9.2016B; MLV:sfv; PTR:InfoDomainNonexis?= =?us-ascii?Q?tent;A:1;MX:3;LANG:en;?= X-OriginatorOrg: altera.onmicrosoft.com X-Forefront-PRVS: 0174BD4BDA Received-SPF: SoftFail (: domain of transitioning altera.com discourages use of 66.35.236.232 as permitted sender) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140407_111208_346699_C1E18DCF X-CRM114-Status: UNSURE ( 6.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: s.trumtrar@pengutronix.de, Dinh Nguyen , linux-arm-kernel@lists.infradead.org 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=-4.5 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Dinh Nguyen The Altera Cyclone5 and Arria5 devkit has an EEPROM and a RTC on the board. This patch adds support for them. Signed-off-by: Dinh Nguyen --- v2: Remove LCD as the driver has not been upstreamed. --- arch/arm/boot/dts/socfpga_arria5_socdk.dts | 15 +++++++++++++++ arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/socfpga_arria5_socdk.dts b/arch/arm/boot/dts/socfpga_arria5_socdk.dts index 88e4a8e..a04061f 100644 --- a/arch/arm/boot/dts/socfpga_arria5_socdk.dts +++ b/arch/arm/boot/dts/socfpga_arria5_socdk.dts @@ -59,3 +59,18 @@ rxdv-skew-ps = <0>; rxc-skew-ps = <2000>; }; + +&i2c0 { + status = "okay"; + + eeprom@51 { + compatible = "atmel,24c32"; + reg = <0x51>; + pagesize = <32>; + }; + + rtc@68 { + compatible = "dallas,ds1339"; + reg = <0x68>; + }; +}; diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts index 5e9445a..55d54f7 100644 --- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts @@ -52,3 +52,18 @@ rxdv-skew-ps = <0>; rxc-skew-ps = <2000>; }; + +&i2c0 { + status = "okay"; + + eeprom@51 { + compatible = "atmel,24c32"; + reg = <0x51>; + pagesize = <32>; + }; + + rtc@68 { + compatible = "dallas,ds1339"; + reg = <0x68>; + }; +};