From patchwork Tue Nov 17 09:53:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhiqiang Hou X-Patchwork-Id: 7635211 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 EB7CA9F1D3 for ; Tue, 17 Nov 2015 10:23:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5D0A204E4 for ; Tue, 17 Nov 2015 10:23:04 +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 B734F201C0 for ; Tue, 17 Nov 2015 10:23:03 +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 1ZydMu-00070C-6Y; Tue, 17 Nov 2015 10:20:08 +0000 Received: from mail-bn1bon0130.outbound.protection.outlook.com ([157.56.111.130] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zyd5s-0002pE-U9 for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 10:02:52 +0000 Received: from BY2PR03CA010.namprd03.prod.outlook.com (10.255.93.27) by BLUPR03MB1474.namprd03.prod.outlook.com (10.163.81.16) with Microsoft SMTP Server (TLS) id 15.1.325.17; Tue, 17 Nov 2015 10:02:09 +0000 Received: from BY2FFO11FD006.protection.gbl (207.46.163.237) by BY2PR03CA010.outlook.office365.com (10.255.93.27) with Microsoft SMTP Server (TLS) id 15.1.325.17 via Frontend Transport; Tue, 17 Nov 2015 10:02:09 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD006.mail.protection.outlook.com (10.1.14.127) with Microsoft SMTP Server (TLS) id 15.1.325.5 via Frontend Transport; Tue, 17 Nov 2015 10:02:09 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id tAHA1ZVE022452; Tue, 17 Nov 2015 03:02:03 -0700 From: Zhiqiang Hou To: , , , , , , Subject: [PATCHv8 5/5] ARM64: dts: add LS1043a-RDB board support Date: Tue, 17 Nov 2015 17:53:22 +0800 Message-ID: <1447754002-40555-5-git-send-email-Zhiqiang.Hou@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1447754002-40555-1-git-send-email-Zhiqiang.Hou@freescale.com> References: <1447754002-40555-1-git-send-email-Zhiqiang.Hou@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD006; 1:U2aiVRHtuUllrlQWFvt5jl7kq3Lr5XpwY4sCvfLIAlIq6OLJhQSu0qbO2msJou6M9J+J9pJ86XedUWAnK18qCMdzeVFsoXkmuv08bFqyQC2MRuidfrBpaBaW2IrNad1nq3x/MFr27Lkg87gtsnr+wx5pKY+ZyAmN5PfecBw/Dw4mktHeuAqew/tGVFOxwMdxy4di9Uv9uHRd9Ss4sTE5p/t2Ftp3XuvkLyT9kSmBOkY3ycMYGNrBxzmavVcnzzhgZUh/asGxpZxOdp5Dbgln9NEjbjmlz7kF8IrXhB5RuaXJy7SB52VIIAepBOu5PFT2C5r2jsGZvSbQ/tAz4J2JK+UCRDQRD2UzBqHch4F4dyP9k3a8JWfElrIcoHhvZXta8jlBiv/HbnMjcViFMmxPxA== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(189002)(199003)(19580405001)(50466002)(48376002)(11100500001)(4001430100002)(586003)(21840400001)(229853001)(50226001)(5007970100001)(36756003)(47776003)(5003940100001)(5001960100002)(189998001)(85326001)(69596002)(5001920100001)(2950100001)(107886002)(106466001)(5001770100001)(77096005)(19580395003)(87936001)(76176999)(6806005)(86362001)(5008740100001)(97736004)(92566002)(81156007)(104016004)(50986999)(2201001)(2004002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1474; H:az84smr01.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1474; 2:URVwNrCiXLcd1jPMJD7jwDCPOqKG+LtzcNcrjmBc7NQAU6VeGI/W65Yx0PxJfgngkG5jd53qVJTTas0zurSTO4QjgHa/o5lYAzGSPsrcM9vYLN9sNcrvJqB7S1w4v0J8KHI2XoB6SlEUq43tagVn/TeP45HfXcCMXK82GMljJb8=; 3:eYFaCCseIelzwzAShwzsxHpLSeFWQv8/Yv2waI1Cli1Y1xeweCKQauan6jYXo3LdHx6XswnqL5QcV8C7LDx+IrQW/GXq/H6MoPtQI42qVsrcFRirOdOoTCluEf1cZJow7egXRubpBS9xreGZIeRYN6CMdDFbqcxXFuKjvtg315gFEqP0uHU1KfN/deCm+J4c+4M5/VPQEzKYNnZS6dl1qLQdnpsYanx5SBxoZjuuQEA=; 25:wjuYJnEzFppaoTfvkbqrde5oNVzVH2i3Jk6jl4WzxgNQsNmnAF2iU//j8AHidxNekGCBB0aMcA59/l2OGLBl+BaDJxuYQ+5zJ8H4Gso0dLjExrTHKcX3FjlaRgZpEpUYvlzZWIyocsAT3tGfUeWpmHTmzSKLvkuVXft7qD8ZH0nE7cYz6L0GNEr/cteuacPHoPz8E4P/vVdMwem8gahqLkNIvi7kWmWHjyPwNwmvmsX0rpsVLy5c07w8EsDfa7RF X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1474; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1474; 20:VuykwGOTiYVmYu1+KJRNW9KvTXFDxaPDpSzSpz/OjnmuDRzkInxLXzStXtCctFsifj3yiXkQwAwk8VJLgQ8zfkT3neObiK6c69vJU0O8AXmmF3P4JRSNCz2GB28X7Feb76XIFUxIfkE+vXeE8QDjrzlb6eooU6kQuJqqXWHc/c8FSY54CpCFhDb8kotS98mhslrsRsJps0S7vyvhGlGLd21bnFL7m/Y/bKFCxMTLTDSECcWmOyz3LFEGQqTvQIujUFBHw8aqllgzRAwoD50lfXdBcx0FvoaW86LgakqjbVB53Xo9kchRlbSw4bLIm9chKJeTmePNZr1brcGMEEMCbPCO+Qcc4q5a8saF+PN5XB8=; 4:3XDdjF86YqP8Y4FxvEbCHYtUexYuE3ObGad5Mh6vKCiEzCB3gtKjuif379GcQI8i1l0iFCqetcTzVn3FXMCIt4Y/5wY9ykKmMMGbpj+ZvO5RxKykIS3OfeRFQnXMTHpxV4mR18cVOF3au0nBC/y5kduoA0HmcO20IjQ686c9Vg6Ay6PmH8IiFVEf4uE3Ixz/X2pjwvmILOXHdEZooEKYBZzWNI8yCwErbpyfZOnuZ51PIrvmLZiI1clVz/zsIi9GZm4LfQR9aSzUMgAMnPA/nvnonI4AwVU1ic+xkDxGuXsn/EuDGFp8i7GEdy3Ke0YJ+qQQvEblBBGfu5hBy0vAljDd4DV9Zwtke+sjVc+GLojl4hTyX1PNPSbFxf55HfVT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:BLUPR03MB1474; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1474; X-Forefront-PRVS: 07630F72AD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1474; 23:/1qAYBs6GCY7cwk2SIUi87UYr2FJDTOMHOgEfkC82?= =?us-ascii?Q?7A+4UwN+gWd0d7ROnfe9nMYuuugKIFKKWsI5Fuh1Obck93d2Ws9vcOyVB59Y?= =?us-ascii?Q?KWB9rWvgDk2IC2shDWNKe1Ppu2n8b8D4ouujaplLblMh+ps8vieIQGxs1gBa?= =?us-ascii?Q?P9TFksXjllyNMQKjdrvChb3eUN6AkxLzumkcltuLr4JwevW7QxdCpV3LtrEn?= =?us-ascii?Q?xNeCc2bC7swHTmheP5NfG1whi02HG/CmOL6qZ0Ptuqpcr+qjQihTrZ81mRia?= =?us-ascii?Q?/04VgwEMZMXPT8a9+mO40wQqCb6eEpFj+GHTNyPdNtkGBYVMDfQLGcdtz2ca?= =?us-ascii?Q?EXJCwhHQtfJbYTiaNia8ohUW9iYI0FSX9QPH48i5zO4zJH11Enb0twwggohX?= =?us-ascii?Q?VGEhR+ZIy48qowiTFs9sHe/JMVhyzbGt+qh41DnLXEwBefWgrAx+W/rHpo7c?= =?us-ascii?Q?RfychToYo4PA5PBUbdzxJPTU+wc2kTPUfpuoEbq4w6CaqhUpwsHdxsFIRPpK?= =?us-ascii?Q?+AJV4aziA3+AXNQyATSV3ppOg0tDxeJEqtTH4uzhwXQmrUhHlzibGIN1i+PC?= =?us-ascii?Q?WUZjffPo6UbKhs/oqIMTsFnQKDDrMzTiPU4xFm8xXy8SlRgyQoF2uju0xicS?= =?us-ascii?Q?qF7O5vrOp+8D0k/0WGIOvtXqabz22nicXV9O6IAu0UyS0pldsws8YYRe01Ai?= =?us-ascii?Q?QvyaOO0POP2gfYpoko/9rr6jb3NOXdszw7TVUcI1fTx5sn3FkYNVUuir+7ou?= =?us-ascii?Q?UZQyKAZipY+sxrS6SWRp0jo3uUUq0I2VxvTaroWOGyY1PMVreKaEPSHxlTcv?= =?us-ascii?Q?hsx3edCm8b1q7i+mFmw/whyh4NAytZQwmQSosM0TsEd9jNY4DvhnSoKbJPkg?= =?us-ascii?Q?MU9ZSVgxnTyv0BuOZkeb38kymIFEbfn5KPJ+OGHXmCkcnrNuQ3+88LYEiXin?= =?us-ascii?Q?i28fers65a1PSAVUuGdYGtEjux4KCcE155QE1LhUYYWT30mbTm+IXb3+dIWI?= =?us-ascii?Q?QpgCxBhIaorM1S+KR6xuDNrd+xs+W6Ix/tmXS6k8UwwRIAmR56Z7YEGxfBZa?= =?us-ascii?Q?JN0zNAikfSWHqcDN4R+DEbd29GeU0V0Tk0gbP7PoI9dO5L3qiMjzaPiy4vh8?= =?us-ascii?Q?UYUV+pPozw=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1474; 5:mARnPx9+ez1ogTq1G3pnQ1OJPrDqNDnyyhH4WDpQpJC/5r4Ir9aSM1yR+OTGCHZPSaai4mGl7Qnpeu2PdA76NEKxs4QwLnjZNm2H8iSxDdh871Cl6FUHimq75IaYaETNFSdpMzomlj8TrxUm/qr8lw==; 24:RD7vLtiNMi4v7tTfJbWVQrobCfaVQpLGZxZqbGPN+a7IbqArdVbpY2F/1PH/n7jdPsthQ9wCw+3hyFcQhZiUcyXWW82eDKxv4tuUI1U5cfE=; 20:251/BTQlCmKFiWw75sN+61qytB53rcP0cW3lC3H5fgBkdqrcTKHiwP0bG1wcuQYJ7n9rUN/fcJc6sD/ux6NwUg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2015 10:02:09.5116 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1474 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_020234_016441_111FA5EA X-CRM114-Status: GOOD ( 19.61 ) 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: mark.rutland@arm.com, B48286@freescale.com, Shaohui.Xie@freescale.com, corbet@lwn.net, bhupesh.sharma@freescale.com, mturquette@baylibre.com, wsa@the-dreams.de, sboyd@codeaurora.org, wim@iguana.be, Wenbin.Song@freescale.com, scottwood@freescale.com, Mingkai.Hu@freescale.com, linux@roeck-us.net 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.8 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: Shaohui Xie Signed-off-by: Shaohui Xie Signed-off-by: Mingkai Hu Signed-off-by: Wenbin Song Signed-off-by: Hou Zhiqiang --- V8 - V7: - Rebased on latest LS2080 patches. V6: V5 V4 V3 - No change. V2: - Remove the useless compatible "simple-bus" from cpld node. arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 116 ++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index c4957a4..f3c2516 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -1,6 +1,7 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb always := $(dtb-y) subdir-y := $(dts-dirs) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts new file mode 100644 index 0000000..ce23557 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -0,0 +1,116 @@ +/* + * Device Tree Include file for Freescale Layerscape-1043A family SoC. + * + * Copyright 2014-2015, Freescale Semiconductor + * + * Mingkai Hu + * + * This file is dual-licensed: you can use it either under the terms + * of the GPLv2 or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that 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. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +/include/ "fsl-ls1043a.dtsi" + +/ { + model = "LS1043A RDB Board"; +}; + +&i2c0 { + status = "okay"; + ina220@40 { + compatible = "ti,ina220"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + adt7461a@4c { + compatible = "adi,adt7461"; + reg = <0x4c>; + }; + eeprom@52 { + compatible = "at24,24c512"; + reg = <0x52>; + }; + eeprom@53 { + compatible = "at24,24c512"; + reg = <0x53>; + }; + rtc@68 { + compatible = "pericom,pt7c4338"; + reg = <0x68>; + }; +}; + +&ifc { + status = "okay"; + #address-cells = <2>; + #size-cells = <1>; + /* NOR, NAND Flashes and FPGA on board */ + ranges = <0x0 0x0 0x0 0x60000000 0x08000000 + 0x1 0x0 0x0 0x7e800000 0x00010000 + 0x2 0x0 0x0 0x7fb00000 0x00000100>; + + nor@0,0 { + compatible = "cfi-flash"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x0 0x8000000>; + bank-width = <2>; + device-width = <1>; + }; + + nand@1,0 { + compatible = "fsl,ifc-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x1 0x0 0x10000>; + }; + + cpld: board-control@2,0 { + compatible = "fsl,ls1043ardb-cpld"; + reg = <0x2 0x0 0x0000100>; + }; +}; + +&duart0 { + status = "okay"; +}; + +&duart1 { + status = "okay"; +};