From patchwork Tue Mar 8 02:25:39 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: 8528821 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 68E68C0553 for ; Tue, 8 Mar 2016 02:37:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5980D2010F for ; Tue, 8 Mar 2016 02:37:19 +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 42E2220108 for ; Tue, 8 Mar 2016 02:37:18 +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 1ad7Uu-00069F-Da; Tue, 08 Mar 2016 02:35:44 +0000 Received: from mail-bl2on0072.outbound.protection.outlook.com ([65.55.169.72] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ad7UO-0004HH-Nt for linux-arm-kernel@lists.infradead.org; Tue, 08 Mar 2016 02:35:19 +0000 Received: from BY2PR03CA011.namprd03.prod.outlook.com (10.255.93.28) by BL2PR03MB308.namprd03.prod.outlook.com (10.141.68.26) with Microsoft SMTP Server (TLS) id 15.1.427.16; Tue, 8 Mar 2016 02:34:51 +0000 Received: from BY2FFO11OLC003.protection.gbl (10.255.93.4) by BY2PR03CA011.outlook.office365.com (10.255.93.28) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Tue, 8 Mar 2016 02:34:50 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC003.mail.protection.outlook.com (10.1.15.183) with Microsoft SMTP Server (TLS) id 15.1.427.7 via Frontend Transport; Tue, 8 Mar 2016 02:34:44 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u282YXce030182; Mon, 7 Mar 2016 19:34:38 -0700 From: Zhiqiang Hou To: , , , , , , , , , , Subject: [PATCH v4 2/2] arm64: dts: add LS1043a-QDS board support Date: Tue, 8 Mar 2016 10:25:39 +0800 Message-ID: <1457403939-12080-2-git-send-email-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1457403939-12080-1-git-send-email-Zhiqiang.Hou@nxp.com> References: <1457403939-12080-1-git-send-email-Zhiqiang.Hou@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131018780906717245; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC003; 1:tqeMQOOf34vt49Q0Gwj2z/0hwCyhyXgYbbvVyH5mE4FnTMRFx3hvzEfdbSQRNKQ9dIyTAXw7f1STpPef+1Z5LtRifjqSeljYc1Q2u3P4b/Qlp0qB5TQl8XQbtMk8ImxA27Az/cc5Na3Oss3xQKIeWXpWgds5CHGS5bK0yxGSzWa1smRZ09zoP40N5NRNqmiTRbErjaNYjVRt0xhcTEX49jCdWDai9QXij/mvgZQtOZEjtNBlU8vn/tIKD383K9sCG3DdojoagMGdauN0DcwtHpsTYJsA7d5fl2ZTlLFiqrKtOmAHHh1Zeu3umQlnY1obIiOUFAmVWTlPZSxf9GqzMVI1LfA/RFrf8qU4mN/qHJT3wEF4+/evrVsYkslCFct5OLjTmMH4VNQR8HcEy7A4029zBfRfTclbhhGTPoUHsUorxdlPTLrbYdJdG4UOeuTKpZRHZ0d8i5vcAvRJmBPdplfYXVo1H5fIRpdwjIKniTO1LJ1sFNro0JYmsMOw4uouoNyYwCpjrigdE41IP+57kbgSPLjjo2YkFpvFgnV1DPUB4buYK/cGj8e8hdWVADLp+WM99ELcYU/UEmaEotVMZOFmZAFHVstkYIUUy9xr5fQmEG+yIKIXj4tbZ/TE3/vU X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(339900001)(199003)(189002)(6806005)(36756003)(4326007)(105606002)(229853001)(106466001)(5001770100001)(85426001)(92566002)(2906002)(1096002)(586003)(104016004)(81166005)(2201001)(19580395003)(50226001)(87936001)(77096005)(5003940100001)(48376002)(1220700001)(19580405001)(50466002)(2950100001)(189998001)(5008740100001)(76176999)(86362001)(50986999)(47776003)(7059030)(921003)(1121003)(2101003)(83996005); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB308; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: b0deaca6-2cf8-4a62-755d-08d346fa393d X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB308; 2:NH8zaTUrl0mDNV9AUo8jrBjE12E5ybF4Rl31o4dPmDRWGqfc54WjBagoXcwN2vy7YymETlIuUjfD8Cv6FTc4FE1v1omemUEX+pr9wSxbkgy5UKuWyxiWNRyChKHzNUIViainEIEMAItr6Co9erlRMRMrQc6QdyNbY1fkL8bCzrFyciGqxKAm1kCmyck2OuLB; 3:jrLtwPDJRVZrvrvQJWl/9ygXslStFZIj2pTrPzZ4cpbRBTXjBGtNgYqSy+GevrDSS7pGk0EElWZsxLKdhipFlfRsRYcmHkHTEmdwsS2uKlfLL9pxCUqr0bhJTQljQ0mRTZVMH220PpkKakJ2GKQpnOJcTBraF3AS9JhqdhuXGOATDxxJ58vhr1xZHkLwnjE85d/XF8j79k+4u0I5L6i5h7fFddyKP+u2TcuCWecDJ4c=; 25:WA5tVD624b4A8M6Nvj0c7UAX7/i8iPRmVqusHujYkrtqINBU1/cCUubHGIq4kUVFTSvoYWjFjyAheocld6dLbm0aazOipJK/arTPG7Curz5zC+gKx6Dn/RIFwYf3mZs6La05FWH88WQd458yl3gTfOy3JhIKbwv1kuWJcLi5LPnIn9zPAHPVqJ4EZYlpLkWzhYz95HdbYItk1zaDkLaNgQQxfabBoIwfzGvXH1Ph83EH2bHAkv0z547uvpPIP7aSYJJqKQrE5uOHKoJLPxmK4V/F2h40tYCvjzrQNqd/9/MzepW1o84rKBmUhsL8a0IXEXLlsJFcvli5/E47CHe0eg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB308; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(8121501046)(13018025)(13024025)(13023025)(13017025)(5005006)(10201501046)(3002001); SRVR:BL2PR03MB308; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB308; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB308; 4:zSBXyKM/3XoPszrmqEnsL/brHKD7xxvPXsgtld0Dho4B0Ps8swkHLbs2ChtxGj3SgQlRtDJuxpYVjKuvpo580cGIjoQ+iZ7m5/86KUAHmpMA/9AOa/w00moFH4Ygv4yOld/ZgV0pc1yhquxs/iYvkHQBPEf41cfLj2Z5PYAsz6epTx4XAE+MaUVqZhDvsTzG/JmP2Z5aH0zymvCWDTALHzWUQ2WbcM3ynhMqrDO6VMcvRmExjbV26+aAt543X6quWnBl8dH5zmqbWTPJhYpJgaDGJiqn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qjk7w49rp/1/xVBSUtvW8MF60vFsuvx/H+rYCjbPPKw2?= =?us-ascii?Q?ydWLRrFsSrIEckVdKfK2ur4vPhGhXGnTjr2YcoJtc27NAl7XuInVO5Bky36U?= =?us-ascii?Q?zcxhpdUDXZFUAF8qeV8a8kJBRywGsqly5xYSPMUj2ztLALcfy1XhzoczdRuO?= =?us-ascii?Q?5IbKAtZDqOO3JYzub9qtFMiFcLsDpskqhguRuYpOoLnHERr2kGKE+yEBIP5x?= =?us-ascii?Q?LltWm8N7Ab3n8x2wBxlfStI8rP9WLyQKCpF24K5DuENuF0ASRgjL9TIs8iA2?= =?us-ascii?Q?zZiuTTondMYjuLBAk1SD9fNb+EKbnQkmeYTIirzl+Iuh2vGHw3+D85LHevF1?= =?us-ascii?Q?9O/4RgQgNT4desIkKUQXpR4tPLk8i7UUKnxyKgU9YY9pIuKkbcDSCh5YIJDy?= =?us-ascii?Q?p7b1Ws5mD/TLfGET59awGPL6cg?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB308; 5:rt6jAuemiuzzbH96mSBpseph7bMA7VMv6WoIh4kUQJDRrzRJiHxRhuf7lTeNRFFT8ox7fVX3qA0kfbiaZkg4y5jlD/IDMviAOHjxNXuXTOhwvCUmAwld6ByplFH7yFRXcMkIrLYeDaY+czOQSq//MOUfqqzedzkbioSVLF7kPuM=; 24:jvZ49xUMwFtCXHBrbrlMlcX4PEgsMaA6etJ6UhRoYMWuv5Fv/lvU6qFILYhtPDE8JF+SdHuKL5cD052iYBqhpCWDl1txUq8CNI3YAssv46w= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2016 02:34:44.7126 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB308 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160307_183513_505892_9167D10F X-CRM114-Status: GOOD ( 18.27 ) 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 --- v4: - No change. 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"; +};