From patchwork Sat Nov 10 15:13:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10677261 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 8F2F7139B for ; Sat, 10 Nov 2018 15:14:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C1842C54C for ; Sat, 10 Nov 2018 15:14:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F8D42CBAC; Sat, 10 Nov 2018 15:14:41 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 D2D6F2C54C for ; Sat, 10 Nov 2018 15:14:40 +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=CmWElgU8pJFezQVkp/VtTr6EZaj72DdgWICfHkeXCSU=; b=miZQoIkFnIpRb0 yHmNqSvFqN8HZ4XA5wc00bpGcWJQmDlv3ZMpH+uuh9xLYbccNY++TpDtck/lGiB4BKKQSNIQO0R+Y uRnHbbrJlwitfv5WixK0o9q0OC4ItoSH/nZ2ll8KloQSRA0zE25QPzcjUGlzf+EwDL8dEHV3Flbb5 qUzhLoPipgBWl2mooJRnRGLa4B46zxb01AMqANooPBXaBagPJLviykOSpmiLg0F5ZBxEdaxbeCAdN iCVoUoHTwj4PiU2oI1LzzmdLtvu0MIrpu/j7hB3MDBBdx/t+D2USDXL0ClGU9Nx9FOmpbBZZqmcM5 6M8iGQZsyFnxH0Op6fvw==; 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 1gLUy0-0007Pc-MV; Sat, 10 Nov 2018 15:14:32 +0000 Received: from mail-ve1eur02on062d.outbound.protection.outlook.com ([2a01:111:f400:fe06::62d] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLUx4-0006G1-4f for linux-arm-kernel@lists.infradead.org; Sat, 10 Nov 2018 15:13:35 +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=8b8w3NfH3sDQ8bGfJEX5A6MTijRCGPZzAAOGIXM6ZZE=; b=bOZvl4ECFfZdTzk3YCCIWw13rByMPcoP/pOQtn49jAgYLlbSZwPkiE66mkFKncEaIx++IFsgBn/wGtVWG+errhfgWCDL6hjQgnS/0NCopyk4nvaCJxNHrpUmjCF/RJ/MCyRCH86SRaGpFkt6NuT5XlzZyoUDJEejOTATZPzhC3I= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4818.eurprd04.prod.outlook.com (20.176.215.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Sat, 10 Nov 2018 15:13:12 +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.039; Sat, 10 Nov 2018 15:13:12 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V5 5/6] dts: fsl: add imx7ulp evk support Thread-Topic: [PATCH V5 5/6] dts: fsl: add imx7ulp evk support Thread-Index: AQHUeQflk6BLP7awtECm2O6h37qw8A== Date: Sat, 10 Nov 2018 15:13:12 +0000 Message-ID: <1541862478-7839-6-git-send-email-aisheng.dong@nxp.com> References: <1541862478-7839-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1541862478-7839-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: HK0PR01CA0010.apcprd01.prod.exchangelabs.com (2603:1096:203:92::22) 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; AM0PR04MB4818; 6:/a1LSbwX0tKvo4LI87aPIfuhdrb6oW6wMjYTsRSkAqZidinAFUdy6SXeGgcFCDRlx0s/Em6BaFURS1jwN0krX8ZsfZDeyOQx+6KejWGMi4syqOeMyjncXKC1AOwGGD3dtjf40w+EOpqNcVvD/4bffrslupzimvg0fQRe/q9lwLxmmUw1AJYR+sn2BuNMTB6GO/q6l4evDA+eqlZ5kXi5g424sT1nl/1A2xuqlJDoDOfRCWpHmvTpMiJzugOQdMm+LUxUpyb2phlFc1yUaNTsi9M5Atr8KWn7v62G2Ozu8TWKdflTYVS2J3dCOGUB71JAlbJkm9af8ef6XB2STWUrcU37vR/jt3WoW7cF1lTHuTodhWN/xxBR61KSQ5FkRfwXU796erl7gUBZzyHP5MqSmhptHJfwAtG93C96KADjRJRfoaq3jFd46f9Ug4tzoyp/gnVIJGQXy7u+amiSss6qfQ==; 5:2vYd5jbzSt65IS1Pul8dR8VPb70vM595W2PnFw5/X11xN7ch/n0Z9tRe586tUA9JlV9chNiWso1WkzFsKdg4KK6SMd3nA1JcpUAfduCOjuzOhdj4Bmg7hHz0hbIuXAxKFZzBPLTnG10oFjnkhYFS+8/HyurM/aJ/+opJFLB2x5I=; 7:xvvovXeUs/ZjjD57dTrRMuqb2xq8g/CoCEisttlA/7sZtEmxRqRfC/c8mzfHp69Czu9QqezO0fbDQuoFQNrCBAjYYkPaeJNf+F2OYNE/0z+t52O7QxgxP8fVeuUuUI7nlmW7UJgQi+pkexiaH+yCBw== x-ms-office365-filtering-correlation-id: 93a696d8-f838-47ef-78f4-08d6471f07e1 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390040)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4818; x-ms-traffictypediagnostic: AM0PR04MB4818: 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)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4818; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4818; x-forefront-prvs: 0852EB6797 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39850400004)(366004)(136003)(199004)(189003)(54534003)(54906003)(50226002)(2501003)(76176011)(316002)(386003)(106356001)(102836004)(105586002)(6506007)(68736007)(3846002)(6116002)(36756003)(6916009)(52116002)(2906002)(66066001)(99286004)(97736004)(5660300001)(305945005)(575784001)(86362001)(7736002)(2616005)(5640700003)(4326008)(39060400002)(53936002)(6512007)(476003)(2900100001)(25786009)(6306002)(14454004)(26005)(11346002)(486006)(966005)(6486002)(186003)(256004)(478600001)(2351001)(8936002)(8676002)(446003)(81156014)(6436002)(71190400001)(71200400001)(14444005)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4818; 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: Fi3pX9NowzfyoWmtpiblvNJlrYT2k/rmXFdjeCg9O1JbKtioWJn6Oe4iW0VkPBpr18ooPRVHLpzLowGxfqJdAxr+iZgtxoUPzfLcrDjSFaKdXTmlaIb+BXvuCDJC3QNpGKAiLgRH520v28CBt4tDj5wP+mUEjgPiDHABxugXyUfLOtqLLg+qok1ZqZQW4LbeMlZHD5uq36e9/jDvmREJYk8WJ/nORqXj3V9qQiNDUHSSNngEqyu+ipSRo14ylklz41ldLwmpF2zfQ4MuufcXM2chQ5+WiArBgfYwpZhjKJ/0FhpJoYfRJLBtyGP+4lpfY7XHd2mK5K2b5Ly20ajsj+5bjZ0lfa8Hw1WLw4zpcd8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93a696d8-f838-47ef-78f4-08d6471f07e1 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Nov 2018 15:13:12.4161 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4818 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181110_071334_187791_AE88CE36 X-CRM114-Status: GOOD ( 17.12 ) 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: v4->v5: * update pad setting due to missing pull up enabled (formerly auto done by driver generic pinconfg) v3->v4: * no changes 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..a09026a --- /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 0x3 + IMX7ULP_PAD_PTC2__LPUART4_TX 0x3 + >; + bias-pull-up; + }; + + pinctrl_usdhc0: usdhc0grp { + fsl,pins = < + IMX7ULP_PAD_PTD1__SDHC0_CMD 0x43 + IMX7ULP_PAD_PTD2__SDHC0_CLK 0x40 + IMX7ULP_PAD_PTD7__SDHC0_D3 0x43 + IMX7ULP_PAD_PTD8__SDHC0_D2 0x43 + IMX7ULP_PAD_PTD9__SDHC0_D1 0x43 + IMX7ULP_PAD_PTD10__SDHC0_D0 0x43 + IMX7ULP_PAD_PTC10__PTC10 0x3 /* CD */ + >; + }; + + pinctrl_usdhc0_rst: usdhc0-gpio-rst-grp { + fsl,pins = < + IMX7ULP_PAD_PTD0__PTD0 0x3 + >; + }; +};