From patchwork Thu Feb 21 18:03:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 1046353 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="klFXjV4X"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4452R371bqz9s9L for ; Fri, 22 Feb 2019 05:03:59 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725866AbfBUSD6 (ORCPT ); Thu, 21 Feb 2019 13:03:58 -0500 Received: from mail-eopbgr40049.outbound.protection.outlook.com ([40.107.4.49]:61888 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726146AbfBUSD6 (ORCPT ); Thu, 21 Feb 2019 13:03:58 -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=SM3wyXK7QqRPXtL580t+z3chpoHQY+tfRE63KtpCF58=; b=klFXjV4XI4p9v/IBA3n6J/Vt35HH8TsFZYbk66z4pJRfPJJjyiUx0lr3qqRlkYsswKeGVZQYgNCf8YwT/SmPnZZN6oXR41ua/8bdCqIguD2/2zksmstnBcZybEPYpx3VfcgXDgPmd/DaMWyZ41r1Ff5ZcMxniLUAAJDwmmC3PTA= Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (52.134.31.21) by VI1PR04MB1663.eurprd04.prod.outlook.com (10.164.85.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.18; Thu, 21 Feb 2019 18:03:47 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::b1cb:82a5:aacb:238d]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::b1cb:82a5:aacb:238d%6]) with mapi id 15.20.1643.014; Thu, 21 Feb 2019 18:03:47 +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" , Aisheng Dong , Rob Herring , "devicetree@vger.kernel.org" Subject: [PATCH 2/4] dt-bindings: clock: imx-lpcg: add support to parse clocks from device tree Thread-Topic: [PATCH 2/4] dt-bindings: clock: imx-lpcg: add support to parse clocks from device tree Thread-Index: AQHUyg/Kxp1YOB0bxEaB6SXWVnNLZw== Date: Thu, 21 Feb 2019 18:03:47 +0000 Message-ID: <1550771836-10014-3-git-send-email-aisheng.dong@nxp.com> References: <1550771836-10014-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1550771836-10014-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: HK2PR04CA0044.apcprd04.prod.outlook.com (2603:1096:202:14::12) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:3e::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-ms-office365-filtering-correlation-id: 44cc94d4-4b7e-48bb-334c-08d69826ed37 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1663; x-ms-traffictypediagnostic: VI1PR04MB1663: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR04MB1663; 23:eAUKPt+NWkMkgkQVo903JBsXKcrHrlCReXti5XZ?= =?iso-8859-1?q?j8dkUSrginDpPyTwRSM/tIMHK?= =?iso-8859-1?q?hfu4cHZHqJv+R/qSNJYDnHg7G+hoVeIngdEps/xZaG4oUqq6GCk?= =?iso-8859-1?q?Tfe64zVwcg3IGLHvcsSjc3whz0l0V5KqcZ+QWgcTtgqbF93qd4Q?= =?iso-8859-1?q?JsDAohVhfOghDTLVV4FLbTuaNeAdtwZRC1mNxzdh5rGD4XGqump?= =?iso-8859-1?q?27EY4YvGuIFPKca2pdmgbZ4JGhRWuov4lVmAD5BRHOhNsEOfe4C?= =?iso-8859-1?q?Lk5tUW7rkqfb+euthXdREeRy9369cWaUcp9q9Idmx9qByjJI5MU?= =?iso-8859-1?q?mPH0y5GGwR6XrDNGt13HbN88M04mOFpKN2gq7ZDEQjBSNgYpm9w?= =?iso-8859-1?q?5EICQ/iBiQaoDikL+Mn+S4sOFbbT6U08XlMUHZFnVzJWJAajOke?= =?iso-8859-1?q?Lykh+8vAxZsC4xdLGHi0Bb40hUa6fZuSTj0FaJD9dDgzwADQZRB?= =?iso-8859-1?q?H6My/VSPpJbqao1oXttmYeMuP4/AGsAZtrbIG5xBXbKJaAd8iam?= =?iso-8859-1?q?Sdl2dMRlEk+LQdrRBGK0ExKJcSFga1HfIx1rNbq1lPTCB6DUCmU?= =?iso-8859-1?q?VVClGdwgQoWUrn3HAZOYNqwwJ62jTpRiRcCDKu1wluxrYiBw+6v?= =?iso-8859-1?q?LsIgDIRdn8lDPNjqkWpwz6Z6ZN0hikTQUPFXd4hy450NONg/ZAr?= =?iso-8859-1?q?mgk690InE+Ed2couCiHE5f2tOWjOr3HkEnAbvbGqfjKYQwItUyg?= =?iso-8859-1?q?qFeVlosHOLhFl93w2R60dOH0FE5MbYHkfh1ulgL1KaxoPJxD1sm?= =?iso-8859-1?q?ARkaKDVGwvLlPvT+v4GKziKPnSiubbXUyFMzM8pFFjd4sFpWi8s?= =?iso-8859-1?q?IxwLMeltT6T/3XBoRJsgH17hMQ35Eca84paEBPxbsza/N/Iq8L9?= =?iso-8859-1?q?QaXsKamvIUt0PS71Xyg/92bFxBncR6cEXkD9Dg3MoqaumSKxgmI?= =?iso-8859-1?q?xTqM7i8bhcz3QUCZT9fLwb5mJ8uXJIQR9Tez6Z95y78PDL+fqS9?= =?iso-8859-1?q?BgldRFcf4GnRbRxLs16X6Vm27Lq1UyN/UJ/sITcHvTP1xOa87p1?= =?iso-8859-1?q?Th2VzdWosfiH5PONATyn6ecbxJbV9xJAtZRlNoANKa+r8Li1qx0?= =?iso-8859-1?q?DY8v2dpXlVY2D9o6NaKVrOVpSXBSNQQZs3H06YiaYIdwZ6s1TLS?= =?iso-8859-1?q?0YqxZ7+oaWSgycsngdOVN5ArFcvTFuOGAiGUDkOXGvp0cmqo/P4?= =?iso-8859-1?q?f3g6hIsjdzRWa1EkGqmhOdpbWSpPbhufPwSklrgb6Yp3qXWzapj?= =?iso-8859-1?q?PSYBVDNA1TaQDABvPG7afVqL+41FBv50j8L+VnEf7oehxf2Wm74?= =?iso-8859-1?q?Z4hZKODeotEibg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09555FB1AD x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(366004)(39860400002)(346002)(189003)(199004)(2906002)(8936002)(186003)(81156014)(4326008)(71200400001)(71190400001)(6506007)(97736004)(99286004)(102836004)(26005)(50226002)(2351001)(6512007)(68736007)(81166006)(386003)(3846002)(14454004)(6116002)(476003)(316002)(8676002)(5660300002)(478600001)(54906003)(2616005)(25786009)(44832011)(36756003)(305945005)(446003)(105586002)(106356001)(6486002)(486006)(76176011)(7736002)(14444005)(53936002)(66066001)(52116002)(256004)(2501003)(6436002)(5640700003)(11346002)(6916009)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1663; H:VI1PR04MB4222.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 2SDIjEQn5n27gb3O42sXGRCGE+YbaRzn65wJM/GiiP93Ct9S8MLXV6EMEt9UU/qgJje+WQySQiElHfJM8iIja0siAu+n31GArqMis5TX0QYHuFBYxZ6ZUI8Be9HVHy2mHrGK5fKsfvlYNQWp7+WJu4T0QQRAAsLD4TQQnVYefMQ5h6c4X+YCLARhvBpMVko0uZOo2icE7uBLOrcxz0NobU6g+KnvIAs5gNk65ukM9EoG3Bo0hI93lAWCKSsXsA7hN9DcUebvaQzk3cLgLojwVQEdpJXt9E4C7inQIpqgb4eaph7FsPRCkHNqY8Qe1CVfyFECe1E6ZgcJeCb+XyV6zTR6luACegaVaLvLD724NN5yFz+FqlfiJOqOnHoaqrvE+usiPjq8eu12T0OLGFZmmtG6npKdT3FmJZ/nfQfEQO8= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44cc94d4-4b7e-48bb-334c-08d69826ed37 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2019 18:03:44.1767 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1663 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org MX8QM and MX8QXP LPCG Clocks are mostly the same except they may reside in different subsystems across CPUs and also vary a bit on the availability. Same as SCU clock, we want to move the clock definition into device tree which can fully decouple the dependency of Clock ID definition from device tree. And no frequent changes required in clock driver any more to handle the difference. We can use the existence of clock nodes in device tree to address the device and clock availability differences across different SoCs. Cc: Rob Herring Cc: Stephen Boyd Cc: Shawn Guo Cc: Sascha Hauer Cc: Michael Turquette Cc: devicetree@vger.kernel.org Signed-off-by: Dong Aisheng --- Documentation/devicetree/bindings/clock/imx8qxp-lpcg.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/imx8qxp-lpcg.txt b/Documentation/devicetree/bindings/clock/imx8qxp-lpcg.txt index 965cfa4..a317844 100644 --- a/Documentation/devicetree/bindings/clock/imx8qxp-lpcg.txt +++ b/Documentation/devicetree/bindings/clock/imx8qxp-lpcg.txt @@ -11,6 +11,20 @@ enabled by these control bits, it might still not be running based on the base resource. Required properties: +- compatible: Should be one of: + "fsl,imx8qxp-lpcg" + "fsl,imx8qm-lpcg" followed by "fsl,imx8qxp-lpcg". +- reg: Address and length of the register set. +- #clock-cells: Should be 1. One LPCG supports multiple clocks. +- clocks: Input parent clocks phandle array for each clock. +- bit-offset: An integer array indicating the bit offset for each clock. +- hw-autogate: Boolean array indicating whether supports HW autogate for + each clock. +- clock-output-names: Shall be the corresponding names of the outputs. + NOTE this property must be specified in the same order + as the clock bit-offset and hw-autogate property. + +Legacy binding (DEPRECATED): - compatible: Should be one of: "fsl,imx8qxp-lpcg-adma", "fsl,imx8qxp-lpcg-conn",