From patchwork Fri Nov 2 09:13:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10665171 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 C600A1751 for ; Fri, 2 Nov 2018 09:13:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B029D2BA63 for ; Fri, 2 Nov 2018 09:13:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A467E2BA78; Fri, 2 Nov 2018 09:13:57 +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 1CDD82BA63 for ; Fri, 2 Nov 2018 09:13:57 +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=yJhzGHb5Z3cxP3JG4VIzIen+FLPabIqH9sWUMmgYmDI=; b=UteCOw3qTsptgC BnSlgtXqrJFRsqtJ6QyhUIEesSIxTB/GzU7+AZ7dNz5Dkuyjx3x7px0LConsDgT6jLfXdE/X72Y0M ddKpdJfnGh2YHYhdpmnw+dL0NIIQdFEjqZ2zlkPi3ECn2d9/UhgSVkbZ3qZZlAGsiFM0mC0yhTe7N NOeAhxbKq+lGbHaZcuCOl9AOuWrb5SafrOBABrSZzo/2Y41g8YH9RpMmJubnyuQCz6FV5rysB5GR8 0Dr0MGF5dyQAUQYNXfU7/EjZPtws3e4brvJ86PFvEBb392SfogoA2tW9R9d1RlLBO930Z3lo1uJl0 6kh361LFuvGnClmAuWvQ==; 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 1gIVWb-0006uX-Dw; Fri, 02 Nov 2018 09:13:53 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIVWJ-0006V1-KT for linux-arm-kernel@bombadil.infradead.org; Fri, 02 Nov 2018 09:13:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PrM8AV+REepWcftnsdIOcJWHcLQbitr1svt5FTEcLY4=; b=exDEWMVJ67VxswhxLQjMFu6xQZ TzvdY7bphuVWpluUwtih4teByahmPXLD95uQaSegDCalUTMoDk2QULtVDyFpjxbN960Hw4H2G703e mpYIv9JaD8HHzovaa1O1Duj501+jsVSgGhQ3zwWB/oXHLy9Wa7fB/gLUPsQL3sX65MNOE5bDu8n7C BZx1pg710HEqa6nUA+uhdC0kNHHUM1rE2AvNT+lVvnflRrgm1SvuGgr7wIOH833PGEHgjbmo2wOOn 89te0y7bQEJQNdycve/bWnJm4gTIJfrsGHe8y81X/Bd647IUVUK6/G0yc4C2/aY/+TwcSKNEJcVlf BIhKGADA==; Received: from mail-eopbgr10079.outbound.protection.outlook.com ([40.107.1.79] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIVWE-00041n-N4 for linux-arm-kernel@lists.infradead.org; Fri, 02 Nov 2018 09:13:33 +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=PrM8AV+REepWcftnsdIOcJWHcLQbitr1svt5FTEcLY4=; b=wnOilPMk7sIi4NX2wQORBtu7DWqm/DrjP+h940OuHnKUeiGE4nIAioXSpIUqiYfoNuBbphTeEu8no845NyWvoyobTG42tvmOnVCMa4T5HVRw/svjZl+NB8iujImZ3VvWMU5TZQaTCRf44JsLDlDxG+DtKd75g3XjQwTxzrb0rXU= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4612.eurprd04.prod.outlook.com (52.135.149.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Fri, 2 Nov 2018 09:13:16 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018 09:13:16 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 09/10] dts: fsl: add imx7ulp evk support Thread-Topic: [PATCH V4 09/10] dts: fsl: add imx7ulp evk support Thread-Index: AQHUcoxKUS/wTvn/uke+eVCf+5unvQ== Date: Fri, 2 Nov 2018 09:13:16 +0000 Message-ID: <1541149669-10857-10-git-send-email-aisheng.dong@nxp.com> References: <1541149669-10857-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1541149669-10857-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR04CA0024.apcprd04.prod.outlook.com (2603:1096:203:36::36) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR04MB4612; 6:NyKSTxQm56xZdoqs5dpnJ6yzzpOiWlHb28BtN7rEh0uuXx5VhCJBa/ICjt1Q53EcZdMjF2/C97W1RE2xwPOA/ybFSkbwuVqkve+uJTPre6vsW2o/KLSyjBre33g7cImWdW6ee9A+1p3qP3s85JNPwWdGe9Lec0m69Cr4uZL+zdNbYKbuJlUBnnd3+T691/fi7XZ+1ihasdcpuHCaDgGuRXmhuV0dYuurG3claNaCYSWTjWbdZPrgTHJhrfLZ0ACOQMlVnrrqeMYA5ZxvAlc8irrcEqCTytFgk4lxXBIkS+CiXYYQHZiyehGs73JWMJop3S8pv36NSy7vGglm52peMeqR9Pet2wmT5mH9cQSTG3Gh8e3KvgrWYhU+NwgJPxDjka0zs8sm9rIlw6kV13b2wGxacGhAIjyUUE9Jil/VtoUNvL9VK/fesybTSlSlAVEziEba3YTaBzexB+6PAlNydw==; 5:y4ZS27SDn46UA3d+LMCSCD1d1j8ld9ut4PJ1A47x5D5BEADCBYetWm0O3i2WB6h4PT4VyeuIuIny43kUSt6uoBTAKfvTJ070we9sV+v4D6PUUOaA52MIthS5SacTm8mPuVcv1C/D/9xFMY9Qq6qy+Bv0cXVLKyWrLthVMwcixWM=; 7:ulclIqHee8hV6c/61xhZLfXRf5zMJTC+gYquZfVEzXHE51973ZqMv+LaJ6RAtzR4tEoDrlz8Ye59URJpJAljLRm2u3HJx5RKv1bwgiP1mpDVOJSN0nsnhZsAG2OKl8Ao17wbEGnhShtyIUSVqIFzBw== x-ms-office365-filtering-correlation-id: bce450e1-eb42-4c59-a6f8-08d640a36c5f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4612; x-ms-traffictypediagnostic: AM0PR04MB4612: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(264314650089876)(185117386973197)(9452136761055)(85827821059158); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4612; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4612; x-forefront-prvs: 08444C7C87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(39860400002)(376002)(346002)(396003)(199004)(189003)(54534003)(305945005)(81156014)(81166006)(8676002)(316002)(66066001)(2906002)(54906003)(14444005)(36756003)(7736002)(256004)(8936002)(99286004)(50226002)(52116002)(97736004)(102836004)(76176011)(6506007)(386003)(2501003)(2351001)(105586002)(106356001)(186003)(478600001)(966005)(476003)(2616005)(11346002)(446003)(486006)(2900100001)(26005)(68736007)(4326008)(14454004)(6916009)(86362001)(575784001)(6486002)(5640700003)(53936002)(25786009)(6512007)(6306002)(5660300001)(71190400001)(6116002)(71200400001)(6436002)(3846002)(39060400002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4612; H:AM0PR04MB4211.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: 3pcSxXqFpgHTlTcpnIkw1vLVt+USKLtqlXtzvZjld8TWQxrpw3inB9QCWoaEEC1k4CfshEmJzr1fgMjC1c5liREUwKXRFkQyONDtp7aUoCgmUEtcUdYJPdmECSUSA8YxLjSdmibLEtmi+x7wcp/WklU9ZhYxEG1kil61/uALGnEyuq5FcJPxh5HaWDojnHGuxgIdB6pz8h6pfSaWeZ+os0TMbP2cAvE6lIjXuyYHJfdrzqIWR3tDst9e06JEyrG4SpZCcHaxLMPoXz9XIjM2SIXWIDz5jggwAvfcpS7+d61GsPIQVYMrjwQkcyLGDJNUeIEGLUrx96aNN4HHt/WfdaPWTGUpMQnqaUTUA28okmY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bce450e1-eb42-4c59-a6f8-08d640a36c5f X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 09:13:16.4680 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4612 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181102_091330_746689_B96639FB X-CRM114-Status: GOOD ( 22.37 ) 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: "A.s. Dong" , "devicetree@vger.kernel.org" , "dongas86@gmail.com" , "linux@armlinux.org.uk" , "robh+dt@kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , Fabio Estevam , "shawnguo@kernel.org" 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 NXP i.MX 7ULP Evaluation Kit (EVK) provides a platform for rapid evaluation of the i.MX 7ULP, which features NXP's advanced implementation of the Arm Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D Graphics Processing Units (GPUs). The EVK enables HDMI output for simple out-of-the-box to bring up but allows reconfiguration for MIPI displays. The EVK is designed as a System-On-Module(SOM) board that connects to an associated baseboard. The SOM provides 1 GB LPDDR3, 8 MB Quad SPI flash, Micro SD 3.0 card socket, WiFi/ Bluetooth capability, USB 2.0 OTG with Type C connector and an NXP PF1550 power management IC (PMIC). The baseboard provides additional capabilities including a full SD/MMC 3.0 card socket, audio codec, multiple sensors, an HDMI connector, and an alternate MIPI display connector. Additionally, the EVK facilitates software development with the ultimate goal of faster time to market through the support of both Linux OS and AndroidTM rich operating systems, as well as FreeRTOS. This patch aims to support the preliminary booting up features as follows: GPIO LPUART FEC SD/MMC See more board details: https://www.nxp.com/products/processors-and-microcontrollers/ arm-based-processors-and-mcus/i.mx-applications-processors/ i.mx-7-processors/evaluation-kit-for-the-i.mx-7ulp-applications -processor:MCIMX7ULP-EVK Cc: Rob Herring Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: Sascha Hauer Reviewed-by: Fabio Estevam Signed-off-by: Dong Aisheng --- ChangeLog: v2->v3: * remove "Generic DT based system" * add device_type property for memory node * back to old pinctrl binding according to SoC maintainer's suggestions v1->v2: * switch to SPDX license * pad name update * fix Character '_' not recommended in node name * separate from soc.dtsi file --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imx7ulp-evk.dts | 77 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 arch/arm/boot/dts/imx7ulp-evk.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index d7268ae..39eac9c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -573,6 +573,8 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-sdb-sht11.dtb \ imx7s-colibri-eval-v3.dtb \ imx7s-warp.dtb +dtb-$(CONFIG_SOC_IMX7ULP) += \ + imx7ulp-evk.dtb dtb-$(CONFIG_SOC_LS1021A) += \ ls1021a-moxa-uc-8410a.dtb \ ls1021a-qds.dtb \ diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts new file mode 100644 index 0000000..07796f3 --- /dev/null +++ b/arch/arm/boot/dts/imx7ulp-evk.dts @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2016 Freescale Semiconductor, Inc. + * Copyright 2017-2018 NXP + * Dong Aisheng + */ + +/dts-v1/; + +#include "imx7ulp.dtsi" + +/ { + model = "NXP i.MX7ULP EVK"; + compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp"; + + chosen { + stdout-path = &lpuart4; + }; + + memory@60000000 { + device_type = "memory"; + reg = <0x60000000 0x40000000>; + }; + + reg_vsd_3v3: regulator-vsd-3v3 { + compatible = "regulator-fixed"; + regulator-name = "VSD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc0_rst>; + gpio = <&gpio_ptd 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&lpuart4 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart4>; + status = "okay"; +}; + +&usdhc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc0>; + cd-gpios = <&gpio_ptc 10 GPIO_ACTIVE_LOW>; + vmmc-supply = <®_vsd_3v3>; + status = "okay"; +}; + +&iomuxc1 { + pinctrl_lpuart4: lpuart4grp { + fsl,pins = < + IMX7ULP_PAD_PTC3__LPUART4_RX 0x1 + IMX7ULP_PAD_PTC2__LPUART4_TX 0x1 + >; + bias-pull-up; + }; + + pinctrl_usdhc0: usdhc0grp { + fsl,pins = < + IMX7ULP_PAD_PTD1__SDHC0_CMD 0x41 + IMX7ULP_PAD_PTD2__SDHC0_CLK 0x40 + IMX7ULP_PAD_PTD7__SDHC0_D3 0x41 + IMX7ULP_PAD_PTD8__SDHC0_D2 0x41 + IMX7ULP_PAD_PTD9__SDHC0_D1 0x41 + IMX7ULP_PAD_PTD10__SDHC0_D0 0x41 + IMX7ULP_PAD_PTC10__PTC10 0x1 /* CD */ + >; + }; + + pinctrl_usdhc0_rst: usdhc0-gpio-rst-grp { + fsl,pins = < + IMX7ULP_PAD_PTD0__PTD0 0x1 + >; + }; +};