From patchwork Fri Jan 11 11:55:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10757937 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 A01911515 for ; Fri, 11 Jan 2019 11:56:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90C9F298A2 for ; Fri, 11 Jan 2019 11:56:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 850F9298B0; Fri, 11 Jan 2019 11:56:01 +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 0A798298A2 for ; Fri, 11 Jan 2019 11:56:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731280AbfAKL4A (ORCPT ); Fri, 11 Jan 2019 06:56:00 -0500 Received: from mail-eopbgr20064.outbound.protection.outlook.com ([40.107.2.64]:57488 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729237AbfAKL4A (ORCPT ); Fri, 11 Jan 2019 06:56:00 -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=CvChuRwk1T3WH0IZydd5m0qOvbed2iqMx8njoq2D8Qg=; b=Nhi5kcgYRwW0HKJf9Zf9EurxrG91B2fLJMvMzLIfSP4ymozdkfxepoohX5iLkxeYo4UiSnxMwU64K9zZjJfn2EHV0b7tfh7TCPZ0QqFVeso8slRmDgYHfuWvtMDuvDyOZtAHJ7TUH+moR3oN04rr5kponKfaXsB0FbdTuRmFlGM= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4659.eurprd04.prod.outlook.com (52.135.149.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Fri, 11 Jan 2019 11:55:56 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5%5]) with mapi id 15.20.1516.016; Fri, 11 Jan 2019 11:55:56 +0000 From: Aisheng Dong To: "linux-clk@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "kernel@pengutronix.de" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , Aisheng Dong Subject: [PATCH RESEND v1 1/4] dt-bindings: fsl: scu: add fallback compatible string for clock Thread-Topic: [PATCH RESEND v1 1/4] dt-bindings: fsl: scu: add fallback compatible string for clock Thread-Index: AQHUqaScouu+rHXVuEW5bMOSXvrk/g== Date: Fri, 11 Jan 2019 11:55:56 +0000 Message-ID: <1547207400-28307-2-git-send-email-aisheng.dong@nxp.com> References: <1547207400-28307-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1547207400-28307-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: HK0PR03CA0063.apcprd03.prod.outlook.com (2603:1096:203:52::27) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4659;6:/OztD89ox2kzO3ZcQSdALTBMKOC59352+0ayoI51q7Yb1w1ic/mSOt3KR3PZzEfN4FWCwLlZ79TPA85of94bP+fBahrrCKtYjbOVQccZy5KtASGlBPk7CQSKpl3q9s1vC3y1yvUmulLOnfqtAXUqvwRjs35oxErBzIp72Z2XABpm+lbZSF0lZyl5sfPZ+LXfDL2d7sNCb+OI8bS7uXHML+7gYvePBuu5c4qgORM4ZLG/RPzt4eCHTarKjxPlUBI5S1GtFAEhjRWK+iKjswpa1Jr41f4XwwyIycyt9AAd/3GUGiRGb/4441XlURVsdH1SHxioLgQNCsH3T91GKSUDQgf1FYNFn6OJDVFcMeOyTlA8weGCpVozJItV8HYABiSyY+GkSum10p1jEginGA1DNMDwsIj5qX0UJuKo+fsYqQL8gs3WpBrlrqJmxwGQ9SbAP6tJHEZSBm2r6Khynd71ww==;5:GtkoA43BbTLCcVcwqrQ1SO/a0nnEC1IvCHCB39+6E388rwHsVkQnDqPphrqYYdv2hDxovJ2DpwKtoN4l4AUfQQUKyER3g+oqrwNJEP1GvBppftj1KQoJxIS1Mlm763XDjxaS0l9GwLa4/Cze+gTn35uPR4+DXKDO4AqB9Q1CsTZ230eWggbQVtYx5zKXQYbPA2VJ7hJh/UdaKBgiVu+C9Q==;7:jXaIHM9h+mzIFG+eCAFSRC+EIEvlWZjuc00FLZXCY9a/5W9DClAb21ho9Zket4x7EnhBaRx/QxVZv3H5rsEzgK4tlgB/HBL+R8zRaUdVuOjUwg1PLo4XkOVkFp6KcU3JejPuco8n1hrGnsHiZ7As3w== x-ms-office365-filtering-correlation-id: 431fc9ea-ba6e-4096-c6ac-08d677bbbeeb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4659; x-ms-traffictypediagnostic: AM0PR04MB4659: x-microsoft-antispam-prvs: x-forefront-prvs: 09144DB0F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(376002)(39860400002)(346002)(366004)(199004)(189003)(478600001)(316002)(2351001)(54906003)(14454004)(68736007)(186003)(105586002)(106356001)(86362001)(4326008)(71190400001)(71200400001)(6486002)(76176011)(52116002)(53936002)(5640700003)(25786009)(6436002)(2501003)(6512007)(5660300001)(97736004)(44832011)(256004)(99286004)(102836004)(6916009)(217873002)(26005)(6506007)(6346003)(386003)(11346002)(305945005)(7736002)(36756003)(50226002)(2616005)(486006)(66066001)(2906002)(476003)(446003)(6116002)(3846002)(81166006)(81156014)(8676002)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4659;H:AM0PR04MB4211.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: FdHuVlgagPrpZ16iOYbsD3BZ4XaBMsKTZe8ehF0+p7NMUNfarVZO72OyrM7tHPuxwkWgVokPwsFao9BGXC975xHLOSf0qHY32z5y563t19C0E3n1aan/kzCWEIKHN786DQZnY82BZ1D7Hdcjvyt41qJFjOELlIOpCUNUIvglBceTyo7BZL9QmQvbg5ZBb6iU2vH3cum4tJ4+pbtywtfQdLpLPz9G4wU6V34ZOVSgDrKDazedaAf/czgF/orI0gAvMl9nIVomuhQqmFImvAhoi4B8A4OCGqHHBzucfIvQxGhMbpk/dTD3Xf03mIkCeCG3btlELm2OPfyGvHvjQXxGNz56CrEpO6s5Y/Nt4CjXQXNLkwEilR227DjCJGtg2W43MGJpCwfWey704AG8bGpItwNc1S4vYCKI7cikemICrI4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 431fc9ea-ba6e-4096-c6ac-08d677bbbeeb X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2019 11:55:52.9991 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4659 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SCU clock can be used in a similar way by IMX8QXP and IMX8QM SoCs. Let's add a "fsl,scu-clk" fallback compatible string to allow other SoCs to reuse the common part. Cc: Stephen Boyd Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Michael Turquette Signed-off-by: Dong Aisheng Reviewed-by: Rob Herring Acked-by: Stephen Boyd --- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 27784b6..5ec6dca 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -70,7 +70,9 @@ Clock bindings based on SCU Message Protocol This binding uses the common clock binding[1]. Required properties: -- compatible: Should be "fsl,imx8qxp-clock". +- compatible: Should be one of: + "fsl,imx8qxp-clock" + followed by "fsl,scu-clk" - #clock-cells: Should be 1. Contains the Clock ID value. - clocks: List of clock specifiers, must contain an entry for each required entry in clock-names @@ -137,7 +139,7 @@ firmware { &lsio_mu1 1 3>; clk: clk { - compatible = "fsl,imx8qxp-clk"; + compatible = "fsl,imx8qxp-clk", "fsl,scu-clk"; #clock-cells = <1>; }; From patchwork Fri Jan 11 11:56:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10757939 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 B4DF291E for ; Fri, 11 Jan 2019 11:56:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A586D298A2 for ; Fri, 11 Jan 2019 11:56:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 983FA298A7; Fri, 11 Jan 2019 11:56:05 +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 27A1F298A2 for ; Fri, 11 Jan 2019 11:56:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729237AbfAKL4E (ORCPT ); Fri, 11 Jan 2019 06:56:04 -0500 Received: from mail-eopbgr30066.outbound.protection.outlook.com ([40.107.3.66]:55008 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731289AbfAKL4E (ORCPT ); Fri, 11 Jan 2019 06:56:04 -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=UBAptFk6e8pShXlMBsateOWHrrcALuqlDnDlN5NfSrc=; b=FCqHuUvtCWUNJLP3Ql2PcYOfkLkNvMmouOhjQHHaiSuTCD5qlutJR4Uw3FVYbIMZrPZTjW78RQNXArDajkLTFSmjxguuDQUeICWOkisl1HQoDD8wsCatkV7IW8PBv3MDrzca1fOpG1spGk0QdcNWWsmtHngxH4BGX/IUYscfWzo= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB5281.eurprd04.prod.outlook.com (20.177.42.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Fri, 11 Jan 2019 11:56:01 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5%5]) with mapi id 15.20.1516.016; Fri, 11 Jan 2019 11:56:01 +0000 From: Aisheng Dong To: "linux-clk@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "kernel@pengutronix.de" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , Aisheng Dong Subject: [PATCH RESEND v1 2/4] dt-bindings: fsl: scu: add imx8qm scu clock support Thread-Topic: [PATCH RESEND v1 2/4] dt-bindings: fsl: scu: add imx8qm scu clock support Thread-Index: AQHUqaSfloWwjzPfcU69BMY7ob8z+A== Date: Fri, 11 Jan 2019 11:56:00 +0000 Message-ID: <1547207400-28307-3-git-send-email-aisheng.dong@nxp.com> References: <1547207400-28307-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1547207400-28307-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: HK0PR03CA0063.apcprd03.prod.outlook.com (2603:1096:203:52::27) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB5281;6:L5QmZLImakqgJV0pJvi56mGnRrm3hC/WW2mevO5uLowsSgvsu4jKemFVp33oI+Vj5ljmukDOla4QGHnQfU/RAjo6TbwfmyExK2cYfiCnc8Syz2H//ceUP9R6e0oVozky2qBNzRsaMDkRL7DyYyRDMJlgzBl1Edbx8ChKGkWx1LN5a2sl6XMm7c7aRhq5Dym2OEBmGmWuJ1ras0+098TFNSyXXnvljMUzAjf4PnstCWMd0J/s36LQVlZ2PP4mxr4zsJZEq6UxIhMbg5XuAxmHOsj35trTsigGlI+GBtexOWk5lbJ8RVyEglA0dxll1Z4WWaWDt8RMLSB0RNshvzvriCYadoaI/w3PivGdcBKiqD4VZnb+FbrxjgCHwe7GN+VaGN5ZhgqrYp7g9NgxKuaYu3fPKdoIjO3SGVgxmeNU477cFIcngojoTtapjnLKc9gLdhDYxv6F+MT9oGhsttcmnw==;5:dcrBLHX3zqbWHsdxmzuHloxX801EHPG5PAt9T2S1aUgFrjSeciD2sZKz0Kmkblvm5fm29ew0Jresw2hG1BY926I7kygkBtckdMFnKQIiEAJf3ZZHyPZJjLQmh5PGZaFY+HqKnyBihuuDh4q+mxtzg+wmEcmSYC4MiAeIXPkhUNvvJQ2sc80LXIEEB1g3Ehnq87/3U8x+OaO5VrqirVLECQ==;7:ozqQABjuZC4x/gHouwEfF3UvHLYFH29uXikIPEYKWSKX4V8RgN2ZDLw94iGUMkXAUTYIsAmTx1B8kr2NHP98QBIhOuDDt2y25E3duEUYeBi0RlaOOw9WI2g6NdbBzuzvimq3OGeU+uCRcth/vCwaaw== x-ms-office365-filtering-correlation-id: 6435f977-42ed-4e23-5343-08d677bbc14f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5281; x-ms-traffictypediagnostic: AM0PR04MB5281: x-microsoft-antispam-prvs: x-forefront-prvs: 09144DB0F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39860400002)(346002)(136003)(376002)(189003)(199004)(105586002)(106356001)(7736002)(2501003)(305945005)(71190400001)(71200400001)(4326008)(5640700003)(25786009)(50226002)(8936002)(81166006)(81156014)(8676002)(54906003)(6506007)(6346003)(97736004)(186003)(52116002)(316002)(76176011)(68736007)(217873002)(11346002)(14444005)(36756003)(2906002)(4744005)(476003)(486006)(3846002)(2616005)(446003)(26005)(6116002)(44832011)(386003)(102836004)(53936002)(478600001)(86362001)(6486002)(66066001)(256004)(99286004)(6512007)(2351001)(14454004)(5660300001)(6916009)(6436002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5281;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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: p11ucBd2Wktxdlx2Chk4VViSwkzXB/dG0IQ3ZAIv6fs5ogDy+rqcb9bRNscfUSAybHVp01U3+AClMXJiCEmL30ihFjQiCU5KLoZwBOIF9n+kMjt+ysZHXpG6DIefNSW7oMolqSAfMc5QkgxTH0T/8Jya2aNHRyZiz+ZDGRmSeFI1n5cGR8dKEnc2gB4oQNAqahU4EijzcLn1rhcMNf8oDzzt3oA3jYtMik1t3L7ai9fWroFU4TUvjBko4TzyfaaCYn8UuXgJp0Dab89DzIGi3Ho6n6Pg7/1L3hust9qwszH7wwiwlqUzz8Z62A91wOaLtJSMcy+6tYLErE0UOPFj9BQ9v90l83HaInvK4li1TgDb0AlGrmxeyRowWqh7XBhdyFiXJy522AIBGxQT7FoscLfyh/qi3vt8pHfibvGzrBg= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6435f977-42ed-4e23-5343-08d677bbc14f X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2019 11:55:57.0089 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5281 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add imx8qm scu clock support Cc: Stephen Boyd Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Michael Turquette Signed-off-by: Dong Aisheng Reviewed-by: Rob Herring Acked-by: Stephen Boyd --- Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 5ec6dca..b6a883e 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -71,7 +71,8 @@ This binding uses the common clock binding[1]. Required properties: - compatible: Should be one of: - "fsl,imx8qxp-clock" + "fsl,imx8qm-clock", + "fsl,imx8qxp-clock". followed by "fsl,scu-clk" - #clock-cells: Should be 1. Contains the Clock ID value. - clocks: List of clock specifiers, must contain an entry for From patchwork Fri Jan 11 11:56:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10757941 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 32B8C1390 for ; Fri, 11 Jan 2019 11:56:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 232E9298A2 for ; Fri, 11 Jan 2019 11:56:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17742298A7; Fri, 11 Jan 2019 11:56:10 +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 AD95A298A2 for ; Fri, 11 Jan 2019 11:56:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731918AbfAKL4J (ORCPT ); Fri, 11 Jan 2019 06:56:09 -0500 Received: from mail-eopbgr30056.outbound.protection.outlook.com ([40.107.3.56]:54748 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731289AbfAKL4J (ORCPT ); Fri, 11 Jan 2019 06:56:09 -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=hx0sjWW7vfvMa2anGrtbd22/ZIAO9GvHUrm6VsEsgJs=; b=MJBuBL3FpzwgP0/nSGlMWu4P7zHHaETrmAPUvqI++b3I/AkQ2VnISmYvyA8D7LhrdLnnlG2Fi44vbxCqXAN2QgRVTKkTXR/aS5XIvosEGX4BP/wdzk87UqQYogMvyVXJ7+SoL77xaCMEsTCG2ZDZY/YFcOgWQhPviawufFoHgEM= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB5281.eurprd04.prod.outlook.com (20.177.42.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.9; Fri, 11 Jan 2019 11:56:05 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5%5]) with mapi id 15.20.1516.016; Fri, 11 Jan 2019 11:56:05 +0000 From: Aisheng Dong To: "linux-clk@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "kernel@pengutronix.de" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , Aisheng Dong Subject: [PATCH RESEND v1 3/4] clk: imx: scu: add fallback compatible string support Thread-Topic: [PATCH RESEND v1 3/4] clk: imx: scu: add fallback compatible string support Thread-Index: AQHUqaShCArI6C0FpUmUaDgoQmCTVA== Date: Fri, 11 Jan 2019 11:56:05 +0000 Message-ID: <1547207400-28307-4-git-send-email-aisheng.dong@nxp.com> References: <1547207400-28307-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1547207400-28307-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: HK0PR03CA0063.apcprd03.prod.outlook.com (2603:1096:203:52::27) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB5281;6:1Nf0tpjljCXchLal4uq+rVvo/1cmcL6nIEQXVQQ35zjSv1C4dQ8gmdKiNqIxtHkdzI0cGtRHSllOH4d8D1PSe3hKaXrFtQW+iaKsfZgWXAxsV3YBxambVwKYdkUo7c12we2mw69cpyrDvSWjhbIPkB6VeUW4wn9nU6Mqve+eOxqnYa2faX1S3tO3nswqETuLMoselTkG8xoU/RjnjalG4PEU9hQrw/EYzvip9DtB5Mx2FFuDGfqS26Gx6hYkmIBGo9O+HUqJm5WixjIB0J2kqva7JTaOTcouXB442N4j/ejc7ha3xKOTB3XRRNWusq0Sg8XQNYROkE2XX7jUuKCxUsujEaZXEu3z8YM7iWNRrJyIm3P9YOPotRfDXOyarCaFFlZaQer5puAfPQCOPNidsaWDjh31W/MBnlwTvbtE/nDwSfTN8V8ITDxmvMMietSH4QhLQonywl7b3byHpGHqCQ==;5:jVk1eL1iWCjgIjABKSn7Zy6ggMqimMQZzx2pSy/0qxYPQp28mC8ORAICW4Wg1AgsBJR7TYTS6uS5B6l/XR/o6NtLiS7wlw9d6xISVu9x2pM1agPbbOXA/PEJ1bZ2UTzq0v/wwdKSXEOa+HFXRmgmICkv6CIgtTNEhZWir6gqeE5wcUEmvOVjb+3L7MeY9J/843h2rJqG32xk5x4ZYXu2VQ==;7:FTzheH7VpWoPwGN/YxUEHa+Isk3KAVxTX5OP+s4tMRjo8VjNQGK48BeR+foUOel/rLezZovvce79iBaoqVAgVIRzRp4LOxPBdYc/TIpQQVVkgzCVGgU8NsL2hBoLbDrxr68I+d7gBw5E18YCfpCIdg== x-ms-office365-filtering-correlation-id: 23afaf8c-57f4-4e74-73e9-08d677bbc3d6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB5281; x-ms-traffictypediagnostic: AM0PR04MB5281: x-microsoft-antispam-prvs: x-forefront-prvs: 09144DB0F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(39860400002)(346002)(136003)(376002)(189003)(199004)(105586002)(106356001)(7736002)(2501003)(305945005)(71190400001)(71200400001)(4326008)(5640700003)(25786009)(50226002)(8936002)(81166006)(81156014)(8676002)(54906003)(6506007)(6346003)(97736004)(186003)(52116002)(316002)(76176011)(68736007)(217873002)(11346002)(36756003)(2906002)(4744005)(476003)(486006)(3846002)(2616005)(446003)(26005)(6116002)(44832011)(386003)(102836004)(53936002)(478600001)(86362001)(6486002)(66066001)(256004)(99286004)(6512007)(2351001)(14454004)(5660300001)(6916009)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5281;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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qP91LMt3wYV0sX6SiZDYJy7gIRGf3d7jHrGxWPQy7A/sq3/5THD99TPvkY2Nmx0Pty4oRZIHcQNn8NDN3Rh9adCKDUGIG8kAMnbDiK+pfxS+208pimMWCJQ1bHm3aE8CuJE4sN+sfpbzHR3qZXeAddyFzmiP+ziHkg2JclJKcDmT5gKEPuHOXGWf4ihzplyo4JdsH/Zpc9Jo5nT9+qN8niQJ5HMuo3QJ0ejIbs45av3X/E/NLZ+nGIiEyIL5wRtjkriSO/t5XiSRsqf1ZgmWa33c3i9ZonxWBZH5KUzEt8d/RYQtWMFS0wbaB57FrU3+Eiw3OExqhGLG5lfeIvL1I0WvvNn0im4bt+/JlWDIVlGlrZX+6oYckJEZeFE0dHFrDl+wxDm866JiF+6lTfffZSpTQPKaKrmLH2z/j+eBtdk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23afaf8c-57f4-4e74-73e9-08d677bbc3d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2019 11:56:01.2450 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5281 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP SCU clock can be used in a similar way by IMX8QXP and IMX8QM SoCs. Make the driver support "fsl,scu-clk" fallback compatible string to allow other SoCs to reuse the common part. Cc: Stephen Boyd Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Michael Turquette Signed-off-by: Dong Aisheng --- drivers/clk/imx/clk-imx8qxp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index 83e2ef9..5e2903e 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -138,6 +138,7 @@ static int imx8qxp_clk_probe(struct platform_device *pdev) } static const struct of_device_id imx8qxp_match[] = { + { .compatible = "fsl,scu-clk", }, { .compatible = "fsl,imx8qxp-clk", }, { /* sentinel */ } }; From patchwork Fri Jan 11 11:56:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10757945 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 6111D91E for ; Fri, 11 Jan 2019 11:56:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51CD6298A2 for ; Fri, 11 Jan 2019 11:56:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 459AE298A7; Fri, 11 Jan 2019 11:56:18 +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 29A2D298A2 for ; Fri, 11 Jan 2019 11:56:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731921AbfAKL4Q (ORCPT ); Fri, 11 Jan 2019 06:56:16 -0500 Received: from mail-eopbgr20068.outbound.protection.outlook.com ([40.107.2.68]:4903 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731289AbfAKL4Q (ORCPT ); Fri, 11 Jan 2019 06:56:16 -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=+rSgbVUFXMhV7Imsu5RSQ3XGFNcFP/erJgj7Y6uCiJg=; b=io/KRsBQ8Nl/xtqY4qf3Wz6A/NdxAErt5jROeDuQBYDTZ4nZQvOVkdAO4ptO3PL3P07rJ351bf8UqkQD+wNpwI2QARjuhRUZll+j7GmEZDH0sMz0mHWjopM9NcHUVLrW+VoGwJslwy/TWhpw99vQgWQeiD3L80fWW118fQTPz2I= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4659.eurprd04.prod.outlook.com (52.135.149.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Fri, 11 Jan 2019 11:56:09 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c4d2:7dfd:4576:bdd5%5]) with mapi id 15.20.1516.016; Fri, 11 Jan 2019 11:56:09 +0000 From: Aisheng Dong To: "linux-clk@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "kernel@pengutronix.de" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , Aisheng Dong Subject: [PATCH RESEND v1 4/4] dt-bindings: imx8-clock: add a53 and a72 clock id Thread-Topic: [PATCH RESEND v1 4/4] dt-bindings: imx8-clock: add a53 and a72 clock id Thread-Index: AQHUqaSkppDl39MTT0aJiP3Ffy/VUA== Date: Fri, 11 Jan 2019 11:56:09 +0000 Message-ID: <1547207400-28307-5-git-send-email-aisheng.dong@nxp.com> References: <1547207400-28307-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1547207400-28307-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: HK0PR03CA0063.apcprd03.prod.outlook.com (2603:1096:203:52::27) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4659;6:keMupmWEsL0kOo+EBVLU+EtzfrY0qcrcKnpRnW6dqrZQhEwOOgS8srVo7oDZzZ0nE6mVoNwX/o9LxuL5CMDP6rtyp27nfaV2yq/ccmHafAL0SNha8sHJ3I5TPLQpvB8cTzBq+AMYix+vWQYIVrCafFKK9WNW7nth+OzHfraDOEX8uAZ8SW9XMyxu3hWc4E/oQ6VwZnt+xLgek2p/u6L72MlvoLtSpsuZQhYGp33kI3CMun0lkU31qiKrJRaGYAnoc4kvzwVw4EZFXAVUkMpxgHqntKhfUmTLEBsFOfGEr0r0S3Q4tlrPa7+EWUTOqJIk3ciGy/ZFJdqcovEf4WHi0CYx4Gn/aHzEXpaRCkUtEHmM62TjDfdFXYEFAxYFt08nq1BBJaZQjlxsj15eWBRMDJoBB5OMkf3AJCPwplB6UtDweHN0F/b1VBgHf8Jzi3tT2xdTg6Nq+1vZVfWnabsVvQ==;5:Qj9N0ZHTEDRmxTwla7/UkR8MTBZi8rj8/+fHzRcZWXlOcM15ZKdSYuugyi5ftqizoP90pH3qFf2AHYiHdSOzPwh81EF95dxJ6t76gAKMOIaqYXEtdpn0FXV3iKYAzPS33nQH2sX/d+oo6b+n75DzqZcgivc9oWH3Sp7/vJQXQmfP+yiT0l/hdc3lwh9ahXHmGyMkZo1V/3k27mwDGwUmUg==;7:rtZd5pA1XBCU5SOrgVxHygPuHOolEcPG3APR+GuOXHB+IxSPGvltT3yrvUqtAZdwoQr+K/Z/p/wP3jKJSQuRyZLk/SNdGnunqQoJDgLJIr4KCIn985MiJzz76+Si8shmRSiHjsPCg9vMobEyMmLzLA== x-ms-office365-filtering-correlation-id: 48b95652-c4c3-4ec0-26ee-08d677bbc659 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4659; x-ms-traffictypediagnostic: AM0PR04MB4659: x-microsoft-antispam-prvs: x-forefront-prvs: 09144DB0F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(376002)(39860400002)(346002)(366004)(199004)(189003)(478600001)(316002)(2351001)(54906003)(14454004)(68736007)(186003)(105586002)(106356001)(86362001)(4326008)(71190400001)(71200400001)(6486002)(76176011)(52116002)(53936002)(5640700003)(25786009)(6436002)(2501003)(6512007)(5660300001)(97736004)(44832011)(256004)(99286004)(14444005)(102836004)(6916009)(217873002)(26005)(6506007)(6346003)(386003)(11346002)(305945005)(7736002)(36756003)(50226002)(2616005)(486006)(66066001)(2906002)(476003)(446003)(6116002)(3846002)(81166006)(81156014)(8676002)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4659;H:AM0PR04MB4211.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TkHIyzorEfOHUqaug6crr/EcVbjhD6OfQYXMEwmdchHz8jtD/Iu1qjvdks0d3pzHAJvaiFV6RBxWx0F1boMpRArxbdyH6BQokHV3H7jOWHsPB1SK6eeYg2JT3hBYCWSaveM/54S/J8R3q49m6OSZkP19lYahGge6bD/jRNIpLZVoXF7lr+aIumdCcg7pz1T5EW0mEbzh4x1n+y/2H13zuyMGGTjrXfrmx1ZU5vqrArNrrh9EJoYsq+CtFNqyfGf5ae28bGPxkrXgs++9p/3FmLi73whqY1VvZoRIlolGrYQKheeJzVjQBTTItD4a4P57xhxl0A6LCHKILRIok3sgaM7QXndFnTifqr/OCiWIoAkhxhq+jcEbYvSG1o1jDIcikEpo/pNzN8mrwpTjQY2EeAPvyoPBdjavASGKSLKDuWE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48b95652-c4c3-4ec0-26ee-08d677bbc659 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2019 11:56:05.4599 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4659 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a53 and a72 clock id, as there's still no users, we update IMX_LSIO_MEM_CLK base to start from 6 to allow a53 and a72 clock id to be continued with a35 clk. Cc: Stephen Boyd Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Michael Turquette Signed-off-by: Dong Aisheng --- include/dt-bindings/clock/imx8-clock.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/dt-bindings/clock/imx8-clock.h b/include/dt-bindings/clock/imx8-clock.h index 4236818..2f1aa2f 100644 --- a/include/dt-bindings/clock/imx8-clock.h +++ b/include/dt-bindings/clock/imx8-clock.h @@ -13,10 +13,12 @@ /* CPU */ #define IMX_A35_CLK 1 +#define IMX_A53_CLK 2 +#define IMX_A72_CLK 3 /* LSIO SS */ -#define IMX_LSIO_MEM_CLK 2 -#define IMX_LSIO_BUS_CLK 3 +#define IMX_LSIO_MEM_CLK 6 +#define IMX_LSIO_BUS_CLK 7 #define IMX_LSIO_PWM0_CLK 10 #define IMX_LSIO_PWM1_CLK 11 #define IMX_LSIO_PWM2_CLK 12