From patchwork Tue Dec 18 16:01:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10735941 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 08466746 for ; Tue, 18 Dec 2018 16:01:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC5742A92B for ; Tue, 18 Dec 2018 16:01:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E07352A93C; Tue, 18 Dec 2018 16:01: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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83E7E2A92B for ; Tue, 18 Dec 2018 16:01:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbeLRQBf (ORCPT ); Tue, 18 Dec 2018 11:01:35 -0500 Received: from mail-eopbgr40063.outbound.protection.outlook.com ([40.107.4.63]:1472 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727090AbeLRQBe (ORCPT ); Tue, 18 Dec 2018 11:01:34 -0500 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=n23TKsxdiAFAs1kKf5Joj8a3REbJVBEYGfj4t3yYS7U=; b=eDpNnHTJlOnjL+jMArTqwSs4+xLGjetG20I+umLz9V+K6pJ1jrcEQb6Hu8VD0y87YrxEFyARndXYlV2VxEsaBsAI6PnsGc0GOJA2dPZV4cr+C0WCutHGW2DtkpXnCuGbnqYeGkUE9nbJkIYal2tXsZy1uY+vZsZMitPaKOQTqkw= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB5987.eurprd04.prod.outlook.com (20.178.114.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.22; Tue, 18 Dec 2018 16:01:29 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::9125:e806:7303:d8e6]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::9125:e806:7303:d8e6%6]) with mapi id 15.20.1425.023; Tue, 18 Dec 2018 16:01:29 +0000 From: Aisheng Dong To: "linux-arm-kernel@lists.infradead.org" CC: "dongas86@gmail.com" , "kernel@pengutronix.de" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "rjw@rjwysocki.net" , "ulf.hansson@linaro.org" , "khilman@kernel.org" , "linux-pm@vger.kernel.org" , Aisheng Dong , Rob Herring Subject: [PATCH 3/3] firmware: imx: scu-pd: add fallback compatible string support Thread-Topic: [PATCH 3/3] firmware: imx: scu-pd: add fallback compatible string support Thread-Index: AQHUlurwA0NDQnzmX0qXNHEGsWcFOQ== Date: Tue, 18 Dec 2018 16:01:29 +0000 Message-ID: <1545148524-658-4-git-send-email-aisheng.dong@nxp.com> References: <1545148524-658-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1545148524-658-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: HK0PR04CA0016.apcprd04.prod.outlook.com (2603:1096:203:36::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;AM0PR04MB5987;6:SlrRk2vUCeJQI7zq2GQ0carQZX7x9uML/XdrO5hwuQnQ9RzeQIRE+frupJ0o4dk/Q61yZjyJ8XAKlbvgJQVGqeY08X2cUu5BnU8r0t1yeeWzAcD0MdVgsAkW74d/VTsM7Mv5ZMOLGS2cc2hG4R+s3QxkJQqLFKjHgqTYDvoEsSsA5MQZp19xaO+650is1/vwcwhFLbZrzudZ7XBWww5bRBwwJdPXTZHjFMP9EKJ2mBbUQEdKWZfvii9AUUCJOGqrpVnztt9eNBwUy6IFb2aMICfJgY6J6F/Txctlg5gw9tTpjelPig6I6on44k0YsPob3J8EapiwmbtQ6BXS1MCufwSBb74i3mw46ASr7Bjp0O8yuW802JvSENwh4iTDue1TYk3N9wUIpMPb16oc03rf43B+yI2n3FArpVwI7NUITpcEbwpi3qHJuDTFkKDuakMK9eE4+J5WzOHApavQhX2UKA==;5:D62hEASvyYJzx2FirrEm02wpwp0ig5dTv8fg4EWsx69ptNgzA5ILRM/xHLCNezR4X4troHcQpfEsY7HXqHaeV7NjkRyDylsLfmXneAxw25vdrQy1K3XnF7Bjk5x64BcvxAPPLv7DCvV310SpRo0YJn8edpkzM0tpvY2GiK4pID8=;7:+n0YgopbuLtl9FNBYRaTfL3+AyInzg5QB6FJ5uK7HTofNh5f2wd6n3RVvUk7miYsW/CebGGdCfT+qDa+8IzwZ8bK7dytrgLTATxX4Vcq/KBPq2yEbkqJ/yTZUJGlPB0CJJIoUwK6zzb8J07vX1FsvQ== x-ms-office365-filtering-correlation-id: 3d6bcdb8-5f70-427a-8b11-08d66502125e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5987; x-ms-traffictypediagnostic: AM0PR04MB5987: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:AM0PR04MB5987;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB5987; x-forefront-prvs: 08902E536D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(39860400002)(376002)(346002)(396003)(189003)(199004)(6116002)(39060400002)(4326008)(3846002)(44832011)(476003)(486006)(2616005)(6506007)(386003)(76176011)(102836004)(25786009)(52116002)(2501003)(5640700003)(68736007)(6512007)(36756003)(99286004)(6436002)(54906003)(316002)(53936002)(14454004)(6486002)(6916009)(186003)(26005)(446003)(256004)(11346002)(2906002)(305945005)(478600001)(71190400001)(71200400001)(7736002)(8936002)(8676002)(81156014)(81166006)(86362001)(66066001)(50226002)(97736004)(2351001)(106356001)(5660300001)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5987;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: lmu0rzvXuFYQIba2BgdeL/kEheXseYVFdUdoags79wltscGG+W/UEazVnP8D0tbsRQgJHID0z0Y6YNAlBiSyPEarYc8nIDLQvD3F9LBDMmbsAkIqGLTZbLhpj2IeGttKypMfBDSE2IVIqEwHSHBI+6byfRSunOC5odZnigQwQo9Jn90wbdR/snHa6pQ6NvzB6sBlvtlzQ4yym96MGUVqRFYXnlV6hBkopXlJ0d7lFcoGMiZyIJIJl1bbdmCvaOYuOafd+mWajZo2w8JPtw9SQIPpnzrOKh3kOIVTgpaWoKK2EcyWA6ULaFNdVXIj8pv8 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d6bcdb8-5f70-427a-8b11-08d66502125e X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2018 16:01:29.7498 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5987 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SCU power domain can be used in the same way by IMX8QXP and IMX8QM SoCs. Make the driver support the fallback compatible string "fsl,scu-pd" to allow other SoCs to reuse the common part. Cc: Ulf Hansson Cc: Rob Herring Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: "Rafael J. Wysocki" Cc: Kevin Hilman Cc: linux-pm@vger.kernel.org Signed-off-by: Dong Aisheng --- drivers/firmware/imx/scu-pd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index 407245f..1aaae98 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -321,6 +321,7 @@ static int imx_sc_pd_probe(struct platform_device *pdev) } static const struct of_device_id imx_sc_pd_match[] = { + { .compatible = "fsl,scu-pd", &imx8qxp_scu_pd}, { .compatible = "fsl,imx8qxp-scu-pd", &imx8qxp_scu_pd}, { /* sentinel */ } };