From patchwork Wed Oct 31 14:43:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662831 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 1113514DE for ; Wed, 31 Oct 2018 14:59:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2C102ADDB for ; Wed, 31 Oct 2018 14:59:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E652A2AF54; Wed, 31 Oct 2018 14:59:27 +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 3A8182AF71 for ; Wed, 31 Oct 2018 14:59:26 +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=gQslzx9E93TeG2PGhOO4bskWGETathUhIHweLmccDTA=; b=PJH0nXdcj/fleG mMRKhsL4k7bT9WE+0nnI0BOmcAus0p3+YV6UFYdkFlV3J1BefIvS6rTt0crjXesSUuIT1cdM6BaOq U/fkkhg3zSh0xYOR7af+n8OH7KJkTAQde28ApGFrw9kOW8IL3OFz+V2o1UdshM5i0FRs9PKbDX0hh GXwLytThyOSV4o59+U/CmhzOPSh3R5ZRSxnL2wKEni7j9Lra6ey/PaGVLY+rVe+R4FYMe2TBmtFDG BZJKk9K1WtN9UoyWNkZcB4VpsRQOsonbry3NHqaS/BtrLiP59KrDVqEnH36iEhVDnkCTRrWhNNK42 yxWM2wpv8ADCVtkeo6OA==; 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 1gHrxm-0004pM-Sz; Wed, 31 Oct 2018 14:59:18 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHrxl-0004h2-8t for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Oct 2018 14:59:17 +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=B0weAFbIk/1hBvjyLHDm21mbqaw4NqLyRJYvLJxNi9g=; b=Hv2ZtYrnIFAP/RnukpMys6jHas lwMwnC+wesfELmnbo2TZMFN5x6QK7Vf5O26PHsMsMIsvoj8gSvKfXv9/bzWFD0ePix+VtGMFiItJA 2upm7y4dkYpbBn6yv+/EIQtqwMZsWqRrHA33UgR+e+cOHY3xN6Wpjd+5bSKvJAjP8VQDVQvKR5Xug 27T8WemVmAFUWBmJ2zUDsLROuryvEbx6b8+dO+h+qvtsZXDcMq5+ygupqlaaPye9O0MX+yIU2Vjs3 +uUl9Z8MKJfj5n0HuaZTFEdVwxZg7+N0blJJONH/AdF/Ymj5vez8drJUuPdVsDrtCjaTrV9YiXFCD K+quHbBg==; Received: from mail-db5eur01on0074.outbound.protection.outlook.com ([104.47.2.74] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHrj6-0004OH-FB for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:44: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=B0weAFbIk/1hBvjyLHDm21mbqaw4NqLyRJYvLJxNi9g=; b=THKALnzwbPzoo67fCtwwyWXA8JFE6k40YGKS1+WUduessN/nbJ/7u+TViOqb3hruVTWEOsaxjZIwIXIFI3vq7bDdNm/DkmMU5WMS8Z/lwrXwU+ZyCzVXBdZuzDEn6q86mlic65FJECT5HnBjUqzpWzMoPqVRAiVgTPJc/XXWNXA= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4514.eurprd04.prod.outlook.com (52.135.148.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.26; Wed, 31 Oct 2018 14:43:30 +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.1273.028; Wed, 31 Oct 2018 14:43:30 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 09/10] dts: fsl: add imx7ulp evk support Thread-Topic: [PATCH V3 09/10] dts: fsl: add imx7ulp evk support Thread-Index: AQHUcSgWAg/QeFxC6UyWaBnINvePsg== Date: Wed, 31 Oct 2018 14:43:30 +0000 Message-ID: <1540996688-23681-10-git-send-email-aisheng.dong@nxp.com> References: <1540996688-23681-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1540996688-23681-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: HK0PR03CA0016.apcprd03.prod.outlook.com (2603:1096:203:2e::28) 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; AM0PR04MB4514; 6:2IQTWmqxvfr//fpp52wg13gUDFtGbs1+45ZwML+q6u7MoV+a+93GQSKF2OASRsKghX2WV0xJ8u1sGrPNpG19gmGNnbpugw4JFqA/SD8T8KkP33HBJWXkWLhSeyE6lEq5tutaDip3SnYm4sHXvGhQzrZEPmwozdg08H79tDw+Y7/E1BOxs9gpRa2xJC4YF2qGJ1QnHN5TrCq/0VsIueuNQuchL64PaejlCHz6dmAXJKZGNWWR40GDQQnIGHT5zMebeD+Tn+nW6GVbkoB1DRnhoZGUzX3Gmcpb8iblaJ/ocn7rEInQ48QgtnGw/QTudglPCX4d9kuzAwGxa/0wwTyEI0ItV/jXKFzb1XgGuXKEHpcFAX7hdhNE5h/jyVh49jMU3sUyf5KNCTvFWBFSU19AZf4VR7SHCbUwh+FcXnep92ezM5ZW5XPbSu/GgRP1daK06MMI2qUZ/+I/EtWgKlet1Q==; 5:zxZwKbaiXJRXpQgst0mAELdJ+tZj8wDSgcXQrUIpJb34z5ITHFIlEwBRWzXNvcDeRVpRohToAxlkkTQEBnfaaapBcBI1Sbhb0rjtqnQ9aL2dobj1BakrEE+LyR5e+WW9Ajw6zX6cPA7E6n6sBIQ66Rg8rfIR37i4dMzj6J1SCtk=; 7:m8oid2jo6frqZIH7zzVD8OFi3iBTDZaHXrp8MPiIWbAwl/zWlasw5ZTdgFsKAaDIFUkJ99Dkim6iUoZLbhkRdO1y8/6nIQ5gu40pO1rkd5H9Pr92gSkYrQwTy4KMDAG8oQS7YPbniGx4xV5uT/M5yA== x-ms-office365-filtering-correlation-id: 0f70c5f6-31ad-49a8-6cf7-08d63f3f3953 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4514; x-ms-traffictypediagnostic: AM0PR04MB4514: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(264314650089876)(185117386973197)(9452136761055); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4514; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4514; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(366004)(346002)(396003)(376002)(54534003)(189003)(199004)(11346002)(14444005)(966005)(446003)(14454004)(2351001)(476003)(2616005)(305945005)(7736002)(6916009)(486006)(105586002)(106356001)(2900100001)(6486002)(6436002)(256004)(2501003)(97736004)(53936002)(5640700003)(186003)(316002)(6506007)(6512007)(6306002)(4326008)(54906003)(5250100002)(71190400001)(71200400001)(52116002)(575784001)(86362001)(478600001)(66066001)(99286004)(76176011)(39060400002)(36756003)(3846002)(6116002)(68736007)(25786009)(102836004)(50226002)(2906002)(81166006)(8676002)(5660300001)(386003)(8936002)(26005)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4514; H:AM0PR04MB4211.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: oJAAj4sIWEcLTnDJmseb/Mg12ybn5AfxANlBXrFScasg/GTRchQmGLa/xRSUASB4XeXtMNFqc7iXKln97g74YomoMezsrXWr1q6yxT31FeiMXnldGAZkgZoggOte182XXLcNXx+YBTdQqrS6Dh+gvuJdCLsRVKIgMrt6MdPElW3JQf1DJAYxpHOPsXvFnmb4YBFlXn7MA468lVbdpK+bXqkZmwkHbtOejs4/HE7N1qR7Ttd72D/knpt2Ok95d1MTe+1IopKcGmkSKqmQrXfryaoj5AsvZef9D8Bch4Qv0pfcw7uKFW7l1Xug2rKEc8yXVPsd40+Fu9P2Tf2uiXBnEppKEBeIS/+dTqVVWRBuc10= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f70c5f6-31ad-49a8-6cf7-08d63f3f3953 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:30.0344 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4514 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_144408_509044_A6807239 X-CRM114-Status: GOOD ( 20.99 ) 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 Cc: Fabio Estevam Signed-off-by: Dong Aisheng Reviewed-by: Fabio Estevam --- 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 + >; + }; +};