From patchwork Wed Oct 17 10:32:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bansal X-Patchwork-Id: 10645287 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C41F91057 for ; Wed, 17 Oct 2018 10:33:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB11C28699 for ; Wed, 17 Oct 2018 10:33:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A30442862A; Wed, 17 Oct 2018 10:33:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DCF6E28683 for ; Wed, 17 Oct 2018 10:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oBcajqSttxfcaoi4JGP1LPNl8LD8JZWDF7XlcdZsRKc=; b=T1t5wmUTc/56KI fBAxWViZ2aQrHE3cUoosOYLz9y4pBEst9H1ThppG06lpQ4mmcZzG0M2RQ1jl6vIJqqaVbQuifM3RC wRw2/cdpOyLtWc2k7vI9R8LGmAy5xSIwoYacuDRWaxm9VZD30eDtpHssiRK52flc07BDguWpio/Qb FO7FVHy4v+LHtSV0HrvUcSsYP4WJ30ZiprrpCoA8zDYFfOwj/I9T6EX+bMz0jZlOKQkIj64UProvO fSghBWlnq76TXiTktbrJVV6Xck00M2aixu69flmOwSj4YkOHZBm12iDMB/bU1Bkch2Vz/R0+fxTP6 YRqfYc6cVHlJwthvrycw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCj8e-0001l9-HI; Wed, 17 Oct 2018 10:33:16 +0000 Received: from mail-ve1eur02on0624.outbound.protection.outlook.com ([2a01:111:f400:fe06::624] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCj8P-0001Wh-37 for linux-arm-kernel@lists.infradead.org; Wed, 17 Oct 2018 10:33:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UHtZqpb8LR5+7l7umtuH/O5VVcUak5RouOfXPNtoWFw=; b=wO3I7KZoCdWM54pVaK5FkfeRC80x/a/mzsB+9S5OC+yLi9An+jdCAKT/du6XsNSnCMPFUn8aEFiyvyAbzKQw6LlR7pLZ3VsTffwst8TMOh36QTmiJxPv9lAGXJ0gESN4LK/QbdOOt5jXVZ4nXxmO15stCuWD0rSnpc65IsDKNtA= Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com (10.167.125.20) by HE1PR0402MB3467.eurprd04.prod.outlook.com (10.167.125.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.31; Wed, 17 Oct 2018 10:32:45 +0000 Received: from HE1PR0402MB3323.eurprd04.prod.outlook.com ([fe80::7d5f:a551:3509:2414]) by HE1PR0402MB3323.eurprd04.prod.outlook.com ([fe80::7d5f:a551:3509:2414%3]) with mapi id 15.20.1228.032; Wed, 17 Oct 2018 10:32:45 +0000 From: Pankaj Bansal To: "linux-arm-kernel@lists.infradead.org" , Shawn Guo , Leo Li Subject: [PATCH v3] arm64: dts: add LX2160AQDS board support Thread-Topic: [PATCH v3] arm64: dts: add LX2160AQDS board support Thread-Index: AQHUZgS+umRVNJ1rG06BJmNqpEjJtQ== Date: Wed, 17 Oct 2018 10:32:45 +0000 Message-ID: <20181017160430.22381-1-pankaj.bansal@nxp.com> References: <20181005081053.27105-1-pankaj.bansal@nxp.com> In-Reply-To: <20181005081053.27105-1-pankaj.bansal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PN1PR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::12) To HE1PR0402MB3323.eurprd04.prod.outlook.com (2603:10a6:7:81::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR0402MB3467; 6:oU72J57Y5I4bQzDaJQ1+hlNaQYl5Cnee5YRTDKxLpwyx3Ler9XPkr/msRbWr5lvF5ciAuWq8v2/u5qqJi93Yyeprrl94QxX0GcjebNopow6BNjA65OIz2it7PR7jqQND6SjeyGKNK/N22MyjASfuLt85J4OymwDU/WnU3iGFYKrgbnK8SNFGS5ACb49f7B5Fcx2IYnubP+YV/KgD8C8w3ePiWnVZl48voWFfYWCpqG7YI/q0Vx/Kq1LfH56L2m6aeoJQVD3243oZ+42CTiJ09B20N71SZqm34ksumFbKIoLoeRY3azTwX9r5r0lKf0D+BEgAsQxkwh8Ud+lZTjHn/sYR2222chmGQ5yOQQU/rGHstpXb4O60AVPUiMb8gqrzViAyeE+JklE5IkpHqlROsjVnXau6EFAdP1lkr3A4DZPOED4RLOv+q8B8MKUJ0o3sFuYPj4AA/CogsFDQ7E+W8w==; 5:LnS89UnMeevWPWkhuohZlf8QUpK6dIFcYw2PO0lM3ui2jG5otcJv1d0hk0dR42TOSMtTBefEfOHmrNV47yc4v3K0TpIFlErZli3ZSOZepK+PKBuugJIAf3eIvGFV4e1y+rJzKRc7E26jrZ/od2DZMPSMI8Lm92dK2cXsCGGm7mg=; 7:49ZG2/yTqfTyUpEZ0TmPCnt0A6cSJgJgCO967wGuySmznDgiW4p+2d9ZBuQoEuypjiLCbN2wutHJaFCXXoVI5dcg/Ph2bi+DhfgmI5FvsSPAevrwYKNGdtBWdib2wLkXIC+HmYuip+8lu3Qw0Oh7ck0j/IpzOylA1LLw7k+P+YhJulJ4IYTW4Q+dsqKGtfJApJlO88PO/pvT9LkJRQHQeZFUYvTgijkvweNcf1rRq2dPnlw5VD+aZXCgcJJzt4da x-ms-office365-filtering-correlation-id: e34ff0ce-d7af-4984-2783-08d6341be035 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB3467; x-ms-traffictypediagnostic: HE1PR0402MB3467: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:HE1PR0402MB3467; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB3467; x-forefront-prvs: 08286A0BE2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(39860400002)(376002)(136003)(396003)(199004)(189003)(2900100001)(105586002)(68736007)(6636002)(106356001)(6436002)(6486002)(81156014)(8936002)(2906002)(66066001)(81166006)(6512007)(6306002)(53936002)(14454004)(8676002)(966005)(3846002)(6116002)(71190400001)(478600001)(486006)(1076002)(71200400001)(186003)(86362001)(4326008)(2501003)(7736002)(110136005)(5660300001)(305945005)(97736004)(256004)(44832011)(476003)(316002)(446003)(54906003)(386003)(2616005)(52116002)(25786009)(55236004)(76176011)(36756003)(26005)(102836004)(11346002)(6506007)(5250100002)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB3467; H:HE1PR0402MB3323.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: AzjaAcEE2eW3ekdFoerDEqVFa0l9uovWrilFdtGIxGhrDNBtcY0ock5+++MBk5jxRZXfuU2aX3wJJ1ZCZ4yosKX3v6yQB5GYwcG7+WKDVzW5RDXgzM6HHvCIa1llbMyUCIEAJ7zIQJWnhAl5RYwWnc6SQQEH/swhdxg44ZWTv29dHlcovgzPsvOlr+BAH5p8B3KVHclPnubl6SFGsuraCM4CbM7zVWCuQ4fWxiLRCcaAnJj5Xph1KRC8nuzbtK9RQIXGJmBvf/VbbWB4wdE50tTDxlQkSUq1kPC2SAWGy0sSqBQwwuEUIHROLrYKFGHFXMys2Gn/jGirkVAvw/m2H2Rom2yQgONhaaN1JnivDLo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e34ff0ce-d7af-4984-2783-08d6341be035 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2018 10:32:45.6563 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3467 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181017_033301_184702_FAD533EB X-CRM114-Status: GOOD ( 14.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "devicetree@vger.kernel.org" , Yogesh Narayan Gaur , Pankaj Bansal , Rob Herring , Vabhav Sharma , Sriram Dash Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The LX2160A QorIQ Development System (QDS) is a test, evaluation, and development platform, supporting QorIQ LX2160A processor. Signed-off-by: Sriram Dash Signed-off-by: Pankaj Bansal Acked-by: Li Yang --- Notes: V3: - Updated temperature sensor regulator name in board device tree - Added esdhc controller nodes in board device tree - Added aliases for uart/crypto nodes V2: - Sorted the nodes alphabetically - Sorted the files' in Makefile alphabetically - Added newline between property list and sub nodes - Added and defined vcc-supply property to temperature sensor node in device tree This patch is dependent on below patches [1] https://lore.kernel.org/patchwork/project/lkml/list/?series=369563 arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/fsl-lx2160a-qds.dts | 112 +++++++++++++++++ 2 files changed, 113 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 445b72bd5a36..46b1479b7a6b 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -13,4 +13,5 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts new file mode 100644 index 000000000000..99a22abbe725 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dts @@ -0,0 +1,112 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +// +// Device Tree file for LX2160AQDS +// +// Copyright 2018 NXP + +/dts-v1/; + +#include "fsl-lx2160a.dtsi" + +/ { + model = "NXP Layerscape LX2160AQDS"; + compatible = "fsl,lx2160a-qds", "fsl,lx2160a"; + + aliases { + crypto = &crypto; + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + sb_3v3: regulator-sb3v3 { + compatible = "regulator-fixed"; + regulator-name = "MC34717-3.3VSB"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; +}; + +&crypto { + status = "okay"; +}; + +&esdhc0 { + status = "okay"; +}; + +&esdhc1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; + + i2c-mux@77 { + compatible = "nxp,pca9547"; + reg = <0x77>; + #address-cells = <1>; + #size-cells = <0>; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + + power-monitor@40 { + compatible = "ti,ina220"; + reg = <0x40>; + shunt-resistor = <500>; + }; + + power-monitor@41 { + compatible = "ti,ina220"; + reg = <0x41>; + shunt-resistor = <1000>; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + + temperature-sensor@4c { + compatible = "nxp,sa56004"; + reg = <0x4c>; + vcc-supply = <&sb_3v3>; + }; + + temperature-sensor@4d { + compatible = "nxp,sa56004"; + reg = <0x4d>; + vcc-supply = <&sb_3v3>; + }; + + rtc@51 { + compatible = "nxp,pcf2129"; + reg = <0x51>; + }; + }; + }; +}; + +&uart0 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&usb0 { + status = "okay"; +}; + +&usb1 { + status = "okay"; +};