From patchwork Tue Jul 21 21:00:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 6838241 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B6A8D9F358 for ; Tue, 21 Jul 2015 21:09:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B37AD206E5 for ; Tue, 21 Jul 2015 21:09:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEDE9206B6 for ; Tue, 21 Jul 2015 21:09:04 +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 1ZHekm-0006Vn-Hk; Tue, 21 Jul 2015 21:07:08 +0000 Received: from mail-bn1bon0059.outbound.protection.outlook.com ([157.56.111.59] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHekh-0006I4-L5 for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2015 21:07:04 +0000 Received: from BN3PR0301CA0052.namprd03.prod.outlook.com (10.160.152.148) by BLUPR03MB231.namprd03.prod.outlook.com (10.255.213.22) with Microsoft SMTP Server (TLS) id 15.1.219.9; Tue, 21 Jul 2015 21:06:42 +0000 Received: from BN1AFFO11FD037.protection.gbl (2a01:111:f400:7c10::180) by BN3PR0301CA0052.outlook.office365.com (2a01:111:e400:401e::20) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Tue, 21 Jul 2015 21:06:41 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; pengutronix.de; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BN1AFFO11FD037.mail.protection.outlook.com (10.58.52.241) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Tue, 21 Jul 2015 21:06:40 +0000 Received: from na01-by2-obe.outbound.protection.outlook.com (207.46.163.238) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 21 Jul 2015 14:05:34 -0700 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Received: from linux-builds1.altera.com (64.129.157.38) by BLUPR03MB1362.namprd03.prod.outlook.com (10.163.80.28) with Microsoft SMTP Server (TLS) id 15.1.219.17; Tue, 21 Jul 2015 21:06:33 +0000 From: To: , , , , Subject: [PATCHv3] ARM: dts: socfpga: Add support of Terasic DE0 Atlas board Date: Tue, 21 Jul 2015 16:00:28 -0500 Message-ID: <1437512428-13526-1-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.4.5 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: SN1PR12CA0028.namprd12.prod.outlook.com (25.162.96.166) To BLUPR03MB1362.namprd03.prod.outlook.com (25.163.80.28) X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1362; 2:/wze/QGs36PGAySn2OlUOmt30tNA7YglhuD8oXcQZbmH6YHAF61U0gYwkqt8meLG; 3:0FfMADOFiEBQcbrpyZDVn2lMqENvLFd+SNIrp/TcE6qBOZPOvYJuLY6YTGRuj2nzC8IX6SfY+G+WHTCiLh4aeJjherBfFtiGiSOkichk2nrmG4ibZgD77Khvx56tQLEaEfzrF+cyFkKmyO0FBfn4qw==; 25:r9EjRfCJzH9pu7tHoxVb+lOg1fmJCvtDBcuzgDpqAv7BAjf7aupw4jMCT4GiVgsjaHE/A3soL3YmgPbuYdE37ym6G3oxH2Oe7PxooEHHW5RiQm20wU5COiOaCMDmNbZvaBcX3NQ+XXpx+HKbR7VC91CCGBJ6eB6WDpY46/D/0CdODQYG3zwTfxBrsDkRw9gBCAqdTUx7AV5ffxjpc6+lN+Rg57aRVSLck6sJKZOoclEMHGHCLZ6ijGIhI4O08yTo; 20:CyD8WE8oQLT7ns5ivA3J9zGfAjVe+CZkC+momNTj3XzSLTKJ1vXvDHazoOpZkR/zAu91oljE6ugc023lmR5Fmbv+K57f0XVgAGYqxhm7dA0hoREl1wgkEsJFI9Xwi14sfIjZ6Cr84/mA8xk4YXMLpibLNrPIBfqFn/VtLdXaCYc=; 4:X0J7WKsOdzCuqbtBvtcHIbBB2ncLNsRJpxs+CILGRvWs8oOteWDdprNfzed3uyf3Dxgcn0waMd5am2dLbUDwtETehJkhlLY97ZOHNxvSu3ftVEn7iL1XQsoYCUC984xHV5nuv2Jp463kj+E1fittoglUTU1Ph/bAhO72ac1+Mmk3SHvmZ0g+868hFI2dBNRdWA6sEpGkVllk8GB3Bm1ao9W7loSmJrQEATEIsY2BiBdIpErom9tOSkh3gbSuRGZhBnmHnMEVEjy9B7l764NyAkuxvLcyhCs20Y1XnyaqyDA= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1362; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB231; BLUPR03MB1362: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR03MB1362; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1362; BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR03MB231; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB231; X-Forefront-PRVS: 0644578634 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(47776003)(19580395003)(122386002)(33646002)(62966003)(189998001)(86152002)(77156002)(86362001)(19580405001)(66066001)(5001960100002)(229853001)(2201001)(92566002)(50986999)(107886002)(87976001)(48376002)(50466002)(77096005)(53416004)(15975445007)(40100003)(5001770100001)(42186005)(46102003)(50226001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1362; H:linux-builds1.altera.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1362; 23:SIxL3O1vop8SDBzXAdd3Vd1sPE17FP5SK0sDZ1M8fxGw+Nx9U8HSiBtzzEJxV7uIduS6xLaKlQ6BNzRj9TZW8aX9RSa9Pm7e0VFC3iNcqjMggqVtKpqL6bVvpEs669gRQQPtj/KTQtSMudKl93hNz+xMivrRHWzY+nDCyNIa07068FdWgZLIFJdOKRjyBKhYSp7EVaBcJEOrudVd5k/QJ4R2G9fktaWZBsbERQINL0JkmTsXfpQ/Qps22jmcBuFhFno7y3yW0TFMhSO7JPlZhfANWkomAjPtkz2T1c/OOsRBNanA96QuyBzn6vKgAgj7DPvl8OXBd/Q9I6Uyzq06BhROhdNy5ByImTAMbjwB9uwIH8K0EcQnufYz37m557zl0j4WFuS3RnxUmUY+HnzCxwqwQ2YjSo2R8qxIZrgU+4dhn7K7uOXNshIZGlC0+0TRys0wOlRcJtRCKdtPEuZX3SvDvzhdkvj8hvIb+kM505SHXDW71oO7omFy6DI9TOeNgIKD3uH1dNx8CFFfaMvDbfQZrKpOqDSbSfF+cj7wa8g1qy+0P0AHJmMYTuSt/FEyqdE7fs1/vE3OTJynN5+HXKnUreEQ5Ti5D7OAiX/C7T6J2SNoOJJ9Ejb+ftrF2f0TkTqml/vIYnsZk5XltdM2fJFJWqWEmERM1GnvDRmFgZ7PhfAuJdkGsT1UQhCQnNdiG0Ko19GFjB3xi3zshJbLMiq1ENkIa6I8qvmQzc/NMBvwN1AKC3C4wLCBPQJpfcyOVhDU9+cjA+FcWUUvd4P8kf1+mPKzNJ8rKfnDarbKyL0Ge6vHGvnkgcPHwC7RFHeMgWaixH7DHw06xYaOqPO22g== X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1362; 5:EmRqZzFHIKVSViw/eabfp+A9b/w9M1Eoi0ZsuwzbEmAhoVV76+pflyv0snv7OF6i0HwGhJ1Di+ZBbc6PeL3venAERheTlExmEhOFwEBR+7MOhqDZepiFAmFMFcjuVW3hdmgUdmNo0Hz/hEjCMuQOhA==; 24:tYpxPQAHKvANYFZgvRLLs8I/2PoYoehjdxInPoMucdW9ixedNMW54beXhqiZsHvvCiPH7CDjN/cTdOk1gVpjhTeQdkr9zV3rVYOj840tF+w=; 20:7Eqo/2l5uRiU+bz0UXoU41N0tRxQ8U3mDqGEL6OqHaeWawI0uW+b4TfBYAKg8BjMru81bV34e2edCENWNEH6pSe3vLVXavG6PsNpreprA7mO3UzMhZAmrm2Rhg6NJcGqW68v6CzfYg2PposDCf3tbYj+D2Q2RsDiaxsnH3eeEwA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1362 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD037.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD037; 1:dEAnF4J1WA0q9C0Nevn5CFlLmcbLKY2AtapeG7kAuUK/bxgtf8ssAmqnQ3I6Nbjfc+1z+SRlYqjGcuWqlQ+HMu2so/1YoAyYssoAQ4CNy2ZW8tdhl0ikncgd8e/6DBHclffuCZTR/HrPAHgdjbK3G3umnx+OGihTptV4A+s/f8hZAHIW8C//1O0qCTyMtK3o1QOnw46u1HuVnH9wrEt0kppiK2BSqbLZzJMf0E9+cUsCA2rRsMlt77eG5h3PJPwjDyZh/tCVXGxTm7Q6vikDZinDGXqXkexuf6DdAQUVjbSxAcSoNNWNongYKPBjnkqFQABKPqdQYNTUPVd/QouLNodq1cJu1am7rle9Qn7RXGeoY0cheaxbZ1fnV8/IlaTBY9dgacLenA5z8fCXBqRmGEIqBhvYXm5BgWMekkt9NcM= X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(189002)(199003)(40100003)(229853001)(77156002)(86152002)(189998001)(2201001)(50226001)(86362001)(5001770100001)(47776003)(6806004)(87936001)(53416004)(85426001)(16796002)(62966003)(106466001)(122386002)(5001960100002)(66066001)(19580395003)(19580405001)(107886002)(50986999)(33646002)(92566002)(5001920100001)(46102003)(105606002)(15975445007)(48376002)(50466002)(77096005)(7099028)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB231; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB231; 2:OBjyvbaxvBcX8oAQi/Z0Raf96mWJVtic7LZalvMxpdLbinceC5L9wz2EfDfGG7XI; 3:lUwyftLZMkfJ7oV2YvPx2qPWXzEZeAzEBLIMNdql/oqK45YAIktolKIbYtjkeYmOcS22vehB+8RopHMBO5dv4xPaIMVENxbV41gk51YEXgbmsRNC88eKUCfucdDR6uD7zCmJRZemAxtUQxPY24cstqgS33LRkLCXW8o7clWcEyNk2zmB3cAjlsqGoIMfOmw8kDvEgMSKuyWzgC8otPpe9pqKK4smcad2ChJa1T4VRL8=; 25:+gvXawmmZhrP+F6/uDsHQzDx38OF8MPxDk/CaoUYmW1Sm3AxjfsrMk/omVOad9nltxjAO8W2A+rDEOJPKkHC6UKv7OFOjX2zuLTRCgt/aWv4V2TEQtYI4SjOkgvPnmlAKLvWMqCBWb+Qbgd6rkk8xuiXozD84QwE0q1B37WPKPKh0AtkD7TjAOhFiRbuXezf+m23DkSLzkN+/o1wIOj3C8/Rz+k9/L9HkNsa6K94Ws190YHYgBAsKw48Be/R2B7+; 20:++TXGZF8xRmLKw1/aLeP6AfXNhbIawV3S85WsrNjmXNQVfG5qjWkKozXO9caV/8HGFWqGW35DN2yN2L4l/C94H1MrVVlgGTu2usPlg9qYS2sTSKH3nvhr73VpSHnppobITrZtJs4+nSboSOd4BE0Q0H86c7696HxCAEyXzy+1Vk= BLUPR03MB231: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB231; 4:XV73+Mpcls8giRjQl5cHEsHeQxILj392Z+pX5/G66X4xDkuHJKnFCgpTYn2DHPGax6bnBI1ApvRIkg9mMtpSXYJan4fHe+r9o3uAsCdORrVXqY/z3tdnqP4FMFAFa0TJuz5JYHcjTbZcZTnNXET0Z6dRCWHumuvAoyvIAyz5T9ScZIyomKfFMVf7IkKmV8rzTvwAPYzar2rol3fY9TWoIqHJeaB2INsGUEHjVvLK+TK26uMUa0hlTzzJu1k4gXE5A0TAhTuuuZRwWMwEMSxJ4U5Z+czS/sVYN36nb+HgN7Q= X-Forefront-PRVS: 0644578634 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB231; 23:pr4jDcYBkRs6ZfIDk/6Eus5drFtBSYOrVwMjIN8tC9?= =?us-ascii?Q?6L2cN0HnXubELMM2YqxiJu5Ehz8y9tI2LathZ8vMoFOevUvuMyuHZ200NiwG?= =?us-ascii?Q?ad6Lj2cmvdfZqY2KHkdaE4K+9dJpxa91WkAKX6sCyqna2GKCP4FgqqmRbw8j?= =?us-ascii?Q?80bHpN1IwyFReXdeanAgVILHQ3zn2v0E5fH3W0Ku3AiCdrXdrTBmv6Q44mOI?= =?us-ascii?Q?UlZvVnHoPZnmCwTlHml6F3SvmJ2QOLKBUhJGgux43AMdsmAE3u2Sz3H2YlK7?= =?us-ascii?Q?75d7vlOID4gJvbgbUjspuNZteM5I7iia9d+2jD3GYCd9ewx2GG5ifZIBPKdK?= =?us-ascii?Q?xbW6M2vUZLiEG8LufCZUQs+Z7bqPslVtlIwpoFGB5tCdeeTJ2o4rTg0o0b1/?= =?us-ascii?Q?RQsW+GDa/neWKyzL2XeFK4IEx/MIjLMMBopK5FSSZoXaVNAPL20IjubWLsL9?= =?us-ascii?Q?QqQ65798+NVcmik6aggk+j3uLu/HZuV/K4G8Gu0XutBUgxnUEXhc46InuFPc?= =?us-ascii?Q?pfAol+1hYBdC9RBMJfMRhBjOnfQpM5Iwr0atM51tC03KzTMfGhvKXhI3QF0W?= =?us-ascii?Q?yrXQIpWwxAVtnK4GQ/b918qHC1iRhMJNahsHmo/rwomiDOoC2Das/g4T5Wwo?= =?us-ascii?Q?i89R46h6gYFyVDnexEVVlnfKCq6+14ouUT9qxFw6qLrqI6YFm0BmyFiSkzqg?= =?us-ascii?Q?O+cDg1M36BaC7/Sv/J2lrFe5K3h8p0CUXvbZzQ4pRoAIvRezPQETuL7VQFxC?= =?us-ascii?Q?2GhzIj5H0oKocXJUjJqL6JyjWh6O9ZMWH7otkcH2xFIb6V4x7Q5sN/qu1aGw?= =?us-ascii?Q?LpkA0z2Zaokm5te4s/plOIjIhgam+gQ0QlTjpfFjEE9nnF/YfmwiGUBiQdq8?= =?us-ascii?Q?so5TGR75TZXeL6nUxn2emjCxAvpc6/PgRE5z4dmLDWUrmKlfK8PeXG8kpHEe?= =?us-ascii?Q?EmA9HxzNYfLoBn8s5G2RnW3t9j9+/BzCfVJHGWekoK1wlUa9Kg1otKFDoSew?= =?us-ascii?Q?Xdhcu5PAuFLlP0KqbOpCFS7dURAAXJuKFV1LRerLNDRDt5BA3xs01l3eFH1y?= =?us-ascii?Q?3EnvA=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB231; 5:2MDahSqy3n/tMAy9Og8gjo819wNgXjv8pj2hqxWEc0jDCuYMIuDY/4BcX5go56hGS1QfoUQfHSgiUQoQAPCUnhPIW0I02C+dxiocoi+n92Myekr82h8Ue5G/G4cCs69cWo0DvFq9nnJSsDVZUpylZA==; 24:rNE5BtMGGuSRe/IPbO+NS5drPOKx4yaDZ0CwPvGKWDsE6zwvp3hCOGJEVwLFn2ZpztCWbe8enwLOKdcFWXWh9OLXaKXtyj1TRSRmZJzVz08=; 20:u1MO696KFYSv1hZTWlTEfQosikvT487jiUItvMVg+3YhxvJvQqv7Lmc7d/kd/liyHFvKLQZS7FpfBX8/6+Zdn0kg/nE36m4tj844mQkikmreYCJeslX19xINqcHvJg7v6irLM/Xc7hYhJwvbOGqhL7Dd/EDU6dwG4q6pcddk82E= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2015 21:06:40.4409 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB231 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150721_140703_943513_B6326FFD X-CRM114-Status: GOOD ( 13.93 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, dinh.linux@gmail.com, Dalon Westergreen , s.trumtrar@pengutronix.de, Dinh Nguyen , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 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: Dalon Westergreen The Terasic DE0 Atlas board is also known as the DE0-Nano board. This patch adds the DTS board file for the DE0-Nano Sockit board, and not the DE0 Nano "Development Board". Signed-off-by: Dalon Westergreen Signed-off-by: Dinh Nguyen --- v3: Updated skew settings for the gmac1 node as this board is using the KSZ9031 PHY instead of the 9021 PHY. v2: use stdpath-out for console and remove comment regarding u-boot ethaddr --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts | 111 ++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 246473a..29e33aa 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -522,6 +522,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ socfpga_arria10_socdk_sdmmc.dtb \ socfpga_cyclone5_socdk.dtb \ + socfpga_cyclone5_de0_sockit.dtb \ socfpga_cyclone5_sockit.dtb \ socfpga_cyclone5_socrates.dtb \ socfpga_vt.dtb diff --git a/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts new file mode 100644 index 0000000..555e9ca --- /dev/null +++ b/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts @@ -0,0 +1,111 @@ +/* + * Copyright Altera Corporation (C) 2015. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +#include "socfpga_cyclone5.dtsi" + +/ { + model = "Terasic DE-0(Atlas)"; + compatible = "altr,socfpga-cyclone5", "altr,socfpga"; + + chosen { + bootargs = "earlyprintk"; + stdout-path = "serial0:115200n8"; + }; + + memory { + name = "memory"; + device_type = "memory"; + reg = <0x0 0x40000000>; /* 1GB */ + }; + + aliases { + ethernet0 = &gmac1; + }; + + regulator_3_3v: 3-3-v-regulator { + compatible = "regulator-fixed"; + regulator-name = "3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + leds { + compatible = "gpio-leds"; + hps0 { + label = "hps_led0"; + gpios = <&portb 24 0>; + linux,default-trigger = "heartbeat"; + }; + }; +}; + +&gmac1 { + status = "okay"; + phy-mode = "rgmii"; + + txd0-skew-ps = <0>; /* -420ps */ + txd1-skew-ps = <0>; /* -420ps */ + txd2-skew-ps = <0>; /* -420ps */ + txd3-skew-ps = <0>; /* -420ps */ + rxd0-skew-ps = <420>; /* 0ps */ + rxd1-skew-ps = <420>; /* 0ps */ + rxd2-skew-ps = <420>; /* 0ps */ + rxd3-skew-ps = <420>; /* 0ps */ + txen-skew-ps = <0>; /* -420ps */ + txc-skew-ps = <1860>; /* 960ps */ + rxdv-skew-ps = <420>; /* 0ps */ + rxc-skew-ps = <1680>; /* 780ps */ + + max-frame-size = <3800>; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; + speed-mode = <0>; + + adxl345: adxl345@0 { + compatible = "adi,adxl345"; + reg = <0x53>; + + interrupt-parent = <&portc>; + interrupts = <3 2>; + }; +}; + +&mmc0 { + vmmc-supply = <®ulator_3_3v>; + vqmmc-supply = <®ulator_3_3v>; +}; + +&uart0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +};