From patchwork Wed Oct 31 14:42:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662829 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 73CB714E2 for ; Wed, 31 Oct 2018 14:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56F4B2891C for ; Wed, 31 Oct 2018 14:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A73D2AF74; Wed, 31 Oct 2018 14:58:07 +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 D289C2891C for ; Wed, 31 Oct 2018 14:58:06 +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=8z89vwFtyyalDiKgBcrW5ECfZR7wWfYfZsrzcOmzxhA=; b=qdcY/p9yLTps/T mwqeC/EbyLDtXjFtirO4XTJRDcnX08O/fHz7hC7JaKnC2+CrTNn6xQDytXtuMeIKZn3YeCwOqeP3t oi4Vc1NqvI+FqlsBePDG3MQDaA7e3DVuZpFGL+9Z4W5bXtbUuRouXnfCew5Abng/ErWlzPNayNp34 xBLKGPqAhafC5zoJW/tZYdBGMJVkoSy460FE0DL+7FeuVN7nYwjNO7e085fb1Lqyt1zrMepVWjh8z kamErNjCpRwIKSt7iqzWIxda31cR0EIzD8JX+zPAbynzJt59iB++wyhjn56HG7mrgMRE4i7tLyZm+ q7lwE9qJ1ASItMDCkbrg==; 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 1gHrwb-0004Wo-GJ; Wed, 31 Oct 2018 14:58:05 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHri7-000664-VI for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:14 +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=OCwALehHV+t0uOJLdf8Gq12CorSVGXuMXa6683nlfh8=; b=xGffZ8yjg1atWUnaEQ4fRIxXLPgUa6hPi2xhkd0HOzrs6oHhsF4cz95IKJEosqwCimxeVNq2O9xSe7flF9VJXodolmblwxUcY+080JamyosyCNZPEvyc5Ea4GOrOJ7DaAfge/WQ2CY5cvmvzwAHEtAWe5nkWRWpOS6YpPRAFF2A= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:42:55 +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:42:55 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 01/10] dt-bindings: fsl: add compatible for imx7ulp evk Thread-Topic: [PATCH V3 01/10] dt-bindings: fsl: add compatible for imx7ulp evk Thread-Index: AQHUcSgCjfbJ6GbRuUurYAbw0M/ZCA== Date: Wed, 31 Oct 2018 14:42:55 +0000 Message-ID: <1540996688-23681-2-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; AM0PR04MB4052; 6:JAGKzmxyjbxI/wkN19W9sVDPSV5Q2rbhDw43U50t9uwSsPm6DkVPAxQe+lf7wjha7Kxw9BYI8l8u9fQ7lnJ0iKN4GmIMXlUiYVfjAvLIEgO5pUSFvtZHc0ZLHUQYGOwV2J5Iog7YOi562uMFLjefeLSJmhO7iQ7IgPpg055PqvNL9c4Gs+N3ZThQsnXD6fz43RD8WsOIi+lPCTDjj2UUmw+95dRjPaZ3dCM/2PisjrOUgBSmJraQXsVBvc57oXPvnNCZrOsZCcYl6BSKSOwc2/vv9Q7qHr2H9z2V59T/22e+tIhPFo3OWoK3AEYHC9f5+0V85mjEEvdyBR1V9qzx9Fu9RIGLJ8+L0vNmS6vPT9H+O2t9EcMEQ+uxuhFAekkc4YE7E0E0hb3BmOE/AzhOppEGqLyZHckMZmcacPABUuIGDEWi7ELnAdjQSD2RtAsvemljETrpiXkCrCCbVPOHaA==; 5:/JHQUZsbbXrlcQP/kJf/3Tln6aZam2MfOXuXGYT2Vqf10mDo9mI+zvykRdi3UJTipU1Czgln7fOuCTuQOe7covDGYBTucW7r4T6iB3DfIRY70GnSV+dvXoQK9ohJUJaXmoDBLy7cat/a8GzrpCiGXCjDvadDcc71xdIEhNQ78xM=; 7:XYc4UrodXSBlHFl+vw+iTztpX/hiZV0Yc/pv/s/LKb+oUFyaTQ+FAUom+I5be/2aIzJ42aQbgsZi2MV+VLW5Tt+731368Jg1AImstcALGxgMfC8rIJapuDWLryqNXl6o1N97SZuMLusrjZoVH3e9JA== x-ms-office365-filtering-correlation-id: 79d2080c-ee4a-4e31-ab3a-08d63f3f248f 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:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(11346002)(99286004)(26005)(316002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(446003)(6116002)(186003)(97736004)(76176011)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; 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: b/YryjXaLSSDtaEO+c47fgVCzm37a/XLFK6QynF+fAG40mVUmdKTwvqD8ojVvn7OkKG4xTHboejhYHxxZ1b8BTcaxmcah/mfSHClHH+hb7N0nm7CsoBAnAWjg9e4At7Aq42bXnSAT50bxHPDWWXuK84CX8qx1pb2PfLyI/kmYlIxpb5ZeZWSz8cAq4XkDjxnbrKOkI9HWHNdlFYhY7LEykfd51ZiLYYzzTMg5XOwG8pj//ZNhrEWexRXTl9hNpNzJ8n5d/y2q6Es0mim0rP8aN+xK4sxZ22CQt7AA7ScDkI7oBdLjtC01KMtlGPy5b9GNuanhO8E3fFGKB+v07kDZ4pU1fylaKKBKO4rvMO8RhU= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79d2080c-ee4a-4e31-ab3a-08d63f3f248f X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:42:55.6754 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074308_005185_43786874 X-CRM114-Status: GOOD ( 10.75 ) 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 Cc: devicetree@vger.kernel.org Cc: Shawn Guo Acked-by: Rob Herring Signed-off-by: Dong Aisheng --- Documentation/devicetree/bindings/arm/fsl.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt index 7b964d8..9c7c788 100644 --- a/Documentation/devicetree/bindings/arm/fsl.txt +++ b/Documentation/devicetree/bindings/arm/fsl.txt @@ -101,6 +101,10 @@ i.MX7 SabreSD Board Required root node properties: - compatible = "fsl,imx7d-sdb", "fsl,imx7d"; +i.MX7ULP Evaluation Kit +Required root node properties: + - compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp"; + Generic i.MX boards ------------------- @@ -123,6 +127,10 @@ i.MX6q generic board Required root node properties: - compatible = "fsl,imx6q"; +i.MX7ULP generic board +Required root node properties: + - compatible = "fsl,imx7ulp"; + Freescale Vybrid Platform Device Tree Bindings ---------------------------------------------- From patchwork Wed Oct 31 14:42:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662813 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 47EAC13BF for ; Wed, 31 Oct 2018 14:43:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36C92284F0 for ; Wed, 31 Oct 2018 14:43:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A4E828600; Wed, 31 Oct 2018 14:43:35 +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 BC221284F0 for ; Wed, 31 Oct 2018 14:43:34 +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=QUJ137/T1mE8uPr8hDIwiU32AmNX9ygW2a39t35I/CY=; b=Ac7Z9oR7mg6Y3P C7aLVQXBVfTOj0xVCGiZa3E7XupYyo2fARDA6na3tVR4P5aiPXxFUttf3qmz279NLA2l3GpmYnVam AnsiYfTg5wV/fPKGUDaVgkCpIU/iZxRmUnFn/nKsfyrTPxhW27nN2tgkly9AxjGUMIBZypmdb5b9A 6Wog2WunImhdV+9yTRqVBfL7EgSgfezbUEWhosKjlUj2PhwidSULiR+hqrh3SdFRW+Pt919Hr0fv1 741+7NULtLJHN1A6MFLWfDaAMuuNcHJsVFkcM6JAepWS5rYvLZ2/+pkS2W2mvZ1Tb18Z4L+1mcBOG MWDYdFj+vWABusniAqug==; 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 1gHriW-0006ZG-ME; Wed, 31 Oct 2018 14:43:32 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHriE-000664-Hc for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:19 +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=8JTlta9OSDp9TQ+UFFyR0AP5/N/7ZIwHTDHUJjJeStc=; b=DfJMrisU50+jLBoG+kWqtEggz5M6/4sDhFOUdoUogZ9otPzj1XopMK0eHPMqhJ/NpHYXZ5pfiGPdRNZWlmsdivgld7IRiqRYNREz0ocp3PDoW2Gwhqc4cvLHYebr0JxIhJ1G0zr7gejU9pCJlH31Wv9KqddMbl36guwSs+hNKFU= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:42:59 +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:42:59 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 02/10] dt-bindings: fsl: add imx7ulp pm related components bindings Thread-Topic: [PATCH V3 02/10] dt-bindings: fsl: add imx7ulp pm related components bindings Thread-Index: AQHUcSgEW7ngDwgN4Uq7DN4TiRXQJQ== Date: Wed, 31 Oct 2018 14:42:59 +0000 Message-ID: <1540996688-23681-3-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; AM0PR04MB4052; 6:XM1RSa/0UNnkS60uUkrvCuNSgJQ312sd3hbydJvzATJ/wCQNQyNkpbDahIgiJWv8czcJOryVkN65gdzLWcwA4ypzT/e+LoyJ1pDRePTQagRPhS3ruT4C0PJe9UlVKPZ5Tx7ShWUzn80M5L3iAVsYT7KQdTsFDCgm6kCOa2mPWzOieFsvqiVKlDxJ1zdfMN5e25wNegUxNEDpeJFGmEDkUxYoonud9DCg47mmCBGDnry/eWdWf9r2Vzz33Hxmrt7vH1gDKhY5KhZ5uqanqe3BAd95ZrxgIpRko4GkLeVBt/uvVGmdcz4LY4dHgFepFZkFChD9IMyyuUHwtG6okwoCEDThPbWPTpGQjUQm4ymD9+X9b+KmY9ahfyF1NRNlVWmkF6zo7hgH2yS5JI16knU/S+PGEtN48j2pIVdMweOQTEdpcsZ96jyZPnKl8T3S3+j+FFVFBpVM5yFFqgWmUGs5qw==; 5:cZs/wEqOx6ka038RCQbIzdo152E5y3zfTuXqMOCXvA3b9GYejJe1tcnJogqmB2fIi8cUk6jBrvscAfegKA3QyFic15Cr0Z2WocUM7NjbTGNEzl2mx7TtHsxksmphCUn8fJDI52YNgrYzCyBtsj3HM5rBRPFx6Tx2vIZ6zRL1odQ=; 7:w4z/XYIsiJy54dlAZMqBgzG8+vxsVdTV3tOPWzSQBjAEb4ErWHhgjOjFVO1KhvopxpQZ4sLYpikH7Vh1Iru+6nxrO2MHIBrl48YRGx8RZGM78qoEsZGQeEzXu9o8TSICZi8wn6g723QAkLdESoBLKQ== x-ms-office365-filtering-correlation-id: 0d0d272c-66e7-44b3-43c2-08d63f3f2729 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:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(54534003)(11346002)(99286004)(26005)(316002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(446003)(6116002)(186003)(97736004)(76176011)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; 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: YN2n6eKjEbX84zluJ0V4oAcSocXq4vAeXVqTwhIKIL7ELReU85zdFYwZBP/gBK4Xk6nvuH/0xkeW7a2h1aNALJn9k8CKvmjyX0NA000y4hILLsvCGRcgIgR4cU5b+GPw8xw7SWnQVilDp2m2Kl64IdKAFM1kxDXsHjADMIctArIXD71pwfsV9jEKNXCd4y7D7sHEYI/gItauobvaf+ZLh8gg+fOzrxdRP1stgbqtPscsZgg55IEytV4w+rnXICk2IQYkueoCw6SDovxG1ViaqNHMkVq5PaRwUDP7m6N+LNU87LAOmRyO3KQ3I1efUoWUbXdlPbAHa16oQoZpWRN6dc2zsXE4h1cjVJS4ltkqWAQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d0d272c-66e7-44b3-43c2-08d63f3f2729 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:42:59.6021 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074314_990909_E3414C21 X-CRM114-Status: GOOD ( 12.61 ) 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 Add imx7ulp pm related components bindings Cc: Shawn Guo Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Dong Aisheng --- ChangeLog: v2->v3: * no changes v1->v2: * new patch --- .../bindings/arm/freescale/fsl,imx7ulp-pm.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt new file mode 100644 index 0000000..75195be --- /dev/null +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt @@ -0,0 +1,23 @@ +Freescale i.MX7ULP Power Management Components +---------------------------------------------- + +The Multi-System Mode Controller (MSMC) is responsible for sequencing +the MCU into and out of all stop and run power modes. Specifically, it +monitors events to trigger transitions between power modes while +controlling the power, clocks, and memories of the MCU to achieve the +power consumption and functionality of that mode. + +The WFI or WFE instruction is used to invoke a Sleep, Deep Sleep or +Standby modes for either Cortex family. Run, Wait, and Stop are the +common terms used for the primary operating modes of Kinetis +microcontrollers. + +Required properties: +- compatible: Should be "fsl,imx7ulp-smc1". +- reg: Specifies base physical address and size of the register sets. + +Example: +smc1: smc1@40410000 { + compatible = "fsl,imx7ulp-smc1"; + reg = <0x40410000 0x1000>; +}; From patchwork Wed Oct 31 14:43:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662815 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 7380313BF for ; Wed, 31 Oct 2018 14:43:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6196C28481 for ; Wed, 31 Oct 2018 14:43:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 554D628591; Wed, 31 Oct 2018 14:43:47 +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 AC8F728481 for ; Wed, 31 Oct 2018 14:43:46 +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=efQWJjljSHgbr4R5W1Cz7P/yVwcfiiRrvPvuxGXBWgE=; b=lFhvThgnRkjV0+ DDOxU3cWoMY7WUECSscVjn9ZlzlH9oObvHInXGBfN+rEDbqfabkL0jpLF0yWJhxDmFNjr47k+Ar52 F2SIgtYNRGNS0uGbs4gxq8axJRAR/5xvwZUT0gSPxK06KJrxP44h9O96SwukQGnPiO0aEp6fLwd+7 MOUE7FDtE42UwXtdWKkte+dItmkE4DQmK0RST90nRnXfsVbZP7Iu843HfLwmZDn/+iqdkWtFqGBkf GPDk7St+uVL0AUtyFPj/1JKX1/CPDQQqAT1TLsmIWWM9As8viEkhJJO5GbG0BPEk1TU7R0g8zM6vi SBLlKp9PofAYaJ37P8zg==; 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 1gHrih-0006pp-W5; Wed, 31 Oct 2018 14:43:44 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHriK-000664-8g for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:23 +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=+a/JPR/N7yd4dqx7dmW9PbemOj0hclXJMZRCvnTbm9I=; b=iLnV5MhwRtfDuunxisd7FY2iP+CCln76tWiaHqQwjTNrfmsie6mUknBXCxI0IECCdRGV4eCP1YqWU9Nh5RLV2b8++Khd8rl8UFNyFET+DKe665KyrMnb23EGYCWwwwvE7RqdRDjLouNYA1Uj21qsRnLSWoQeP8jLKfcRoNYhaYc= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:43:04 +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:04 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 03/10] dt-bindings: gpio: vf610: add optional clocks property Thread-Topic: [PATCH V3 03/10] dt-bindings: gpio: vf610: add optional clocks property Thread-Index: AQHUcSgHU3aCJ39Ou0GpmOYq3EJuyg== Date: Wed, 31 Oct 2018 14:43:04 +0000 Message-ID: <1540996688-23681-4-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; AM0PR04MB4052; 6:Y2cEtKdTEqYfXvcHPCq0colYQ0g9fabX1L8wh2Dw+E3fHzKrQR5G2qIDndOqq+BR+8dVHury51g2c8Y6GWFqldEq1FUPuZYDw/wH8uaXC0B04v+R+TCMZEyKpMz7NGQ0lWhAjAjPFsEHQaFy0DYLhByTWyJ7+PzWnmsjcjEs2sOKOd8M1UiOkPa+m1ZyCx8GgtKE4J+5RXp15+0wcuxcsLeINFUUjwRnpVJbWMYPe0us6KuGZKaWs8tFfUbd9btTv/9rXLRQQ8K5aScGcDuDjSRlouwomyuZqkjHHoZr3IZfEAe3JDXe7m2ZNJ61R4EA4BTJWttbBj/pDSH7Z0eks3rUmI1D8l5TLSw5s6KN16p9hOE5Rhmh1k7Iy2P4KouWxatjf4YhDp+8hCoTpH7DYYfdS1AfLIiZIAoFck+87wMX/VpUWynmsLUz1bR24uc+mU2wDt4tG70s/FtCrxThRw==; 5:GYqLkWKGfhnAW4cYhKQH0yuv/swjLPxSopogjTN82Upmsfl5E7TLRK6Z3zM4bcEo9Iy6cFxSh0cErfW49kbq7fO6Sk3NymIVQufV8AHTYuxXDX9ruY5zHlBdkpyDbe4VH6LZytoUE8gNg3ldR5i50UnELdcUyg1vyJIWdWVt9vU=; 7:KpYSZ4BR0LdXuFBrkOxRXk/fsSizp01H/EcslTxoa/k/hCBXiItG5CF3S5XBDUxZSKwxcxZ4qLGnKOXxB8+EB6SjsjrRx/8YMmOApT/gWDQbWrXcy5qOxGcb99TllE+S7MY7yUlVs/IbhJZRd/pvXA== x-ms-office365-filtering-correlation-id: 0362462a-0221-4a4b-0ed6-08d63f3f2a23 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:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(180628864354917)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(11346002)(99286004)(26005)(316002)(7416002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(446003)(6116002)(186003)(97736004)(76176011)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(14444005)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; 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: d9kjxEpNzjzggw8AA51aQkeD6VFD0kFEt+mwLEvzgONUbo8E3Ehk8t6DfGDQWtwbAmpGjyP8EstrNMO8cgjJazOqQBWV2fJr6nmuyLQ1L5pw5E2S9u6kbBNdxHE1WlWBLdV9mCw616TJg58ckCXceMnFDunjPRv5Ic8PVYk00u91ja7MMl8ZPzLu8afGTPt7j5bvz/L+cdyChqLjkPTl+4O5Ls+V+P7WzHXEXnbwyZO65eF/KTGNQqTfD9Uov2XDzcKkPuibWM9cTFiEc+5srFaVAmOwvPpwl3IrXYGoPpcY9NdKJXWiilAIO2yWzZM/mR+2kfUDbzmt7bmoZe/BNEuts/mwIXmHwT/fc9RO2Ds= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0362462a-0221-4a4b-0ed6-08d63f3f2a23 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:04.5096 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074320_535603_558477BA X-CRM114-Status: GOOD ( 12.18 ) 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" , Mark Rutland , "dongas86@gmail.com" , "devicetree@vger.kernel.org" , Linus Walleij , "linux@armlinux.org.uk" , Stefan Agner , "linux-gpio@vger.kernel.org" , "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 On some SoCs(e.g. MX7ULP), GPIO clock is gatable and maybe disabled by default. Users have to make sure it's enabled before being able to access controller registers, otherwise an external abort error may occur. Let's add the optional clocks property to handle this case. For ULP GPIO clock, it includes two separate clocks: one is for GPIO controller Input/Output function clock while another is GPIO port control clock for interrupt function. Cc: Linus Walleij Cc: Mark Rutland Cc: Stefan Agner Cc: linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Dong Aisheng --- v2->v3: * no changes v1->v2: * new patch --- Documentation/devicetree/bindings/gpio/gpio-vf610.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.txt b/Documentation/devicetree/bindings/gpio/gpio-vf610.txt index 0ccbae4..ae254aa 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.txt @@ -24,6 +24,12 @@ Required properties for GPIO node: 4 = active high level-sensitive. 8 = active low level-sensitive. +Optional properties: +-clocks: Must contain an entry for each entry in clock-names. + See common clock-bindings.txt for details. +-clock-names: A list of clock names. For imx7ulp, it must contain + "gpio", "port". + Note: Each GPIO port should have an alias correctly numbered in "aliases" node. From patchwork Wed Oct 31 14:43:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662817 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 BF17D13A4 for ; Wed, 31 Oct 2018 14:44:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABABF294EA for ; Wed, 31 Oct 2018 14:44:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E830295EB; Wed, 31 Oct 2018 14:44:08 +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 6FF92294EA for ; Wed, 31 Oct 2018 14:44:07 +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=Kvaf5PbwDHu0BXjBttckOoP1agFi/wzLIghyi9BONUQ=; b=WZeZA19Za68fv0 xRolwMxIq81ZpqRdFuRPPSnYkixSdivGtacyMynmCEroMxzpHDf3RqqqsULxwOBSsb6sm4EczTsot ijzCBO9OCoEB2Mn33EB66fGTwwOw7iYzEL8TWPuGUZTca8Hd1c2luysEdxGdrznjXk6ZL+3inPCyA h3gnUNCexSwk3t+knR5Q06S6+ObjSyIx0OJ9FSdDXyfr2kyQCXdnC4zKQPrtfb4Nagg1sszN/B02r wQnLoHZCESxavZ841nDoQ4DVVeO/OKZObw/ZxvWCqEOtlo1Em2G2AsENWxvzy9L57Ce/KI/N3A3xR o4CDDzMeVnIolSrbHdXg==; 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 1gHriz-0007A7-DZ; Wed, 31 Oct 2018 14:44:01 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHriO-000664-4Z for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:26 +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=ZN4sieQCwosGKPOMQODlhKuvpSjWE7y6mo10PtMjMYM=; b=gDKyrMnd+JhPED/XH1KkT4Mt5dCBgbTI/5MWym93biMOt+NIRWmi8DZsTDjH8/w/PMhIrll9luv+CkDOXzsTsr+PsC73NscSFfWbnbW5OEo3UJFP969K3Wbxb9PkX/qDWFTCU4AGb1OPwM/9Q2AnK+vTZVrJ6T9ydUg0eQnquSc= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:43:09 +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:09 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 04/10] gpio: vf610: add optional clock support Thread-Topic: [PATCH V3 04/10] gpio: vf610: add optional clock support Thread-Index: AQHUcSgKotZRX/Ai70yIZ2JJm3n/0A== Date: Wed, 31 Oct 2018 14:43:08 +0000 Message-ID: <1540996688-23681-5-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; AM0PR04MB4052; 6:v9vQ8D9rZXC8l+cx6/2FdmbxXVmTE0uYUGyc1Fi/Kst+fLyw74QFQWI3H1D+ZRXaULkbgZ4U8gxXUdHLUqzIamiAk6yHOKuiPy4ylD4xeBKbVIfC1woHx/N+2zPA2ozD7baEeSWNMtHoA5g78KfPaMtuaePHe953urc+netPGQUZq4whJ1VygQZ6oC/+/PILwLaeBX3xsj6/QMevb08fE9ouFt6LjnhrirkvIBtv5b5FDzyz1ryr7AzFtZgJqvbmK49UGWQjagl+UWZ5SD9yuzGx5nZvTp5lgwMiwwjzZnywQx4dnujttsl8YE1a+QFpG7h+gddJCHnzJjk7eBiGcqce95U9FcS8uev1je1wA+Vn9/lYbPO787lB2ah75lqi1COhfLQK+VusfNCa+y3oWWxBUVT3SqgnIqFBhS+iXH9dCMaJcpnJVuRrLwcaHPP+ESIbFzy49J2kLC4TEcDPtA==; 5:63bGyBupQvrYU8KnAluFWvLkYHgvQBOERX+Nd7qv7dJRzYpL5zO5X+b69YbAAMx93ZlfooXiovj5W35R3LJ1Q3dGuDpiNRDfMJEaPrwhqSZccWxpuCT7L5Bk1zL/sR6f0BkFjwlquJlhH9tP3PO5nXKJE+zQsTjnYRXMX3q06II=; 7:ufyY4W7zahAcOmzpOkhg7dpcRlSjHx7VnFva8dlIQcnzkWB/7nOB+RVxPqcoziPc45NQdi7335iTe74Nq8jQPZk0yIGrYsBM6OBqe4YkjGBcGXwFpR0tMhKo4eei34KBPkJ7WfbVPQr8ffFLQbKdhA== x-ms-office365-filtering-correlation-id: 28a41d9c-ae13-4910-2e3b-08d63f3f2cbe 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:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(11346002)(99286004)(26005)(316002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(446003)(6116002)(186003)(97736004)(76176011)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; 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: iCRzzdZWZ302FuBMV6RJZfDv7Vxyz7t4I6pz83xJMLYzBE/NjHh1mRxSEFF9a35Adk4D47XFoUqxI/EPj4UQCiKwmAEp7draPTVcUBMWHa4jiij/k/vt+WF2sFcx2odOAlacFj82Ae7cAXkFgxImAERaE9VPsAXJrxNBPCqULYa13KNcbhV4qoTUC6VG0E0nJ1g0u6q05leoUQLMdzcZmtmyjuUHc60Kb2laSGEDS07mHcUJ0A5Do9iCZDPaHAfuXJ+mSRIBA+5o5GADJwlFsvm6QF3HDMI6Aa6nTnSFnmgKvcsZdcO6lFMlK83MOOW3qteWiqdlB8ModlTE02y8YAqnY2UkmHyzErKBUMFIkkg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28a41d9c-ae13-4910-2e3b-08d63f3f2cbe X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:09.0007 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074324_418356_9FB91527 X-CRM114-Status: GOOD ( 14.58 ) 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" , "dongas86@gmail.com" , Linus Walleij , "linux@armlinux.org.uk" , Stefan Agner , "linux-gpio@vger.kernel.org" , "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 Some SoCs need the gpio clock to be enabled before accessing HW registers. This patch add the optional clock handling. Cc: Linus Walleij Cc: Stefan Agner Cc: Shawn Guo Cc: linux-gpio@vger.kernel.org Signed-off-by: Dong Aisheng --- v2->v3: * error checking updated according to Russell's suggestion: ptr == ERR_PTR(-EPROBE_DEFER) * clock independently checking v1->v2: * new patch --- drivers/gpio/gpio-vf610.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index d4ad6d0..02fb7d8 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -16,6 +16,7 @@ */ #include +#include #include #include #include @@ -256,6 +257,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; + struct clk *clk_gpio, *clk_port; struct vf610_gpio_port *port; struct resource *iores; struct gpio_chip *gc; @@ -280,6 +282,28 @@ static int vf610_gpio_probe(struct platform_device *pdev) if (port->irq < 0) return port->irq; + clk_port = devm_clk_get(&pdev->dev, "port"); + if (clk_port == ERR_PTR(-EPROBE_DEFER)) + return -EPROBE_DEFER; + + clk_gpio = devm_clk_get(&pdev->dev, "gpio"); + if (clk_gpio == ERR_PTR(-EPROBE_DEFER)) + return -EPROBE_DEFER; + + if (!IS_ERR_OR_NULL(clk_port)) { + ret = clk_prepare_enable(clk_port); + if (ret) + return ret; + } + + if (!IS_ERR_OR_NULL(clk_gpio)) { + ret = clk_prepare_enable(clk_gpio); + if (ret) { + clk_disable_unprepare(clk_port); + return ret; + } + } + gc = &port->gc; gc->of_node = np; gc->parent = dev; From patchwork Wed Oct 31 14:43:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662819 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 3836C13A4 for ; Wed, 31 Oct 2018 14:44:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2616A294EA for ; Wed, 31 Oct 2018 14:44:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19426295EB; Wed, 31 Oct 2018 14:44:14 +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 918FC294EA for ; Wed, 31 Oct 2018 14:44:13 +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=W+tHbnP4+X7K0mw4h6Uu2BZLvqCLlhTNa/jF89qUxLQ=; b=rHkH6ayMpon8G2 yP0pwr18UblvKd5XRDMkZ90k+StWxWvsMEMMfmw6oV51QiHXOhHQhoOGerWcxQPnLXnPgT4wchs9h DpOcOLl/vHlzxVTtnZrF9HmVG3rBUkDgmMm93Kt8xZ2ZwKFvkcwS4u5qnVDK6ZozQlqfZ/ZjyG4eM /j+CmXfkx//tdcVqSX0S1ofH2F/b8cVfpqj46tcZnVa6RquypOxg03PTQ4kTIAWsJCuXQqbvFkfaA Gi+auigffHw0XVIsRH6FqcS4NMzNzkLl0J8s8iMdUf2llSV2R95Wag48Zuuseo6c1EcMYEPfqwYN3 VhFnrIxlXHZdN6JEf7gw==; 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 1gHrj8-0007L2-SF; Wed, 31 Oct 2018 14:44:10 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHriQ-000664-Nu for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:31 +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=Bs96e4IIfzkF1qpC229XAOATQR5wRQMEOEJ+G+krhjs=; b=VuEz9LJV4jS5DxmuilqPHvHjE6mLXqa42qRy638GLf2OaJsN+4I3zmxhPdPIiWA1omKA017rI6X+S1Ksj7fIhFbqJBAQ6/nNUNBsDKpaOH68QISbAWvkee1Hq3J7jrt8XXUrPyfJrBthbJhrEPiZ3jVnvvVPj7wkklw3r5yXeX8= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:43:14 +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:14 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 05/10] dt-bindings: pinctrl: imx7ulp: back to imx legacy binding for consistency Thread-Topic: [PATCH V3 05/10] dt-bindings: pinctrl: imx7ulp: back to imx legacy binding for consistency Thread-Index: AQHUcSgNoxDEi5W+9UKo8tChH+m+LQ== Date: Wed, 31 Oct 2018 14:43:13 +0000 Message-ID: <1540996688-23681-6-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; AM0PR04MB4052; 6:+8Amp66mgl0t81zAmgsI17C/C46LGOSAeBIPZbz/vMcsKjDL+A+mh6zNu0wOaxXWz+O+9NHSb2Uz8ULLDUKRK0DUxjnfG1U4IT5UX3bsyRSlhwVa7RLhapZa1SdSWoNuZ475lsOVCA3lCMxejoQ0UPKtY4MKOuyL85ksehIkVIew+MRF+/JY2kG8IzbVU+HAntI9A1wAo4z6QmCS48sXzgzEpLW5sPbiEmSRtEYL9HIO9oYKtRZ16mLFpL4WyTtzQvHiK5Kcj18iWri9bF+ABE1XJ6VyJSzL8IV66uqSKxKwhjeqQrb3iRETeLf7uKgue9K6jGLG3UDYyKbVqOLLSlZ0THC7L9rmske3j1y8pu+ZJaI7l4Fs3mC4wLyjMWsNu35UJWtCRNFVpuQKg/i113fyUXkG2/4SDxoVfOQZWXyutk1cCbLlzHD2J019IThfCxO0oJGqAlndCGLK2whuSA==; 5:0n1xDo4BnFmUpmfHuNB+7KxIldksdd26i37xsJuWxlilZxBW3Dm5S7jrMW2gS4cCuVQQU9VR7/vV6linnOyhNWeH/vszcOIUrDU6LFsST+UFzzHB2wt7VQJNnaOhRTvZddhFfQU+WS09wlDuM9avFrk/NfSxzktgBNnpWcWxDIM=; 7:qKw1QjupR3DkmolLixVlkNjlCF2q+3Sg4Gd9s4huMDyZMpLp6RA6kHELoCMEpmj2HmIUuzXfPfENLZE9gMEBA3UiEdr8D57Lz/e5FxBTOdDTL02sYinW6q7/yh9k4g4fI83fr4dxZqvjvDtOeC/kcw== x-ms-office365-filtering-correlation-id: 996c2fd1-6dbe-4fd7-ec4e-08d63f3f2f95 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:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(269456686620040)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(54534003)(11346002)(99286004)(26005)(316002)(7416002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(575784001)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(446003)(6116002)(186003)(97736004)(76176011)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(14444005)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; 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: GScBOMZ8zuBo7IxI7MUH4ksp+LOUMbfbDYCe+0d7gNVMu+EiLg38rl5mRS/zC8swy2hE40PM21Mod+W1bwqAMjN+BpLBeA2xMjCcU13D6VHRs+cfK8m0YUKNc2c9tfiw0fJQf/iS1bAJAs31A0kmVFSSuetUaDoYZUGIbAR36UFxCYONPUqU81d/3KlUZMsUOJizE9lEZHITbkK1IlIKVSQucNYN33VRzwodCuQ2tKFNk5XTt0Jdkf62f069QkzPGSduR68+LUzolxylZHdcAdjN5/K06yCMgsB4PCXD2oN8xKqGXKC55VMIVMr98kxHTO3IVt12PIQs/31Xx9DKFkPbsZNxmF8Tki5lKeK72JI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 996c2fd1-6dbe-4fd7-ec4e-08d63f3f2f95 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:13.9372 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074327_109350_73BB67C9 X-CRM114-Status: GOOD ( 16.92 ) 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" , Linus Walleij , "linux@armlinux.org.uk" , Stefan Agner , "linux-gpio@vger.kernel.org" , "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 We already had an earlier conclusion that all new i.MX Socs will keep using the legacy i.MX Pinctrl bindings instead of generic pin config. However, MX7ULP generic pin config binding support has already been in tree before that time. Per SoC maintainers' suggestions, in order to get a better consistency for all i.MX devices, we'd like to go back to imx legacy binding for MX7ULP as well. Cc: Rob Herring Cc: Linus Walleij Cc: Shawn Guo Cc: Stefan Agner Cc: Sascha Hauer Cc: Fabio Estevam Cc: linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Dong Aisheng --- ChangeLog: v3: new patch --- .../bindings/pinctrl/fsl,imx7ulp-pinctrl.txt | 66 ++++++++++------------ 1 file changed, 29 insertions(+), 37 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx7ulp-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/fsl,imx7ulp-pinctrl.txt index 44ad670a..bfa3703 100644 --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx7ulp-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx7ulp-pinctrl.txt @@ -7,55 +7,47 @@ Note: This binding doc is only for the IOMUXC1 support in A7 Domain and it only supports generic pin config. -Please also refer pinctrl-bindings.txt in this directory for generic pinctrl -binding. - -=== Pin Controller Node === +Please refer to fsl,imx-pinctrl.txt in this directory for common binding +part and usage. Required properties: -- compatible: "fsl,imx7ulp-iomuxc1" -- reg: Should contain the base physical address and size of the iomuxc - registers. - -=== Pin Configuration Node === -- pinmux: One integers array, represents a group of pins mux setting. - The format is pinmux = , PIN_FUNC_ID is a pin working on - a specific function. - - NOTE: i.MX7ULP PIN_FUNC_ID consists of 4 integers as it shares one mux - and config register as follows: - - - Refer to imx7ulp-pinfunc.h in in device tree source folder for all - available imx7ulp PIN_FUNC_ID. - -Optional Properties: -- drive-strength Integer. Controls Drive Strength - 0: Standard - 1: Hi Driver -- drive-push-pull Bool. Enable Pin Push-pull -- drive-open-drain Bool. Enable Pin Open-drian -- slew-rate: Integer. Controls Slew Rate - 0: Standard - 1: Slow -- bias-disable: Bool. Pull disabled -- bias-pull-down: Bool. Pull down on pin -- bias-pull-up: Bool. Pull up on pin +- compatible: "fsl,imx7ulp-iomuxc1". +- fsl,pins: Each entry consists of 5 integers which represents the mux + and config setting for one pin. The first 4 integers + are specified + using a PIN_FUNC_ID macro, which can be found in + imx7ulp-pinfunc.h in the device tree source folder. + The last integer CONFIG is the pad setting value like + pull-up on this pin. + + Please refer to i.MX7ULP Reference Manual for detailed + CONFIG settings. + +CONFIG bits definition: +PAD_CTL_OBE (1 << 17) +PAD_CTL_IBE (1 << 16) +PAD_CTL_LK (1 << 16) +PAD_CTL_DSE_HI (1 << 6) +PAD_CTL_DSE_STD (0 << 6) +PAD_CTL_ODE (1 << 5) +PAD_CTL_PUSH_PULL (0 << 5) +PAD_CTL_SRE_SLOW (1 << 2) +PAD_CTL_SRE_STD (0 << 2) +PAD_CTL_PE (1 << 0) Examples: #include "imx7ulp-pinfunc.h" /* Pin Controller Node */ -iomuxc1: iomuxc@40ac0000 { +iomuxc1: pinctrl@40ac0000 { compatible = "fsl,imx7ulp-iomuxc1"; reg = <0x40ac0000 0x1000>; /* Pin Configuration Node */ pinctrl_lpuart4: lpuart4grp { - pinmux = < - IMX7ULP_PAD_PTC3__LPUART4_RX - IMX7ULP_PAD_PTC2__LPUART4_TX + fsl,pins = < + IMX7ULP_PAD_PTC3__LPUART4_RX 0x1 + IMX7ULP_PAD_PTC2__LPUART4_TX 0x1 >; - bias-pull-up; }; }; From patchwork Wed Oct 31 14:43:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662821 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 67DA213BF for ; Wed, 31 Oct 2018 14:44:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D2AC294EA for ; Wed, 31 Oct 2018 14:44:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41281295EB; Wed, 31 Oct 2018 14:44:24 +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 B486E294EA for ; Wed, 31 Oct 2018 14:44:23 +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=RydqIJ7n4c5RfH+dH94ShpMXN+UTVP4/VX7mV7Obn3k=; b=NnS5cmavCM7i9i JmCH65J5eXBVY4K3gndic1fApWTCGrRGNZjIfpnzsjeCim0Zz58Oru4Pl6cdQF//kbybm2OYY4X9m Gx0P8xHUWJAoHfvVqIpYT9WfmotQxJimuzPHFKHUXfw5zJ0JkbGHWP+lRZVvzQ0RxRXBF9LWgSf5U GYclFhyFo9nakqF+ZgQy1Qzfnd8C/6S0FjIHZsmNDk3ra2a/YaETg87QWpUqQ1AfLJjP8oUnrPaqq D+wCbGxZmZ5P3MhFl8klCyGpmj6eKWDR8UnJu6XJUZd9b6bdrn10HMrqlAUg2SfGvUMc7KA0wHsqL vdlO50rZJqnU9Q8fQEdQ==; 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 1gHrjK-0007aN-2l; Wed, 31 Oct 2018 14:44:22 +0000 Received: from mail-db5eur01on0080.outbound.protection.outlook.com ([104.47.2.80] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHriV-0006MB-VW for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:52 +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=9X6/X03Ex3BQZ42X04EnOUypDBGiD3iMPgyT/ZtVm18=; b=SitIk8iOf4e9cf2+dp49uk/5vg4MnXH+7Mgbmhcaha29PJMwzz/BQhbHOzluqhNL7aLgKEXLft5YykWW/ivKT09zoDUfxKL+lTtSlPzPpJcFGPCi0lPaYTVygS9DgFQLZUNlzwJBOfb2QnUrdWAUvKofMQtbBDKxtcraoVd6YNA= 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:18 +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:18 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 06/10] pinctrl: fsl: imx7ulp: change to use imx legacy binding Thread-Topic: [PATCH V3 06/10] pinctrl: fsl: imx7ulp: change to use imx legacy binding Thread-Index: AQHUcSgQ1qnZvTfx9Eu4wKe/BaSwqg== Date: Wed, 31 Oct 2018 14:43:18 +0000 Message-ID: <1540996688-23681-7-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:uZWX8PWytSR/wlxiYBuDSBlSYa9tfifG5pY0vWg/dGHmru9qp2+y7/rzgtAFVbFIs2HbhVAu1jlQJZRVuw2LXWLgyG254GGpdpo5T1rQ40xdFFe7BHy2p0cCg+Xeqdly6NRaFjE3lekKxKL1NKDrLSkIz1ScJbEG4NrVj7fxPlBkOQ3960Ehv7VU7Ywyk1XbpM427oie8dZ8PPSkTEffpXpur+Ztz+WVdy+1LpgihezuKj1JvvRGJ9qgrnlUm2TPayHPT4schMdBLykxb6qxgnPQkzdKP9QmnwdvYC+fFsfPpGUcnrxaLsSipqZQ7LEzZuA7vz2wJLJJCBBrABvcVA5yheHzF5O6ELUQejgM8hxYjCXHBdTrSJX7sBEZP3egRz3J/lVjAUTol2zH4MUaxQExxzhQvkeAXimLTVujF9S/Wx/CLpy4pGRHjETIvdRKv2ZSFpE3DicTRD8xfjfT3Q==; 5:5sdoxIrQPEN92ZnIJfOEmSfuZU7jW2R3KBQFhYVfb6kS/rAMt6KQduaYQnz7hKR1JSPoTVhJ67JxHBD2Df3LmvB5CX6g4UYsJUOM8UR9hYNZ8lvhUmAwhWHkTR6xxFwn56TkH0Z/JMU/II0xW9DFrrV2S4IbPyqG4l8i0oKgQZo=; 7:X8rKPbkJeAOU6CfQ2YQzjDcOFk9b9gVb6sErrPBAoMVgMHk9dMV3X1jtz3on5Tvzvn61XkpOrwHnjAXNAtJyLIqOQIrrJtcBNzr+0bKbwxXsXkUnn2ZBav1Ciq3sew9+M14jFS5/C3lBdZ15S+s+Pw== x-ms-office365-filtering-correlation-id: 7d50c6b7-e159-4248-2ca9-08d63f3f325d 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:(9452136761055)(185117386973197); 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)(446003)(14454004)(2351001)(476003)(2616005)(305945005)(7736002)(6916009)(486006)(105586002)(106356001)(2900100001)(6486002)(6436002)(256004)(2501003)(97736004)(53936002)(5640700003)(186003)(316002)(6506007)(6512007)(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: YWKY1pNRQKFAKFrJ74pbz7AFvehO6c/fflXERbxQQ5PowMZxg7gfT3C4Wm3CjMmeaHzWN5ZEhu8GGzjkM49cKC1Ikq8n6dSYXmLzcByEhSOD5uHVmt3wzYXJfpMArnkeR1YGP9+aqzYOWrFRhPTSWS73Xf9LMiD2HXAqjAPbzdI/qsx1/X+ptt+4cb/oEApMtWFDeaP6en97+aU6XSR0bwQn8bB0wdVNpHgaBJyX69X2UdQDy7jDGigDgk/0WmCkLQCraz4qhaXlupEThMbwTR/3kKWxipNcjV2xE7jfYec1B85xWNxVC+9lw5wXZfF7J6S9A40oHy+A3f1+g23xWub7Z3BiaIt8lRtrOd6pj6Y= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d50c6b7-e159-4248-2ca9-08d63f3f325d X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:18.3452 (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_074332_599675_EB49D54B X-CRM114-Status: GOOD ( 13.70 ) 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" , "dongas86@gmail.com" , Linus Walleij , "linux@armlinux.org.uk" , Stefan Agner , "linux-gpio@vger.kernel.org" , "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 We already had an earlier conclusion that all new i.MX Socs will keep using the legacy i.MX Pinctrl bindings instead of generic pin config. However, MX7ULP generic pin config binding support has already been in tree before that time. Per SoC maintainers' suggestions, in order to get a better consistency for all i.MX devices, we'd like to go back to imx legacy binding for MX7ULP as well. Cc: Linus Walleij Cc: Shawn Guo Cc: Stefan Agner Cc: Sascha Hauer Cc: Fabio Estevam Cc: linux-gpio@vger.kernel.org Signed-off-by: Dong Aisheng --- ChangeLog: v3: new patch --- drivers/pinctrl/freescale/pinctrl-imx7ulp.c | 42 ----------------------------- 1 file changed, 42 deletions(-) diff --git a/drivers/pinctrl/freescale/pinctrl-imx7ulp.c b/drivers/pinctrl/freescale/pinctrl-imx7ulp.c index f521bdb..922ff73 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx7ulp.c +++ b/drivers/pinctrl/freescale/pinctrl-imx7ulp.c @@ -256,46 +256,8 @@ static const struct pinctrl_pin_desc imx7ulp_pinctrl_pads[] = { #define BM_OBE_ENABLED BIT(17) #define BM_IBE_ENABLED BIT(16) -#define BM_LK_ENABLED BIT(15) #define BM_MUX_MODE 0xf00 #define BP_MUX_MODE 8 -#define BM_PULL_ENABLED BIT(1) - -static const struct imx_cfg_params_decode imx7ulp_cfg_decodes[] = { - IMX_CFG_PARAMS_DECODE(PIN_CONFIG_DRIVE_STRENGTH, BIT(6), 6), - IMX_CFG_PARAMS_DECODE(PIN_CONFIG_DRIVE_PUSH_PULL, BIT(5), 5), - IMX_CFG_PARAMS_DECODE(PIN_CONFIG_SLEW_RATE, BIT(2), 2), - IMX_CFG_PARAMS_DECODE(PIN_CONFIG_BIAS_DISABLE, BIT(1), 1), - IMX_CFG_PARAMS_DECODE(PIN_CONFIG_BIAS_PULL_UP, BIT(0), 0), - - IMX_CFG_PARAMS_DECODE_INVERT(PIN_CONFIG_DRIVE_OPEN_DRAIN, BIT(5), 5), - IMX_CFG_PARAMS_DECODE_INVERT(PIN_CONFIG_BIAS_PULL_DOWN, BIT(0), 0), -}; - -static void imx7ulp_cfg_params_fixup(unsigned long *configs, - unsigned int num_configs, - u32 *raw_config) -{ - enum pin_config_param param; - u32 param_val; - int i; - - /* lock field disabled */ - *raw_config &= ~BM_LK_ENABLED; - - for (i = 0; i < num_configs; i++) { - param = pinconf_to_config_param(configs[i]); - param_val = pinconf_to_config_argument(configs[i]); - - if ((param == PIN_CONFIG_BIAS_PULL_UP) || - (param == PIN_CONFIG_BIAS_PULL_DOWN)) { - /* pull enabled */ - *raw_config |= BM_PULL_ENABLED; - - return; - } - } -} static int imx7ulp_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, @@ -326,10 +288,6 @@ static const struct imx_pinctrl_soc_info imx7ulp_pinctrl_info = { .gpio_set_direction = imx7ulp_pmx_gpio_set_direction, .mux_mask = BM_MUX_MODE, .mux_shift = BP_MUX_MODE, - .generic_pinconf = true, - .decodes = imx7ulp_cfg_decodes, - .num_decodes = ARRAY_SIZE(imx7ulp_cfg_decodes), - .fixup = imx7ulp_cfg_params_fixup, }; static const struct of_device_id imx7ulp_pinctrl_of_match[] = { From patchwork Wed Oct 31 14:43:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662839 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 A8CC217DB for ; Wed, 31 Oct 2018 15:13:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 967302AFDB for ; Wed, 31 Oct 2018 15:13:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9407C2B02E; Wed, 31 Oct 2018 15:13:13 +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 D1E352B02E for ; Wed, 31 Oct 2018 15:13:12 +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=69GlZCdGYFoMBzuvGA1JWoCUTAloRaRTzVC2AOkrkVI=; b=IU97lFJL9SjS0C v2PqKbu8mLLqXw1cjq4t0/JqQyau/claYE03gmGa80mK+oIxc7y0wIiHbl4ppsBFSYxnItSMIfPls YQAVRyoSDAHvinoLRyzTAVsrCXNAT87rERF8UxAbojFMx94xf8ra+FJCbbrbrFKDSwmkZnZsnCacg 5+dRGJRSj1K1Ot0kd/JabWmcNWgOAC7SK+oO9vSbkURN8glFSvfGhKwmxnYIgfvcRMj+SOBp+4rr3 xZBUXlusXKjdSZHc36googFwvKp3pwl+pJ78XxwsIWPkexuixeWgHcLf+VcKiXFeFj6XTO6+o7/NE u/klK6/Z7dzQw/+JJtcQ==; 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 1gHsBD-0002Gq-Ij; Wed, 31 Oct 2018 15:13:11 +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 1gHrxn-0004h2-PJ for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Oct 2018 14:59:19 +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=YlrObyVA1LVTNDIE3jkodWlgpZvftUPegw74FJ0RTB8=; b=aNzqNvJPqGmssqJGsSR/Kf6bwI ZTROYzozrq52PdBBUQFK9e0/zr9aMaZ9OJi3Yu2lE9ZFaKvcjSz2sYUf/hI5NJkksZuFidC+mT2Ri PrtUB6qQOFEhEhUcKGcltgzvX3UCgeAvzb+zZu6RqoHkcwq4Gh2vq0C4TzhmcPT/N9GNaXMTeKK0H rg24/HBjO/XVjcAS1xUfyshCyG1tA1pGJtvJCZ5XViBX1RZrpuAIR2FJtQql9LQKHb20ClzaxTNSc De35ndz0hMVPfYtwqr3lWImfJQ9Am7x7X/3s2g05THMYaSNHAu1e97Y2R8erigKEJU1VP3m17A+4L 6H3daWZQ==; 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 1gHrj2-0004OH-Iq for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:44:06 +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=YlrObyVA1LVTNDIE3jkodWlgpZvftUPegw74FJ0RTB8=; b=dv9l4GguEWrvV/eR08GHszDDY3CRq6o3ZEFk4hIZsQhy4kk4MeFrsePoFirH99IAtIZY+KLWED9aHGnRuUv29dDGDtTI4TXfqRC7tmWHSDc6pjHxpDkyd96K/0WYf7A4S2/TOXUP+u5w/WmkfHqyfIAua7E8flflZVVaUi9nuoE= 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:22 +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:22 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 07/10] ARM: imx: add initial support for imx7ulp Thread-Topic: [PATCH V3 07/10] ARM: imx: add initial support for imx7ulp Thread-Index: AQHUcSgSGoBTxrm3N0ujJ+Ju8eeGiQ== Date: Wed, 31 Oct 2018 14:43:22 +0000 Message-ID: <1540996688-23681-8-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:M3aLjv442X19J874mpMI29BvHEavbkof7ixmBCHFAjbYlwDxcUdLkHdYUslkEuoWRmCxA6Ol6raM9N1Zhr/5xMKqkHvYNEGsWgvyg4DMU9bq7n1D4ATaPuwNLq487lE2cL3zLEgc9uWaq6SIUsZ9umLjNSVaBdPn0WY60mq5/BBJLm1W6dWw4hT8iG2Qv4M+gOtZ3RNkECr6Q3rtfJ7sAuCCJP3JK1TagC+NHAz28mP965q5cNTn/v7yJoJLcuZqnOlqnfPgxoO4XxDwN9FBuDUVGTeDBruzJEDsEd26vXJEed7iVmHs4SStVx2p278y2oEeIpcxWW/OvTQsE8Nu809mQF7Wi1f6f0HqkeWWfl3NPRgb9Dy8aR7vQikJ/xmZrqgHj3m79fYcrCT0medGhk4l+oJ2JPQ2jAJLTzwx5hIezw1LsrXyqm+xxQgoIRZxAPvh4iMp07vw2AS2sM3Jyw==; 5:TW6j3fRHYAVM6qHqX4Ob+X5q9fdIs2J+ysZlk5pf7oGUBMBUsmNwTmvts1o96ENSsf3EG5hNELDklfhtfruz9K6E/lCL0B1PuH+exBO5uMlMmXNviGuCzW0BI07P1p7ElBCjm9NJ0NlWFAd7HX4xbD4dryzoxilvIAB9knm4O1s=; 7:4HVh5XVUJeG76casgIOEqLekg8Vsf7+h0VOzw7S9daty8YVwhgwRshHU8WvVwh8y9n7BPTsfk4myCRJfvkCD+msoCmNuQduoYgkU+c+ErxBUUYtTTpFdeKp4+/g0nseVSjhDCANMwsrGSeiukWafcQ== x-ms-office365-filtering-correlation-id: 0bdc7167-bbe1-489a-5f3b-08d63f3f3488 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:(185117386973197); 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)(446003)(14454004)(2351001)(476003)(2616005)(305945005)(7736002)(6916009)(486006)(105586002)(106356001)(2900100001)(6486002)(6436002)(256004)(2501003)(97736004)(53936002)(5640700003)(186003)(316002)(6506007)(6512007)(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: HMnYPViGjg9VRp2OVSR2xwSqbttlF7D3bK6MzkPQB/1H/3Zco+5rGh1LxemCAXRL7kqDqDn/l8+47byStGNy9ucpqbNrgAVj1GFLkNZ2PsTzAb+vHnxONn0/5T9VdDWVVLogsxVXEcXkMXPhnclHZi8gSq01Cfji+W3KnaUMSNx6oL8zeekqyd5N61HzmE/iTj/4BTbGHz4ucLzCjug2PTrqkn2KlGG52uh5Z2EuSjQG2FUToeLpk3e8Sk5wiIXSnmcJAkGH7J+5BrLFWykHGhMNk6CojAFuAmp6azWiSxElkZp0T4VMHAW4bVq5lqQnr/h4YRcB3KLs4oFDJLnZjmYZidiCEpHTRODEz6Ck80U= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bdc7167-bbe1-489a-5f3b-08d63f3f3488 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:22.1789 (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_144404_631300_DF73C15A X-CRM114-Status: GOOD ( 22.90 ) 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" , "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 i.MX 7ULP family of processors 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). This patch aims to add an initial support for imx7ulp. Note that we need configure power mode to Partial Stop mode 3 with system/bus clock enabled first as the default enabled STOP mode will gate off system/bus clock when execute WFI in MX7ULP SoC. And there's still no MXC_CPU_IMX7ULP IDs read from register as ULP has no anatop as before. So we encode one with 0xff in reverse order in case new ones will be in the future. Cc: Shawn Guo Signed-off-by: Dong Aisheng --- ChangeLog: v2->v3: * no changes v1->v2: * switch to SPDX license * more description of new SOC in commit message --- arch/arm/mach-imx/Kconfig | 9 +++++++++ arch/arm/mach-imx/Makefile | 1 + arch/arm/mach-imx/common.h | 1 + arch/arm/mach-imx/cpu.c | 3 +++ arch/arm/mach-imx/mach-imx7ulp.c | 32 ++++++++++++++++++++++++++++++++ arch/arm/mach-imx/mxc.h | 1 + arch/arm/mach-imx/pm-imx7ulp.c | 28 ++++++++++++++++++++++++++++ 7 files changed, 75 insertions(+) create mode 100644 arch/arm/mach-imx/mach-imx7ulp.c create mode 100644 arch/arm/mach-imx/pm-imx7ulp.c diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index abc3371..c12a05c 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -558,6 +558,15 @@ config SOC_IMX7D help This enables support for Freescale i.MX7 Dual processor. +config SOC_IMX7ULP + bool "i.MX7ULP support" + select ARM_GIC + select CLKSRC_IMX_TPM + select HAVE_ARM_ARCH_TIMER + select PINCTRL_IMX7ULP + help + This enables support for Freescale i.MX7 Ultra Low Power processor. + config SOC_VF610 bool "Vybrid Family VF610 support" select ARM_GIC if ARCH_MULTI_V7 diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index bae179a..8af2f7e 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -83,6 +83,7 @@ obj-$(CONFIG_SOC_IMX6SX) += mach-imx6sx.o obj-$(CONFIG_SOC_IMX6UL) += mach-imx6ul.o obj-$(CONFIG_SOC_IMX7D_CA7) += mach-imx7d.o obj-$(CONFIG_SOC_IMX7D_CM4) += mach-imx7d-cm4.o +obj-$(CONFIG_SOC_IMX7ULP) += mach-imx7ulp.o pm-imx7ulp.o ifeq ($(CONFIG_SUSPEND),y) AFLAGS_suspend-imx6.o :=-Wa,-march=armv7-a diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 423dd76..bc915e5 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -120,6 +120,7 @@ void imx6dl_pm_init(void); void imx6sl_pm_init(void); void imx6sx_pm_init(void); void imx6ul_pm_init(void); +void imx7ulp_pm_init(void); #ifdef CONFIG_PM void imx51_pm_init(void); diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index c73593e..0b137ee 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -145,6 +145,9 @@ struct device * __init imx_soc_device_init(void) case MXC_CPU_IMX7D: soc_id = "i.MX7D"; break; + case MXC_CPU_IMX7ULP: + soc_id = "i.MX7ULP"; + break; default: soc_id = "Unknown"; } diff --git a/arch/arm/mach-imx/mach-imx7ulp.c b/arch/arm/mach-imx/mach-imx7ulp.c new file mode 100644 index 0000000..ad8be07 --- /dev/null +++ b/arch/arm/mach-imx/mach-imx7ulp.c @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * Copyright 2017-2018 NXP + * Author: Dong Aisheng + */ + +#include +#include +#include + +#include "common.h" +#include "hardware.h" + +static void __init imx7ulp_init_machine(void) +{ + imx7ulp_pm_init(); + + mxc_set_cpu_type(MXC_CPU_IMX7ULP); + imx_print_silicon_rev("i.MX7ULP", IMX_CHIP_REVISION_1_0); + of_platform_default_populate(NULL, NULL, imx_soc_device_init()); +} + +static const char *const imx7ulp_dt_compat[] __initconst = { + "fsl,imx7ulp", + NULL, +}; + +DT_MACHINE_START(IMX7ulp, "Freescale i.MX7ULP (Device Tree)") + .init_machine = imx7ulp_init_machine, + .dt_compat = imx7ulp_dt_compat, +MACHINE_END diff --git a/arch/arm/mach-imx/mxc.h b/arch/arm/mach-imx/mxc.h index b130a53..8e72d4e 100644 --- a/arch/arm/mach-imx/mxc.h +++ b/arch/arm/mach-imx/mxc.h @@ -44,6 +44,7 @@ #define MXC_CPU_IMX6ULZ 0x6b #define MXC_CPU_IMX6SLL 0x67 #define MXC_CPU_IMX7D 0x72 +#define MXC_CPU_IMX7ULP 0xff #define IMX_DDR_TYPE_LPDDR2 1 diff --git a/arch/arm/mach-imx/pm-imx7ulp.c b/arch/arm/mach-imx/pm-imx7ulp.c new file mode 100644 index 0000000..9fb7da0 --- /dev/null +++ b/arch/arm/mach-imx/pm-imx7ulp.c @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * Copyright 2017-2018 NXP + * Author: Dong Aisheng + */ + +#include +#include +#include + +#define SMC_PMCTRL 0x10 +#define BP_PMCTRL_PSTOPO 16 +#define PSTOPO_PSTOP3 0x3 + +void __init imx7ulp_pm_init(void) +{ + struct device_node *np; + void __iomem *smc1_base; + + np = of_find_compatible_node(NULL, NULL, "fsl,imx7ulp-smc1"); + smc1_base = of_iomap(np, 0); + WARN_ON(!smc1_base); + + /* Partial Stop mode 3 with system/bus clock enabled */ + writel_relaxed(PSTOPO_PSTOP3 << BP_PMCTRL_PSTOPO, + smc1_base + SMC_PMCTRL); +} From patchwork Wed Oct 31 14:43:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662837 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 A28EC14BD for ; Wed, 31 Oct 2018 15:13:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84C722B036 for ; Wed, 31 Oct 2018 15:13:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77F012AFD6; Wed, 31 Oct 2018 15:13:06 +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 823602B016 for ; Wed, 31 Oct 2018 15:13:05 +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=3GZ3xPhzsQAZHAdVuYVSHEfrV6ziX1aVcTffiC+3/bw=; b=Ic08jLGvja9bjy WaiZ7zpIglihzeUf/HdJcjZoCPHhzUckt4ia67X9VZfC4uFwXFbJFhfAMQ5ccT/A4oJZaPkFg86zP +78KptCqSTE7Pq06eRC1av0IfFj5hxnCV7sbIxDGS8vnYO3CgXtHRwe9+WuthPkWtWo3bg9f5dh2H dfnlEwFx1LfOY/zWeK7fp11RV2bFkaey2GQl1VLMzn/oNNRYyVN5hOBLzYvmJ2BEzTb8V9VDuV173 1ROCwtFFiAbh0zQYp3WIRe5yi3NCDwL6TIpRMQXLK6Ue1aaMWPquQ/3+5bRLURF1lX8O2uMNuRwVe YlcNYz/O6Mwl7cGe011w==; 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 1gHsB6-000286-TB; Wed, 31 Oct 2018 15:13:04 +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 1gHrxm-0004h2-EQ for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Oct 2018 14:59:18 +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=ifHgxsHGbYWzqkgM2vABQ0E2WDYQbO3OBmRBVf2r2c8=; b=hLTwqj4WXnRoO6KKG98m+2VMe3 pBw3Kl/H8Iq6+ecBShFw2Jt0iPF4arcZ2QgaW5gcv4T3/NhfD/vYEX4SrkhnJyDvec27kcKftdRme DSSPXd0GejlXPRZwLLlRC/R2Zf7bgZbmKfG6rt45c5utRaz73eIVkmKwuaNxX4BI0ndYVwzgDwFeB A1/kf/2bYJGLa10ApI1AwxRLUFqWL78b1WLWDQXo7bu9dppHz8RTbit7hVeeyIaCjtC7pwusRWnIW ADaablkSOFgfC2bLJTvaNwoxauI+u3uYJxIh8UVqjcnfoCJT/ksnLBbLGoNP5tAJuCdmP84rAh6+s ScgoM4oA==; 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 1gHrj4-0004OH-GY for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:44:08 +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=ifHgxsHGbYWzqkgM2vABQ0E2WDYQbO3OBmRBVf2r2c8=; b=RbVabaGVgWohgdUCRjgy+boCyxOyEF7+9uixMRO0oD/La1w3+g/Qt2G9J2yzdqddvX3RiKUQCVFc45oktrqgm8lJpyBCTG3dv1XXQRl/b0F8VQMLYwNS1r5kXdeskc5Rc/hat2amzMr7Z5v/o08Mrrt3fC+pSJbB6hbWr3fgECs= 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:26 +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:26 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 08/10] dts: imx: add common imx7ulp dtsi support Thread-Topic: [PATCH V3 08/10] dts: imx: add common imx7ulp dtsi support Thread-Index: AQHUcSgUQn6Al2i6BEmVbeIrZnjxNw== Date: Wed, 31 Oct 2018 14:43:26 +0000 Message-ID: <1540996688-23681-9-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:LZM6E9qLseQ9YmufhrhRVi7ZVmO2nw5N0kEB7icnaoGvaV8HdySN1083sWrQj6lanKQ7mvdwte5b/48Ff7yzc5FCuhEjFd693SsMWie4vOdG1aCe2G8UBic6Uhum1Y5HWEzE2IibAXghSQyrUxi3FaqKNnN3kdvKR6KBQ0tcROI9FEVY2xk+b9rEj03H0FMKMGgxchyxhoghHTkvDMuqI91VnT5IaG+4Es5QUG81Tv/gqONlPeG/ZS8aioQym4R2y4OSb7jliDbBV/yO/I7IQjS/z+RcQapK6uzYm24kMCg484ynyCVKlqQRuRDcWIWgBWPM5N86pFVtynlni/VKeuI6OTl5AWdxRRex8uMvEZDSol8dfFB1aDhl4f3EkizSym5VCwn1UYzRStR1Q1tHy25JyUZQ1nwm3XtLFTHVjwRrhagtCVS+zc+qJqyFeXn//LGz08yvOly/VE6i/Zpoxg==; 5:OqJw/62ouFLriDdCG+8bVnJQbFoHcqNvwrT6CIxYH5z3MG46C80NIOoGpD2oQBFTpe8y80Px0YykMAGx4xJCSfTyULuV0IWHsis071AaeJVf6A7n4PY51w0NDoRWZBW8erAT5lJbgtPFKw+d+DHaZydSHdwb6mfsZEdWtDr8n9I=; 7:RrKYt8uGL/z9lHLtK5zGjTztwYU/EeUDK7FZuVkaYDWCY0rPYgVODKlFf5V7WR1hDS6FRTwzqIQHkQOHBh6OEp5rklNw2/v9ILWQen9ckpS7JhetGHMZJqc89+Nv52GyfsrrxPfKa9rMOh/bK7+6Rw== x-ms-office365-filtering-correlation-id: c8b16102-5384-498e-28c3-08d63f3f36f4 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:(9452136761055)(185117386973197); 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)(446003)(14454004)(2351001)(476003)(2616005)(305945005)(7736002)(6916009)(486006)(105586002)(106356001)(2900100001)(6486002)(6436002)(256004)(2501003)(97736004)(53936002)(5640700003)(186003)(316002)(6506007)(6512007)(4326008)(54906003)(5250100002)(71190400001)(71200400001)(52116002)(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: bekU0jSXW9cUQVcwEOVL62AQVvRi+HPqQUj/y43KU7OUIDQF0QBSPnAvelPXv3gybjQavucZVIzIzMQz8s8aPIsGNtuU6RphprGxZ7tEI+lnkmVPJPCn0fwi+uGvXDZ935Uh8bLb1JbnwzBDld5gPhA/YdeAeKFDd3SEGbGAtS7TQmIFuEBiwJS4JqukyvJp0EOUvM4SgwYA7Ww/k1hmoyMSYDhARzozO/kCVr7yQD68Q8mtDtWSIN3nSDhd7lfy4Tt8OY+dKvCgStwcoAv+hLLfv22xFsDI+J0FLZadFJoiK8tlq0uvDsa4NNbPBxqIbJ8jOB61jSBAOq5eq2kHYQUUJRNuvdqxJWax0mleLbc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8b16102-5384-498e-28c3-08d63f3f36f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:26.1787 (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_144406_582471_501F1D01 X-CRM114-Status: GOOD ( 17.65 ) 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 i.MX 7ULP family of processors 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). This patch aims to add the initial support including: 1) CLK 2) GPIO PTC, PTD, PTE, PTF 3) uSDHC 1/2 4) LPUART 4/5/6/7 5) LPI2C 6/7 Cc: Rob Herring Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: Sascha Hauer Cc: Fabio Estevam Signed-off-by: Dong Aisheng --- ChangeLog: v2->v3: * change to generic node names * remove arch timer due to: 1) arch timer is fixed to 1Mhz which is lower accurate than TPM timer (3Mhz). 2) no firmware progrem CNTFREQ 3) cpuidle driver is still not in tree will may cause system hang v1->v2: * update clk part due to binding change * separate soc.dtsi from board.dts --- arch/arm/boot/dts/imx7ulp.dtsi | 314 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) create mode 100644 arch/arm/boot/dts/imx7ulp.dtsi diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi new file mode 100644 index 0000000..c06fd3e --- /dev/null +++ b/arch/arm/boot/dts/imx7ulp.dtsi @@ -0,0 +1,314 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * Copyright 2017-2018 NXP + * Dong Aisheng + */ + +#include +#include +#include + +#include "imx7ulp-pinfunc.h" + +/ { + interrupt-parent = <&intc>; + + #address-cells = <1>; + #size-cells = <1>; + + aliases { + gpio0 = &gpio_ptc; + gpio1 = &gpio_ptd; + gpio2 = &gpio_pte; + gpio3 = &gpio_ptf; + i2c0 = &lpi2c6; + i2c1 = &lpi2c7; + mmc0 = &usdhc0; + mmc1 = &usdhc1; + serial0 = &lpuart4; + serial1 = &lpuart5; + serial2 = &lpuart6; + serial3 = &lpuart7; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "arm,cortex-a7"; + device_type = "cpu"; + reg = <0>; + }; + }; + + intc: interrupt-controller@40021000 { + compatible = "arm,cortex-a7-gic"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x40021000 0x1000>, + <0x40022000 0x1000>; + }; + + rosc: clock-rosc { + compatible = "fixed-clock"; + clock-frequency = <32768>; + clock-output-names = "rosc"; + #clock-cells = <0>; + }; + + sosc: clock-sosc { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + clock-output-names = "sosc"; + #clock-cells = <0>; + }; + + sirc: clock-sirc { + compatible = "fixed-clock"; + clock-frequency = <16000000>; + clock-output-names = "sirc"; + #clock-cells = <0>; + }; + + firc: clock-firc { + compatible = "fixed-clock"; + clock-frequency = <48000000>; + clock-output-names = "firc"; + #clock-cells = <0>; + }; + + upll: clock-upll { + compatible = "fixed-clock"; + clock-frequency = <480000000>; + clock-output-names = "upll"; + #clock-cells = <0>; + }; + + mpll: clock-mpll { + compatible = "fixed-clock"; + clock-frequency = <480000000>; + clock-output-names = "mpll"; + #clock-cells = <0>; + }; + + ahbbridge0: bus@40000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x40000000 0x800000>; + ranges; + + lpuart4: serial@402d0000 { + compatible = "fsl,imx7ulp-lpuart"; + reg = <0x402d0000 0x1000>; + interrupts = ; + clocks = <&pcc2 IMX7ULP_CLK_LPUART4>; + clock-names = "ipg"; + assigned-clocks = <&pcc2 IMX7ULP_CLK_LPUART4>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>; + assigned-clock-rates = <24000000>; + status = "disabled"; + }; + + lpuart5: serial@402e0000 { + compatible = "fsl,imx7ulp-lpuart"; + reg = <0x402e0000 0x1000>; + interrupts = ; + clocks = <&pcc2 IMX7ULP_CLK_LPUART5>; + clock-names = "ipg"; + assigned-clocks = <&pcc2 IMX7ULP_CLK_LPUART5>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; + assigned-clock-rates = <48000000>; + status = "disabled"; + }; + + tpm5: tpm@40260000 { + compatible = "fsl,imx7ulp-tpm"; + reg = <0x40260000 0x1000>; + interrupts = ; + clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, + <&pcc2 IMX7ULP_CLK_LPTPM5>; + clock-names = "ipg", "per"; + }; + + usdhc0: mmc@40370000 { + compatible = "fsl,imx7ulp-usdhc", "fsl,imx6sx-usdhc"; + reg = <0x40370000 0x10000>; + interrupts = ; + clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, + <&scg1 IMX7ULP_CLK_NIC1_DIV>, + <&pcc2 IMX7ULP_CLK_USDHC0>; + clock-names ="ipg", "ahb", "per"; + assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC0>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_NIC1_DIV>; + bus-width = <4>; + fsl,tuning-start-tap = <20>; + fsl,tuning-step= <2>; + status = "disabled"; + }; + + usdhc1: mmc@40380000 { + compatible = "fsl,imx7ulp-usdhc", "fsl,imx6sx-usdhc"; + reg = <0x40380000 0x10000>; + interrupts = ; + clocks = <&scg1 IMX7ULP_CLK_NIC1_BUS_DIV>, + <&scg1 IMX7ULP_CLK_NIC1_DIV>, + <&pcc2 IMX7ULP_CLK_USDHC1>; + clock-names ="ipg", "ahb", "per"; + assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC1>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_NIC1_DIV>; + bus-width = <4>; + fsl,tuning-start-tap = <20>; + fsl,tuning-step= <2>; + status = "disabled"; + }; + + scg1: clock-controller@403e0000 { + compatible = "fsl,imx7ulp-scg1"; + reg = <0x403e0000 0x10000>; + clocks = <&rosc>, <&sosc>, <&sirc>, + <&firc>, <&upll>, <&mpll>; + clock-names = "rosc", "sosc", "sirc", + "firc", "upll", "mpll"; + #clock-cells = <1>; + }; + + pcc2: clock-controller@403f0000 { + compatible = "fsl,imx7ulp-pcc2"; + reg = <0x403f0000 0x10000>; + #clock-cells = <1>; + assigned-clocks = <&pcc2 IMX7ULP_CLK_LPTPM5>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>; + }; + + smc1: smc1@40410000 { + compatible = "fsl,imx7ulp-smc1"; + reg = <0x40410000 0x1000>; + }; + + pcc3: clock-controller@40b30000 { + compatible = "fsl,imx7ulp-pcc3"; + reg = <0x40b30000 0x10000>; + #clock-cells = <1>; + }; + }; + + ahbbridge1: bus@40800000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x40800000 0x800000>; + ranges; + + lpi2c6: i2c@40a40000 { + compatible = "fsl,imx7ulp-lpi2c"; + reg = <0x40a40000 0x10000>; + interrupts = ; + clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>; + clock-names = "ipg"; + assigned-clocks = <&pcc3 IMX7ULP_CLK_LPI2C6>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; + assigned-clock-rates = <48000000>; + status = "disabled"; + }; + + lpi2c7: i2c@40a50000 { + compatible = "fsl,imx7ulp-lpi2c"; + reg = <0x40a50000 0x10000>; + interrupts = ; + clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>; + clock-names = "ipg"; + assigned-clocks = <&pcc3 IMX7ULP_CLK_LPI2C7>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; + assigned-clock-rates = <48000000>; + status = "disabled"; + }; + + lpuart6: serial@40a60000 { + compatible = "fsl,imx7ulp-lpuart"; + reg = <0x40a60000 0x1000>; + interrupts = ; + clocks = <&pcc3 IMX7ULP_CLK_LPUART6>; + clock-names = "ipg"; + assigned-clocks = <&pcc3 IMX7ULP_CLK_LPUART6>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; + assigned-clock-rates = <48000000>; + status = "disabled"; + }; + + lpuart7: serial@40a70000 { + compatible = "fsl,imx7ulp-lpuart"; + reg = <0x40a70000 0x1000>; + interrupts = ; + clocks = <&pcc3 IMX7ULP_CLK_LPUART7>; + clock-names = "ipg"; + assigned-clocks = <&pcc3 IMX7ULP_CLK_LPUART7>; + assigned-clock-parents = <&scg1 IMX7ULP_CLK_FIRC>; + assigned-clock-rates = <48000000>; + status = "disabled"; + }; + + iomuxc1: pinctrl@40ac0000 { + compatible = "fsl,imx7ulp-iomuxc1"; + reg = <0x40ac0000 0x1000>; + }; + + gpio_ptc: gpio@40ae0000 { + compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio"; + reg = <0x40ae0000 0x1000 0x400f0000 0x40>; + gpio-controller; + #gpio-cells = <2>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>, + <&pcc3 IMX7ULP_CLK_PCTLC>; + clock-names = "gpio", "port"; + gpio-ranges = <&iomuxc1 0 0 32>; + }; + + gpio_ptd: gpio@40af0000 { + compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio"; + reg = <0x40af0000 0x1000 0x400f0040 0x40>; + gpio-controller; + #gpio-cells = <2>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>, + <&pcc3 IMX7ULP_CLK_PCTLD>; + clock-names = "gpio", "port"; + gpio-ranges = <&iomuxc1 0 32 32>; + }; + + gpio_pte: gpio@40b00000 { + compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio"; + reg = <0x40b00000 0x1000 0x400f0080 0x40>; + gpio-controller; + #gpio-cells = <2>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>, + <&pcc3 IMX7ULP_CLK_PCTLE>; + clock-names = "gpio", "port"; + gpio-ranges = <&iomuxc1 0 64 32>; + }; + + gpio_ptf: gpio@40b10000 { + compatible = "fsl,imx7ulp-gpio", "fsl,vf610-gpio"; + reg = <0x40b10000 0x1000 0x400f00c0 0x40>; + gpio-controller; + #gpio-cells = <2>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&pcc2 IMX7ULP_CLK_RGPIO2P1>, + <&pcc3 IMX7ULP_CLK_PCTLF>; + clock-names = "gpio", "port"; + gpio-ranges = <&iomuxc1 0 96 32>; + }; + }; +}; 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 + >; + }; +}; From patchwork Wed Oct 31 14:43:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662841 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 3E97717DB for ; Wed, 31 Oct 2018 15:13:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E01F287B3 for ; Wed, 31 Oct 2018 15:13:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 21B1E287A0; Wed, 31 Oct 2018 15:13:26 +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 C366528779 for ; Wed, 31 Oct 2018 15:13:25 +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=dWGMQn2libVVMIh04ogmrKpd+GH1M8aHMAyQfs+c7m8=; b=bRj9V+Py6ppviP a9NDaF0Hd230xH2a52/UNRB1OL0tmbHKeTuWo0itWvSiZFjwdrzKyGKeYaaBnRXrnOzjNMbgdBURs UHT40MM51oZBx7YnWcGiNBDx75K5j4Ov7xog1pnG4eqQQdZ1J/I6WKKxnrttB1tf/7D8AdYuUBNRl bT1yAGCkapmB9WbnSiXU5U88vIxn1lvjqKgDgEKRll50eumUG5H5nLhx3JThN+K0VB5Bwikge9grL mj2HUwnFfzIpkS441iCbv4rUfdF2wNdjN1FzanHOvhlRvSP4XTxAPKmxL+59QOHvtVnwsEBZhI1dE 4Vdun4P4l9cX5+u+BhTA==; 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 1gHsBP-0002VQ-Av; Wed, 31 Oct 2018 15:13:23 +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 1gHrxo-0004h2-Uz for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Oct 2018 14:59:21 +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=eTt2CZRAe2olTYqSPorjYqxDglOuYTVMOeox4xO9TL8=; b=RgbInyKx5/ySFFtm24YMubaZ1E 92ErJaAJ+XmUAxW4OtKl8gO9XxvJcffCzY2lX0VVd2SBU6LV/w5ISoQWXto0lrclgFUXtGyGZ8xaK XHIutwiFCTXcrqV9veBdFLo6XYrhNe6pBRxw+xG4C+kHQvQGNkkHrRBuhHpzQkMzqZ3E33Clm44AW g/bhl7Qto3ylIuzX1eUTcu5SC7fPA3RxzXXy5XICc5xIwZSGuJHs3pH+BCx7TZx7uQ112MpLyEW+E 5bDdaIWHnw9EER4FRunNwX3VofZW4uzNgD5gu/ECbC7/MteAiZkDsYuRLWODYd2nzYyT0ZW+DT0Jx vLGtUEVQ==; Received: from mail-eopbgr40044.outbound.protection.outlook.com ([40.107.4.44] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHrik-0004MC-V2 for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:49 +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=eTt2CZRAe2olTYqSPorjYqxDglOuYTVMOeox4xO9TL8=; b=oHOrwC/rnzN7X+/GW2HNnPrl/omIo/2ImY39IYnqV4yRvDcwijsj07iW/VpXOjp4yASdLRzUJASdTZDnIBaZaFqk1nljNVC+pcGUsD/Aq1XTbQBQRu2LliY+vgMlaO3rDCYhR99y6RUEhG61Y9ym3BcOWka7aDcQo4DW+Y95uuE= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB5236.eurprd04.prod.outlook.com (20.177.42.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.19; Wed, 31 Oct 2018 14:43:33 +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:33 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 10/10] ARM: imx_v6_v7_defconfig: add imx7ulp support Thread-Topic: [PATCH V3 10/10] ARM: imx_v6_v7_defconfig: add imx7ulp support Thread-Index: AQHUcSgZtyvnNnb8jESmyPNJx18H+g== Date: Wed, 31 Oct 2018 14:43:33 +0000 Message-ID: <1540996688-23681-11-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; AM0PR04MB5236; 6:OOdFv2G73EIYJv7sIC65fVZxkK5TmncInVC8OZycmvvT+Ld+cXrrGbKr6UE+2+to/wP1dAwFf/ae5TOMiybMpAam95fHeBZysFaN+s4dh1Lua6ti7hHSq/JFmLBUBAQhcPaDRouRgmNN2kr+ljDvyVdItSKKjC7Lsl8lzU+x3Cb3aVHZ8Rl/eXfti14iLEhpiXvP4JCmP/PjgM2ZZ9se2UE5WgiT1nVKV8EJb6PDyKzOU6hk84SuyG7UQntDsRZHy/VOafCJkDoacGBd1BeAV5rdl58P/Y2Q0ubdJ93LDDshxqwfxzyhWhpESvWZQige4HpuKcDUHn2uHecAq8YJOu0WA6NU2LGXIDXzLKfUvbzHrTbYOyC6H5uqDWS3fgRMUGsHy5Kke+NWEkt/RdPK4s2YkwNIq9P3wN4+VUsGD9az2kH7xzCfGEmM8KrWDQwHykGk1hFpwFD9P4nLsdUvoQ==; 5:uYv/kqdTaCGSPTWV2ZIMT387XW2TkLvCUR671PiM9OoPxNrFlCa9/YSaK+fWXEpmZjXw903s2MgHDfecy//4e36GGadkGyJEug8i1ueFvXjttt3/RBsYIC12tddStolIVm0NKMRmtVHC2v5oNnIMKtVyWqATdbplSvrtNf9KJAI=; 7:ZmtLOMwn7Cx5NV0REVSDCtOaU3VYU+0ZXQCKmNAPO+l/TDHA1jbtZrISq2k4tkOmvaMJKYYtG6ziUDJ7+37OhGjfozHG73pPU/Xya3xK+px/vx1hDgAeML1G4x27ID2kl3Gg7owYnU4kcpy9xLJdmQ== x-ms-office365-filtering-correlation-id: 3cbf39b1-f758-4f8c-399a-08d63f3f3b76 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:AM0PR04MB5236; x-ms-traffictypediagnostic: AM0PR04MB5236: 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)(3002001)(10201501046)(93006095)(93001095)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB5236; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB5236; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(39860400002)(346002)(396003)(189003)(199004)(81156014)(11346002)(8936002)(8676002)(99286004)(6506007)(66066001)(81166006)(386003)(446003)(316002)(76176011)(6116002)(71200400001)(50226002)(68736007)(52116002)(2616005)(486006)(97736004)(6916009)(71190400001)(256004)(36756003)(476003)(86362001)(478600001)(3846002)(2900100001)(26005)(5640700003)(6512007)(106356001)(105586002)(5250100002)(2906002)(102836004)(2351001)(39060400002)(6486002)(305945005)(5660300001)(186003)(2501003)(7736002)(25786009)(14454004)(54906003)(53936002)(4326008)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5236; 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: yrIPhvW/Ut4ZWcdSmPjAONWsn493XX5WooQcSYHMVMYD3PafxseX3pTiQOKpQ4Ox2miMbTIJRe0RYD2wyT6ctj8S5+GADJQ61u3H9svFATxuCx8EusLMPSBwsS0mGQHTvHFpcBuOJ52IpoIPEtcmQlzl9yvTrkLUMKnVrYcWBS7bNRQ7OEuroAt7jqocs4KWq3MlbbyqXU9e6BOLtESlYCVL/enUjvkpx/WvRbd9e73FoXp9FbhS36omf8GOrY9sCCUIqMOMszAUR98xAPfMEeuz1H+bSNzfl4h4BletzKJzt0nnSmPQDiZViXBE8WUSa/ZnTZQ1CyLMQ1YqopbWPrC68ENLK7Ej4KO+fEN9Nk0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cbf39b1-f758-4f8c-399a-08d63f3f3b76 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:33.8581 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5236 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_144346_990680_68A1884C X-CRM114-Status: GOOD ( 12.60 ) 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" , "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 Select CONFIG_SOC_IMX7ULP by default. Patch generated via make ARCH=arm savedefconfig Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Signed-off-by: Dong Aisheng Reviewed-by: Fabio Estevam --- v2->v3: * no changes v1->v2: * rebase to new version --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 1ad5736..27ee422 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -38,6 +38,7 @@ CONFIG_SOC_IMX6SLL=y CONFIG_SOC_IMX6SX=y CONFIG_SOC_IMX6UL=y CONFIG_SOC_IMX7D=y +CONFIG_SOC_IMX7ULP=y CONFIG_SOC_VF610=y CONFIG_PCI=y CONFIG_PCI_MSI=y