From patchwork Wed Mar 31 20:16:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 12176207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D91AFC433ED for ; Wed, 31 Mar 2021 20:18:46 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 647D661057 for ; Wed, 31 Mar 2021 20:18:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 647D661057 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=me.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Hi5jceDGw30YpUthS9Rtwl9aGzQL1CG3ZxyjmVNCGnE=; b=HxFxlkYiXamONNhu2JqwE0sLIP 7fDd9CvcJACw0DmANsnB69GKY0HDxGQeongsCpiRj8kjZXAw/bSE/CJ1PsPS6P7dDoUqzDyl9oAFG c5TUK4Ly2moEQH52zaVF+09/OMSn6XMX45SleBTaeMKH55IGKm8wO6gRqftJGbxWIS8MwFV0omIqh Xef+Yq59julHq4zcevKm6ugyWftNs1aaB1jptei/GBoFUAa9u0hL5PWuqd57+7xzzaSBu4Qc4ZI0U Cd4ngBLfmrX2+VxoLGLUFPP4qyNYv/2YfGQgKQqR5kmJXX45VIxUWQgvC7X0o/4+d63uZyn9Rhg83 7lrd61nw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRhGj-007RhB-04; Wed, 31 Mar 2021 20:16:49 +0000 Received: from st43p00im-ztdg10061801.me.com ([17.58.63.170]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRhGe-007Rda-Qk for linux-arm-kernel@lists.infradead.org; Wed, 31 Mar 2021 20:16:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1617221803; bh=+MVvLf7aCANyLDwQXl9EuUsXWmRo0TFhWjNfyW1qnEE=; h=From:To:Subject:Date:Message-Id; b=aBdOcToPoP8TxIHtizOAYVmPjWI0CClODiKDnyNUsxxqozyw30zf1SE3Y7FDVMEhs Qb3wx7WBrSYBqDyeBbHqWNodUJ4dtYIjbODxT/YXtGywllkVpodi1+6WfQxYXbKU88 zuQ21yxudus1nih8L0ckzEI9GYGt2E+nYY3GmcmhCf6SvTNpfaG6GRVCJ3480zjktN EuncrHSBfewN+cxowAnhUEVDUPYZbpzWgAVO25wqftC8NtessGpShXQ/kFax9MsNXf uP3LoXAAY85nX3b9MrPVsimQmodU4OvYzzCDGMo3am3MpIKn716jxF6NKXokr4qLnU 4Qn2jeOLlSVTQ== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-ztdg10061801.me.com (Postfix) with ESMTPSA id 8233E8C0876; Wed, 31 Mar 2021 20:16:42 +0000 (UTC) From: Alain Volmat To: Michael Turquette , Stephen Boyd , Rob Herring , Patrice Chotard Cc: Lee Jones , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alain Volmat Subject: [PATCH v4 0/7] clk: st: embed clock outputs within drivers Date: Wed, 31 Mar 2021 22:16:25 +0200 Message-Id: <20210331201632.24530-1-avolmat@me.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E369=2C18=2E0?= =?utf-8?q?=2E761=2C17=2E0=2E607=2E475=2E0000000_definitions=3D2021-03-31=5F?= =?utf-8?q?10=3A2021-03-30=5F02=2C2021-03-31=5F10=2C2020-04-07=5F01_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=816 bulkscore=0 mlxscore=0 clxscore=1015 adultscore=0 spamscore=0 suspectscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103310140 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210331_211645_278660_1BF63F87 X-CRM114-Status: UNSURE ( 9.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Most of ST clock drivers used by STi platform are updated in order to introduce clock outputs informations within each drivers and thus allow to avoid having to rely on clock-output-names properties within DT clock nodes. For that purpose, drivers are updated to allow handling both modes (with or without clock-output-names). Once all DT will have been updated, the legacy mode could be removed from the drivers. This will also allow, once all STi DT will be corrected, to remove the of_clk_detect_critical API from clk core code since STi clock drivers are the only drivers using this API. Alain Volmat (7): clk: st: clkgen-pll: remove unused variable of struct clkgen_pll clk: st: flexgen: embed soc clock outputs within compatible data dt-bindings: clock: st: flexgen: add new introduced compatible clk: st: clkgen-pll: embed soc clock outputs within compatible data dt-bindings: clock: st: clkgen-pll: add new introduced compatible clk: st: clkgen-fsyn: embed soc clock outputs within compatible data dt-bindings: clock: st: clkgen-fsyn: add new introduced compatible .../bindings/clock/st/st,clkgen-pll.txt | 3 + .../bindings/clock/st/st,flexgen.txt | 10 + .../bindings/clock/st/st,quadfs.txt | 3 + drivers/clk/st/clk-flexgen.c | 367 +++++++++++++++++- drivers/clk/st/clkgen-fsyn.c | 113 +++++- drivers/clk/st/clkgen-pll.c | 121 +++++- 6 files changed, 576 insertions(+), 41 deletions(-) --- v4: - add an additional CLK_IS_CRITICAL within flexgen driver v3: - removal some useless CLK_IS_CRITICAL and add some comments - only keep clk drivers/binding patches within the serie