From patchwork Thu Dec 24 05:30:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhiqiang Hou X-Patchwork-Id: 7915361 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 29D06BEEE5 for ; Thu, 24 Dec 2015 05:40:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 257F0205B3 for ; Thu, 24 Dec 2015 05:40:36 +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 1F6D120592 for ; Thu, 24 Dec 2015 05:40:35 +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 1aBybw-00070g-2D; Thu, 24 Dec 2015 05:38:48 +0000 Received: from mail-bn1on0135.outbound.protection.outlook.com ([157.56.110.135] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aBybs-0006wn-SF for linux-arm-kernel@lists.infradead.org; Thu, 24 Dec 2015 05:38:46 +0000 Received: from DM2PR03CA0042.namprd03.prod.outlook.com (10.141.96.41) by DM2PR03MB317.namprd03.prod.outlook.com (10.141.54.15) with Microsoft SMTP Server (TLS) id 15.1.361.13; Thu, 24 Dec 2015 05:38:20 +0000 Received: from BN1AFFO11FD024.protection.gbl (2a01:111:f400:7c10::189) by DM2PR03CA0042.outlook.office365.com (2a01:111:e400:2428::41) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Thu, 24 Dec 2015 05:38:20 +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 BN1AFFO11FD024.mail.protection.outlook.com (10.58.52.84) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Thu, 24 Dec 2015 05:38:20 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id tBO5cEbm011017; Wed, 23 Dec 2015 22:38:15 -0700 From: Zhiqiang Hou To: , , , , , , , , Subject: [PATCH] ARM64: dts: add LS1043a-QDS board support Date: Thu, 24 Dec 2015 13:30:37 +0800 Message-ID: <1450935037-42930-1-git-send-email-Zhiqiang.Hou@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD024; 1:4+BGmLxNnzdOTkknhk0uI64st/BLn3zevT3E/HnSmx3EWydwxylBaPKNh21et3s3BLhLNJ0ClM0YLSaJDVCjstzDnQp37un6ocaUth3CklFy/Q1J15mOFmRjThcqgKjgjMP5U7mL077sFajX+FdVgScH4lFq0dI5Ua/bxVSbfQyW5IxydLgQGByZpkHaWoNBN8v42hGJdoEFYoXMMNuQXEmN4MyFTxQz0lkkMllk9CzQqbk2PQbv6XKWMNXQa/rNbvKtUUh1fGUstfYFy7pV0glJfLjFwR3NHi2rLByB9COhH0NJIHnutwqc7k4HUh3qZ1YMJuAipf+kkUV+abr4S1ioh56x57NX+bTK95Mt+XsU4aeEvUamyt3+QBNSCIirOSNDiTb7Hn4ARnb0yUmSyPIMMhL1Dqz2/CUqYhDZlSJmo9dzXji61VwuB1ixDOlg X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(3190300001)(189002)(199003)(5008740100001)(50986999)(4001430100002)(107886002)(5001960100002)(81156007)(47776003)(189998001)(5001770100001)(97736004)(1096002)(1220700001)(48376002)(86362001)(2201001)(85326001)(586003)(87936001)(50466002)(19580395003)(19580405001)(69596002)(229853001)(11100500001)(15975445007)(77096005)(5003940100001)(6806005)(104016004)(50226001)(106466001)(92566002)(36756003)(2004002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB317; H:az84smr01.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB317; 2:04JEVyNJs+3VBt7hW6jinyfDLAqkXlD1vg/HP/vlyG1t0tKtj/BOdDBDWHkgNtMy3reEHWxV7Z54iDZ2tgkqj1ydf08kRBxIpfK0XbhjB/wKqCBBY37nDaBBafx9i1h2zlr4HHR5M2xAVbUCVSx7gw==; 3:KkgH+XwLS6xI3CVkc8Ofedvo3DlEnrybVbuWjzj/T7WgHgOHV6E2sywfS/coA9dhbU3SndxIc/qsVTb8eu6Ixutz6qHu1++q/kSggyqR/5nNL82UhC8zYZhhZqddmoFgvEnMxLejA/8XdLXXnXQiAkVPrp6kZCwrGICBaS2SoWYzCxAfa/r9fhl9YMwZNPGgipZu6NUNuL6eWuqR4RwuR+XJj2zKqZIPsdg4T/5ddoc=; 25:ip7cybhmIVkBK+O9xNunaF81DOxXe6SYJONRAjSt3PDHn+VfR6frK6awjZkDxkJAVRkObd9hW9maOahlfUXGbj5O3FHy1ndlkXdJtdQe1bu0/Zv8W0Auh46BEnoR0DBJ5NOjkxjDbpMf6PiK8/+K8fZIdlx+zxIw5kPbepDE73xH0IgvmmuxNGx3woy5jEsnuFpwUBuiD8oex3czE79v2+MhIt9b5kn4z09Y5UEHHJf+4UKtwIKG9TVfmTt+04bT X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB317; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB317; 20:TPZ9XRFOdCpOzZfxI5VR5DCdGam2t0zTwBJFi+q30mG7zSA3LlNW6PybpgVSpYAdsS9gOwgRObiUZhl+gPi9DYLTyoaEBbgmJII73wW9nSPa8W71pe8Dh2rRONNgMJDeAYXVs88EBt4QANtjNszfhSDywJxdoeKWhxS+1ojbqmG5USpOXAt0fcbLMA2IioA1k3cKZRZqkWUxNvUJRBI1233yr8bcwjR9wmN37/X00Za8nFGayrk7FT2e/7rzxFLxBG/JZ19PGjwZuyXqg4+4NQ5DghkrbTgTwWNlNkQxfl8SS9EHiXSOwVpMBxKx9n9u2zbXXtP2Bx64gkMZW4vSUwJTr/XCHZLOD+GKOk119c8=; 4:apH/qGRgn9/50ynMmDbnz7ql2sro7HGL8SgS9ry4lzinXKWYeV83T0rWtgwtKfq0x8tdKq1Xxx9cQSP1wmkisHJ0dTy2eMLpJCZ2To/AUeeIVFcA2Iigv1d4H9OfrE/w7HJFYBYQBYFhFs0kqnJaDn7Eeh0jbZHNieY4RC2yUOquAZW9FYzU5Ax3cLToUg5KolmvOfUJP1fSyjriIwxM8zReJ81JOUnxBoQ87EaVMr3el+Flpzie2g2yTkmGdw7++IpawbzqX463M2WK7xZIYT4HUpE1zlvBhiLFUC6hnq92QX0XsfhTgqZ7DQFsQ8aohsQmuWFFn0KEZoUcDxg+GEDd7pMYnGscixzMlRttD9/BBsB8TOFKwciUUHf6rMhW3R13GaTsOxDETTOgo+H+mWtJb3RUnls0mDCMoraP9iA= 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:DM2PR03MB317; BCL:0; PCL:0; RULEID:; SRVR:DM2PR03MB317; X-Forefront-PRVS: 0800C0C167 X-Micro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8RdTbl1pQI7xIjax3fFrQ5eZa3hhX51njUt510iGkKzDBGttMk?= =?us-ascii?Q?sExSGKwnv6j/Bkuz0ubZDtHFmV3mNe6Wooo1AOybe4SHzDqMAiJbzJnMKTff?= =?us-ascii?Q?zbbm660KsBltGv2J2B1+uBfu1LJZVqAdYdd+tjlQl5E+bVDl31ci7LkgZskb?= =?us-ascii?Q?PsiM2FTL4SjCmn3VI0PNN1hwMY1SjqctcyNJVJI8MpqgeCaqIWKAyPTQi3XA?= =?us-ascii?Q?hWC1ern+ABrZ3DXMLydGoIN3YX?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB317; 5:f31vqhn4XEBk1W+4s4nBpPSOi/2wYMjxX3aranrEK9ZndDoer/I+FtFrl7ySvV3c4QvV7KdbF3NNzLs8oiJ/hVczQGZjCGyw7rxrbl8SpUa/dC2AAl0OPccKbH13vsgx08D2XKR+AH3TSI8Jlg/Ykw==; 24:+dU3otiu1IdZq1o9vskdm3uM98iN55Lttz6hlpFLaoF0xy8LnhjwPorh7BnJVTi+31Bme8jTgp7uwN7Kjs0C7ZgMfpsGNg0G/Xe594LE3b8= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2015 05:38:20.1030 (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: DM2PR03MB317 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151223_213845_174016_CA60EF00 X-CRM114-Status: GOOD ( 19.06 ) 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: scottwood@freescale.com, Mingkai.Hu@freescale.com, Hou Zhiqiang , Shaohui.Xie@freescale.com 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.2 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: Hou Zhiqiang --- Dependence: https://patchwork.kernel.org/patch/7635141/ arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts | 167 ++++++++++++++++++++++ 2 files changed, 168 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index f3c2516..1423fa4 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -2,6 +2,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 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb always := $(dtb-y) subdir-y := $(dts-dirs) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts new file mode 100644 index 0000000..8c68620 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts @@ -0,0 +1,167 @@ +/* + * 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 QDS Board"; + + aliases { + serial0 = &lpuart0; + serial1 = &lpuart1; + serial2 = &lpuart2; + serial3 = &lpuart3; + serial4 = &lpuart4; + serial5 = &lpuart5; + + gpio0 = &gpio1; + gpio1 = &gpio2; + gpio2 = &gpio3; + gpio3 = &gpio4; + }; +}; + +&i2c0 { + status = "okay"; + pca9547@77 { + compatible = "philips,pca9547"; + reg = <0x77>; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + + rtc@68 { + compatible = "dallas,ds3232"; + reg = <0x68>; + /* IRQ10_B */ + interrupts = <0 150 0x4>; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + + ina220@40 { + compatible = "ti,ina220"; + reg = <0x40>; + shunt-resistor = <1000>; + }; + + ina220@41 { + compatible = "ti,ina220"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + + eeprom@56 { + compatible = "at24,24c512"; + reg = <0x56>; + }; + + eeprom@57 { + compatible = "at24,24c512"; + reg = <0x57>; + }; + + adt7461a@4c { + compatible = "adt7461a"; + reg = <0x4c>; + }; + }; + }; +}; + +&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"; + reg = <0x0 0x0 0x8000000>; + bank-width = <2>; + device-width = <1>; + }; + + nand@1,0 { + compatible = "fsl,ifc-nand"; + reg = <0x1 0x0 0x10000>; + }; + + fpga: board-control@2,0 { + compatible = "fsl,ls1043aqds-fpga", "fsl,fpga-qixis"; + reg = <0x2 0x0 0x0000100>; + }; +}; + +&lpuart0 { + status = "okay"; +}; + +&duart0 { + status = "okay"; +}; + +&duart1 { + status = "okay"; +};