From patchwork Tue Jul 30 07:12:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunyeal Hong X-Patchwork-Id: 13746781 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 7497FC3DA49 for ; Tue, 30 Jul 2024 07:13:46 +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=XA/+cZxDTnTL9Kfy1Fz7SwTVzK9HQrfVibLW1ss+FTg=; b=l2T01Rfwh6eSY+C2mr8ZlFg47M Qgo5aGRM3ec2mINNzRtgBX2VfMmm2f/IV8B0BuZrtLlSHZPZeeMM6gSljlBtG59PSAImkXIO1Q0pJ a/RVDAjr9joSAunvQ0MqteUNTd3bVphlQjqqe9oaVAtDTya5U4kR4Dk4y00tKR8UGU7aYN437NwNP x0YEyfV0Dwe0MJ07bGNqg79tEo7DZlg0H5Jo1BDFdCPFoUSDyE9eww2ebvjIz1hzScCjlNJ5T5skB YzV1TYqQlWrTPkoMp3eMpwpqYslEgLYtRS8rR7h4633vUbzUhVDJNkh58eOFfAqvXC24PFj83TAqZ W4sDQEnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYh35-0000000Dx0c-1sg1; Tue, 30 Jul 2024 07:13:31 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYh2B-0000000Dwfp-2oGn for linux-arm-kernel@lists.infradead.org; Tue, 30 Jul 2024 07:12:38 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240730071228epoutp016dea68f54601f282e8c36bc1d760c501~m7CR7i0fA2293622936epoutp01O for ; Tue, 30 Jul 2024 07:12:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240730071228epoutp016dea68f54601f282e8c36bc1d760c501~m7CR7i0fA2293622936epoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1722323548; bh=XA/+cZxDTnTL9Kfy1Fz7SwTVzK9HQrfVibLW1ss+FTg=; h=From:To:Cc:Subject:Date:References:From; b=Wmh5net4VUnYpMBEbKlN2wVjnyXFByzVKWdO0+YfhM8gFGdmVYmA38K9a0/zPMZFw O+yMMnm+OJPzfjpEnWE2fSoXQABX1DCXUhdDjuJdrjRm89/D0A2edzS2HzbMKJc+ri hHtOEmLaTFx6TNDpDZMcaoD+jrxGr9UvE8UZdDEE= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20240730071228epcas2p4cb86a576b1327716657e78b8e6b054e9~m7CRnOAdd2379823798epcas2p4a; Tue, 30 Jul 2024 07:12:28 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.98]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4WY5yh1Xbbz4x9Pw; Tue, 30 Jul 2024 07:12:28 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 89.8A.10066.C5298A66; Tue, 30 Jul 2024 16:12:28 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20240730071227epcas2p3db10248818bb509aa069205bb9bb851b~m7CQyXY4Y0692706927epcas2p39; Tue, 30 Jul 2024 07:12:27 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240730071227epsmtrp2887d0b3172bcd5cae2be9f890cb05642~m7CQwqRzC1318313183epsmtrp2R; Tue, 30 Jul 2024 07:12:27 +0000 (GMT) X-AuditID: b6c32a46-24fff70000002752-1b-66a8925c10ff Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id A2.EB.19367.B5298A66; Tue, 30 Jul 2024 16:12:27 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.60]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240730071227epsmtip22b983de154d7e31105e593f9bf69d712~m7CQiGSgC0426304263epsmtip2W; Tue, 30 Jul 2024 07:12:27 +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 v5 0/4] initial clock support for exynosauto v920 SoC Date: Tue, 30 Jul 2024 16:12:17 +0900 Message-ID: <20240730071221.2590284-1-sunyeal.hong@samsung.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJsWRmVeSWpSXmKPExsWy7bCmqW7MpBVpBk+fsFg8mLeNzWLN3nNM Fte/PGe1mH/kHKvF+fMb2C02Pb7GavGx5x6rxeVd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sw0rPvDxrvjGUPb+7edbSizF GYmGWsxFxYkANJYNUN8CAAA= X-CMS-MailID: 20240730071227epcas2p3db10248818bb509aa069205bb9bb851b X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240730071227epcas2p3db10248818bb509aa069205bb9bb851b References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_001236_245619_1DE213BE X-CRM114-Status: GOOD ( 20.99 ) 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 v5: - Change CMU_TOP odd numbering - Move the descriptions and names common clocks properties 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