From patchwork Mon Mar 7 11:30:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 8518761 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 6532CC0553 for ; Mon, 7 Mar 2016 11:43:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 53D882015E for ; Mon, 7 Mar 2016 11:43:14 +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 F3E4B20155 for ; Mon, 7 Mar 2016 11:43:12 +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 1actWC-0001dj-9S; Mon, 07 Mar 2016 11:40:08 +0000 Received: from mail-by2on0070.outbound.protection.outlook.com ([207.46.100.70] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1actW5-0001I9-4i for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2016 11:40:02 +0000 Received: from BN3PR0301CA0066.namprd03.prod.outlook.com (10.160.152.162) by CY1PR0301MB0651.namprd03.prod.outlook.com (10.160.158.145) with Microsoft SMTP Server (TLS) id 15.1.427.16; Mon, 7 Mar 2016 11:39:39 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::152) by BN3PR0301CA0066.outlook.office365.com (2a01:111:e400:401e::34) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Mon, 7 Mar 2016 11:39:39 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Mon, 7 Mar 2016 11:39:39 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u27BdOWE029273; Mon, 7 Mar 2016 04:39:32 -0700 From: Zhiqiang Hou To: , , , , , , , , , , Subject: [PATCH v3 2/2] arm64: dts: add LS1043a-QDS board support Date: Mon, 7 Mar 2016 19:30:32 +0800 Message-ID: <1457350232-12749-2-git-send-email-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1457350232-12749-1-git-send-email-Zhiqiang.Hou@nxp.com> References: <1457350232-12749-1-git-send-email-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131018243793703270; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:T4ku2IOy7/j0vVCqDbaiEus9t1oRNm0harziRzkuNLeC2EIJktW3s+RE8w2+xquXRMg+GpP00JMWkxYBWhD24O/0M6MdA/Uw79Y1HP6AwYHaAKlvomozxSivA096lg+zvgahRu30QBEsQDZU8iT9V1fYHUGVxleHStqElkr63KoAP5fLzaGE5xGRVLQ0O5ObTo31hMT7YI682IKh94rfoO9q/PubH1mS3tIY609B7W0txnmdI9Iyw3+AdrlgSIOj56uXHVy46McLfWss+k65JcmXwnjAdb9l1yMZpmYx9G2Y6NFdDqe1a4n5yX22AG8XUmHNP4kJ41XVJpu3Q/nfshbDIo04lJt/Rzp5H5EZDEVig29XjerzV1jocM/O3/FhLd3Iu/0np3khW/CohjKKIXh3rsuGQYNIFlWlTIDHfa5XDGaDfyEd1iwiQXAOjvh65Vu+2RWU+o2nvHBkUa+OKEuhHLWM4dmQPTCYtdcJXOt/10S7A8/3dyi1MV0DvPBVKgsdD6hsGM1RoqqnKGZEUAzCRKQFfzJeP9jJpTOLC9uy7JIj1a34yiK/1y5pNfxbCR77M+LDIbJauBbY/HphxECF/3S4SDZazxeNc5yrCJPwZEcbtjEkuDoo1cRhg0Tn X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(5003940100001)(50226001)(50986999)(76176999)(92566002)(85426001)(106466001)(2201001)(86362001)(5008740100001)(11100500001)(19580395003)(19580405001)(6806005)(36756003)(105606002)(87936001)(50466002)(47776003)(586003)(5001770100001)(1096002)(1220700001)(77096005)(229853001)(104016004)(189998001)(2906002)(48376002)(2950100001)(81166005)(7059030)(921003)(83996005)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0651; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d45b3dba-3595-4758-f00a-08d3467d2adf X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0651; 2:n1AcxE5CugCpK1bft1QAxu8JC0nrQQ70e5Y3pm+Mz57i4XHXUoRLKiFZ3ykgHd3F9Ucc6sheO036viTXctJv2TVchNiTu5lhQJogP8+wQMTUvt6QI9lGHJO8gUiRnm+MQN1Q7hgUospQtJqK2GXkNAYKgRoIjscSvhJreMuEp1yUxsXBlnYUH5goGZS1ydhy; 3:pO+xq+1DJamD+e7jvZEdCWH3JA1iqpELPpbgab0bzjrujeCi9kWFEJuX2vGsHF+KoIP3reqKP5HTeUJA2NTQkUrlIxyeoclvBavOxNxo3m2oWGktcejYhdIJomWDRVeTsmtRXl3mGq+603Y4QHRSSE3R+gwjZbP7JCcttsu9Gwrf3XXxCj7qjQ3TC/oVG9w+LffXu8qcnBnPUXzN+40iwy80mhliNYtdjlKjoglIiWs=; 25:2JuTZo0uSObxzWqK9ilEO53L/Sxga9b3bQTwUrRpPQvc7yQttEfU3rObH9KneZ3aFAj1mR/St379NC3kWqAk16Dqsipfrhrote+8LxGRd6J3K0RzRjE0rGReOD4A2vPIfOEF/gAUpBhgt648f9z7tTBHfLrh6p4AcG/dFmvGBEJmlU7Dy29AN6AR1PaZZan3Af7dummCf2ziQiNh5udyg9hiASGcRJSf08xnMKedMblpAJKDJLUB356UMb9UrkgKaYaK0IsjrO7G5qwNNaE1oeOljnUv6pG8THN3tcF1KQJH3ZV9p2ECXScE/LGJ/O1NghKq2Vvx4vBAoiQLbiJTOw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0651; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13024025)(13023025)(13017025)(13015025)(13018025)(8121501046)(3002001)(10201501046); SRVR:CY1PR0301MB0651; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0651; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0651; 4:vmBNfgru+zWi5bfcCuJbmVgAPDP19mUNOTxORlgn7bDmHSB5ylLKXBnZaKQwD/FeV7s2sCan1hoKQ1+c+T7RA/MK4d8Fm1yy3BckOKUg4G/YEjC3bW7iFNr6FEfUSLAju9Cnbo1NOao1hy99cRni6RpB80udOlQusSnfPWVPJba6PpuqgR/I8xM3kGle/JL5Nwy/NpC/m/plOW8qH+Hcc8D/vu9G5tRVcAvAHxt3ECPMblc1DJRODwLL/PsFe+u639ou4Fi25BQcsAsJLYyJ+a0zvd8PjpSqbdT5OjUkbU4iqN6xGu/bO2HCCkUPt+h8naEDCd+ijbDPgUTn0rQA+SHYqzQBp0NG+K2lqmq5YgoPAC3RedrnYVnzjF/mSL8tHUZvpdbbvIxZ8CpMTbJ9e8k/x1M+122xI/Z1ihbryGHNoTtydPA0XlzsOEoDEXI1yfeR9At1XfMUX5i3EJzxQw== X-Forefront-PRVS: 087474FBFA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0651; 23:2gItXsNWxq+9vndkxVOeMRiGYY+MR1J5Ei78IkS?= =?us-ascii?Q?37KvgndKPr6JCdYmavnaEkjxnbAkQE1XqUez+5d3skJgEWSOAMjt1b3+AQLi?= =?us-ascii?Q?bRbhGOjpar3WYC6ZrL83Lk15tSoeYXh/wPgJJaUvDYfSRB+adLE0DdWg2iTE?= =?us-ascii?Q?nYO6p2doLNHSIWqLQZhGeDaa0xZXxt55+3tK3/g1TiWH0IxqcCSru3KxUVR7?= =?us-ascii?Q?KBhzDZ7zME4LgDGp3XvBMsJSZGrzQ4BSIlD27o+T90vab7AmYrd1AUpGlzrn?= =?us-ascii?Q?+UvilOp6vUcq+cP0ynV2ACK6kyS4cdbuhQwKg6PJkTNGa9tYzpuTye08GfcU?= =?us-ascii?Q?fBGa0sKD7cvyKyknX5UgBxiauTQfT5Gj9mc6P5SbiU0boQcLC1XQ2VodzM3x?= =?us-ascii?Q?YB5YNLhIkXn0H96SlvcwejhJHKq62k4BKv/JTzvqWxJ+EGCbiGER8fgfJEew?= =?us-ascii?Q?f2gwz3/VeYxBl60q0ZI+iPHWieDyXLDGx3ofsUGlKPHwUaMzpFrFHmRgnE3s?= =?us-ascii?Q?/cxF5DEUVDx8+3w1MqP3VeXPc4TIXVfjcmTUp/6Zzv+sVuGter18duUG/qEX?= =?us-ascii?Q?2vkySov0baUfezkgv9NsulcBQ0a4wU7STfktTacCQSlYW1bRCWUXxTPNhWcj?= =?us-ascii?Q?LkatiloigQchHE0yZNv7tVwwoRSg1KbAl/7R2UZxjU459PpWM4xQuEwp8hT6?= =?us-ascii?Q?EguZlStVQLHAG3dgPshbsRirdnpp2re/IiYjmbhHKFrUWll1uuHzofw6zxVm?= =?us-ascii?Q?Q42KlFuqFJ8A8B482SQsF7QOygUehy7ZbAYK76AwOzWCnPyCadR6PNnMh7kW?= =?us-ascii?Q?5WtaFPiT6r3J9sCj6WxKvGq6fF+HCLnAtS37IaPxGUbdEsSSS6j1yoNNTfHK?= =?us-ascii?Q?q6hfEnX5pEYTRLqUArlvu9LJnq6bMX4DWFKna6oYUCKlR9OX0gP8aqcXVoiS?= =?us-ascii?Q?DknDmbkCXRwvtt90vVfZV4hN+tBylfn8vyNTaiIeWnfKCFUOCNuB1yNwgO3M?= =?us-ascii?Q?a8+bh4ZAkB0sv74xXjO+7Bzvhicy9+sBpMlBcPPDa53W2Nb2mNJ/w9+yM9h5?= =?us-ascii?Q?yz4dFU7OHOcT9ZySFfOhGWnF5y2QOVRhY8iogMVAiKNngVI4kzA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0651; 5:y35ab52OKIdBiQzJWaLR4B+dFA9RX3IJyiDrehTVs5qTWPc7nJf9sh26LlYDKBhnV7d1W+2WTxowhMUlW4tsp2NFR0UZFmTfy5rImqhqi804J26FWjSPJS6vkWtv5r9L7YEmrT3VlbEzjaYCVLRSKdAkv+fTdd7DPyfAVLBKo2g=; 24:+W9Li2q9enkWmrO/q2RBgSoPHwScxFYBiqBZBWyIg1F/COQSRiYk0HyWpO+prZdC1mvH6Et7kacGnHO2LvJFRaroqtcArbnD40/xsncp9GY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2016 11:39:39.1831 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0651 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160307_034001_402785_9F6626F3 X-CRM114-Status: GOOD ( 21.53 ) 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: Shaohui.Xie@nxp.com, Mingkai Hu , Hou Zhiqiang , Shaohui Xie , Mingkai.Hu@nxp.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 The LS1043a-QDS board is a high-performance computing, evaluation, development, and test platform supporting the LS1043a SoC. Signed-off-by: Shaohui Xie Signed-off-by: Mingkai Hu Signed-off-by: Hou Zhiqiang --- v3: - Resort the nodes alphabetically. - Correct the compatible of nodes adt7461a at24,24c512 and pca9547. - Change the name of adt7461a to temp-sensor. v2: - Add root node compatible property 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..97e9906 --- /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"; + compatible = "fsl,ls1043a-qds", "fsl,ls1043a"; + + aliases { + gpio0 = &gpio1; + gpio1 = &gpio2; + gpio2 = &gpio3; + gpio3 = &gpio4; + serial0 = &lpuart0; + serial1 = &lpuart1; + serial2 = &lpuart2; + serial3 = &lpuart3; + serial4 = &lpuart4; + serial5 = &lpuart5; + }; +}; + +&duart0 { + status = "okay"; +}; + +&duart1 { + status = "okay"; +}; + +&ifc { + #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>; + status = "okay"; + + 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>; + }; +}; + +&i2c0 { + status = "okay"; + pca9547@77 { + compatible = "nxp,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 = "atmel,24c512"; + reg = <0x56>; + }; + + eeprom@57 { + compatible = "atmel,24c512"; + reg = <0x57>; + }; + + temp-sensor@4c { + compatible = "adi,adt7461a"; + reg = <0x4c>; + }; + }; + }; +}; + +&lpuart0 { + status = "okay"; +};