From patchwork Mon Jul 22 22:33:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunyeal Hong X-Patchwork-Id: 13739191 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55277C3DA59 for ; Mon, 22 Jul 2024 22:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:References:Content-Type: Content-Transfer-Encoding:MIME-Version: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:List-Owner; bh=mNr0Er/o07CtydA31xKfi8pSq/IiHVsC8YOsNcCDQwU=; b=mDoRucsvF8NGoyglK8I7ZW5DSf IrvD37+W51wRqxVGsERdMgtYY06EbksBP9YLwcySOQdZYU2RyNVHzcS7F4KnEa5nA+iIe6ih6bPHe 27sbzgm4DW+Qmw8oViLtQHgJ+5Pm5Gi/XDBg6sT8uDIU9HrdHyXdKAri2Da3Mig8TVHeU09DDfDn0 WvjJowkIfqMW4LvjW7dPBuUqbgpgnW8loYaGWsskCTSTl3hJz5Ln60FcyGQ0nI/MlwU2hyOOOevvH cSZY2HjYAZSCsnuxQOaZSKmkcgK5epP+BZjNmadaSGEoEltym+RTXBVORNPXDFfaAc10JoFWFhatt Q7dw90gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sW1cM-0000000Am90-3ChK; Mon, 22 Jul 2024 22:34:54 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sW1bJ-0000000AlmP-2xMh for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2024 22:33:51 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240722223342epoutp041c164a86e998410d12e2ca4650df80a7~kqcVIESGJ1134911349epoutp04j for ; Mon, 22 Jul 2024 22:33:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240722223342epoutp041c164a86e998410d12e2ca4650df80a7~kqcVIESGJ1134911349epoutp04j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1721687622; bh=mNr0Er/o07CtydA31xKfi8pSq/IiHVsC8YOsNcCDQwU=; h=From:To:Cc:Subject:Date:References:From; b=ieiWLlh5q8H+mHwYwwaLk2o14ofr/Nn3BOARVzL7Nrc8Z++DU9DlWu/tG+qbd1pi2 gU824Dpl4zOCSdEm5cD8ZoSA1+DqgkBKbZj27ass6lT+xLJ4v/Z06wedAc8jWNYM7n aDBBsOoGzSB8cWjC34POsVEEEurA4KnwJ/O1AaLE= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20240722223341epcas2p3b36ea97b6158cf02d26bf6373734cce5~kqcUn3-mx0258902589epcas2p3H; Mon, 22 Jul 2024 22:33:41 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.100]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4WSZnK32Zpz4x9Pv; Mon, 22 Jul 2024 22:33:41 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 3B.82.10016.54EDE966; Tue, 23 Jul 2024 07:33:41 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20240722223340epcas2p380657369f0b57c9e21f05f250066a711~kqcToo2TC0259002590epcas2p3C; Mon, 22 Jul 2024 22:33:40 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240722223340epsmtrp26a0a7097cca6c48fe3fe1c1edbaa4895~kqcTn5MiI3065730657epsmtrp2K; Mon, 22 Jul 2024 22:33:40 +0000 (GMT) X-AuditID: b6c32a48-505b770000002720-5f-669ede45cabf Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id 73.78.19367.44EDE966; Tue, 23 Jul 2024 07:33:40 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.60]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240722223340epsmtip13f300feb4219bc49bf94e49747ebb3d2~kqcTcL-e72557425574epsmtip1W; Mon, 22 Jul 2024 22:33:40 +0000 (GMT) From: Sunyeal Hong To: Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd , Rob Herring , Conor Dooley Cc: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sunyeal Hong Subject: [PATCH v4 0/4] initial clock support for exynosauto v920 SoC Date: Tue, 23 Jul 2024 07:33:29 +0900 Message-ID: <20240722223333.1137947-1-sunyeal.hong@samsung.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJsWRmVeSWpSXmKPExsWy7bCmma7rvXlpBgd2CVs8mLeNzWLN3nNM Fte/PGe1mH/kHKvF+fMb2C02Pb7GavGx5x6rxeVdc9gsZpzfx2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2/O6oaH K5VYijMSDbWYi4oTAYVlCi3gAgAA X-CMS-MailID: 20240722223340epcas2p380657369f0b57c9e21f05f250066a711 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240722223340epcas2p380657369f0b57c9e21f05f250066a711 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240722_153350_095038_DB185991 X-CRM114-Status: GOOD ( 18.89 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset adds initial clock driver support for Exynos Auto v920 SoC. This driver uses HW Auto Clock gating. So all gate clocks did not register. Below CMU blocks are supported in this patchset and remains will be implemented later. - CMU_TOP - CMU_PERIC0 Changes in v4: - Change PLL_531x fdiv type and mask bit - Change PLL_531x mdiv type Changes in v3: - Change SoC name from Exynos Auto to ExynosAuto - Change the makefile order to the bottom of exynosautov9 - Add PLL_531x formula for integer PLL Changes in v2: - Fix typo from v209 to v920 - Change USI clock to appropriate - Merge headers into binding patches - Change clock-name to the recommended name Sunyeal Hong (4): dt-bindings: clock: add ExynosAuto v920 SoC CMU bindings arm64: dts: exynos: add initial CMU clock nodes in ExynosAuto v920 clk: samsung: clk-pll: Add support for pll_531x clk: samsung: add top clock support for ExynosAuto v920 SoC .../clock/samsung,exynosautov920-clock.yaml | 115 ++ .../arm64/boot/dts/exynos/exynosautov920.dtsi | 40 +- drivers/clk/samsung/Makefile | 1 + drivers/clk/samsung/clk-exynosautov920.c | 1173 +++++++++++++++++ drivers/clk/samsung/clk-pll.c | 44 + drivers/clk/samsung/clk-pll.h | 1 + .../clock/samsung,exynosautov920.h | 191 +++ 7 files changed, 1552 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/samsung,exynosautov920-clock.yaml create mode 100644 drivers/clk/samsung/clk-exynosautov920.c create mode 100644 include/dt-bindings/clock/samsung,exynosautov920.h