From patchwork Tue Dec 5 09:43:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13479710 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 54A7DC4167B for ; Tue, 5 Dec 2023 09:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=nBCtpBrUDjJWxzvkNuwjuRRnNDa6qR+gIrqGc3BaP1o=; b=gKWz7iFafJ8KuW FjCx4ZQeLctZsUOG00LlIptEfi0SNpZEmCKZ8PAW5M3TOJuEuugSbhowrLgGmAXGENB4NHJklhB1o 5O+NHJjgj9Bj1A4qB9NDsHUPBdY8uAzbwX+bEESM8s6W6I9/CQdNL3hAOkoBIYA0CkTKDG7yqsdCM kvJBUvrZs8WG6dM9i1Z/xbJ51yMLaEbFlmrj1gvVJKTbXVXuCTv+nb2X2m3OKbnWjeF6nAWCovkL4 QUwev8Jqn6D7hcKZGtToCBjBzdN7A4VMrOOLNu0JTakr8ieXQsvplkYRmQVADrg/lfoDE+H66Lrue Xo0pc/ZnYjHdFuN98kaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rARyS-006rgc-0q; Tue, 05 Dec 2023 09:44:16 +0000 Received: from mail-bn8nam12olkn2082a.outbound.protection.outlook.com ([2a01:111:f400:fe5b::82a] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rARyP-006rdG-2n for linux-riscv@lists.infradead.org; Tue, 05 Dec 2023 09:44:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UAU+erkpiBQ5QfQJRSvTrnyP1A5Ky2B8BgnmumtqLU+RpOJo/Om1Q+LRr2lqnqjAUIu5mJRuQO0AeWCwe/A3eZtyfnXDJd47DDHJv1tx7rTBfXGtZVEli21qKDBe/GFBRHLqda9qldVphfdX7m55+wsQy8vmQfEgvLGQukrlh4fQ8zNPlHVlJSPWv+DbMEp+7EotzURIemSkE96567hnn1+rbgaJuJ90BadwHQSg/QzrFP6Vp4REavhtUbx3p5uA3gsYrlWYasZN8wU41dAqYXE4b01yk+bCz31UtS5k2defw8TAm7BxAAlWwAbKdckZHlOzuUMlGI4GQVl2c87qVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZRGWdGJrOwy0Kzglr0wJP+3yrtUaNFEVf9rbWcSCYes=; b=lqKSEQqCgLn/cEBmFDYfx8je0hon61l2ZwEOkkpTWHRRYHsyDG/XxlUti6wntlS67GcHZgiaDGcLCKFaGMMuP1LgZ/WRT+aDAInN1+yvI//+vvqNaAH5w5pCzb1gFf5GDDO7FuvzpIyBqfPWYp+WnXX16tFOjYaMwipHtqIFvyzWjYhCoY9d3zVJiLDGLsinphE2XASkl0d5sjItBOWvcuzMGcLWewreolBwdNBxxWFFcST6QIX2I7OsXEAN4JAlgFMAps8fc4npluKgKnZQuXvuA4g9niuA/nWDOAwucr7xBKcT7ohbHc8SLNnWhTv0n2RCg6UW8h1QNW9LIeCVuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZRGWdGJrOwy0Kzglr0wJP+3yrtUaNFEVf9rbWcSCYes=; b=FaRHjmbeahPbK/XxeyI/OI9tksiAdeNSOBXRU1vCVkm0U9g+faEYRwVkew+4t5SHlyHzDHFhOzZxMobou4uvYPtd5T5CnzhGTVWZDqOgyR7thLJrBWtb/Gxt4h9CodzK+bhXxztnSMpCRo/OohWBpGL7R4GOBEp676ijGahwPbbyX6n9w5P3C4v4KAe+/7FVKULYE2ViWyChDwdMmEg6jJV1dCxgAGpLrxLMVMeFIG9061mt1qaNxhCrkf3tA+wAKlk/UUHfjzFX2eAe+Bvk9ncXU6viyYKFBgWYGaWewpuC9N8xbvxC7NnELg0oA4ISNkXXiIDGWvRgrA8/0oxPmw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB5247.namprd20.prod.outlook.com (2603:10b6:806:25e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Tue, 5 Dec 2023 09:44:03 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::55b:c350:980:ad8]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::55b:c350:980:ad8%6]) with mapi id 15.20.7046.024; Tue, 5 Dec 2023 09:44:03 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , qiujingbao.dlmu@gmail.com, dlan@gentoo.org, Inochi Amaoto , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] riscv: dts: sophgo: add clock generator for Sophgo CV1800 series SoC Date: Tue, 5 Dec 2023 17:43:39 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [jGZx5RFcas5Oa2QNoN90a9y5h+YDb/Gx8dOA/12mKk8=] X-ClientProxiedBy: BY3PR05CA0049.namprd05.prod.outlook.com (2603:10b6:a03:39b::24) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231205094341.943713-3-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB5247:EE_ X-MS-Office365-Filtering-Correlation-Id: 57e84466-1c35-4437-03f5-08dbf576b6c9 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bjnGycwRqU2OAp6bzlZz6KjQ73OMib9PjkmNOULmGIxuzR0eZEy9n9NeQpf4P47KK7eZAFmpt9om4B8EOuVe1EVH8eBimkKOiFOSWLSGbn+5bJz4EjsY5QZrf35bZw5AF0568J4dS2o6TD2E+OC9TqCjjyzAlrxKfv7S3NRNuuZebkR/v8kAcAM/txLIng2Jpf2NcsycBFb9VNeA0PgiAp/8538koPSDjs5VFNCSg1HDwnHZYmT+Pg5eBtvqF4wp9J2fETm56Afm2AwMW6wwtvbz+WQUrOUznb+tI7EBGGGQ+p0gPlgbhhaV1MQGLYWJNDaWjyXb16f7H8LZ+k+bM74JT1Sm714ME+NSdo2onxURibM1XgV7c4R8CrDj2y8b6+lzLCkZxMAMDswqH5UL1tVoVLmo64n9ln7kXCEw5m9j/faOMCyrL/iNHAUGOdbv3dztGpZX7RN91hgNlBWiD9VNaGsbs4xYdT27MflLr4MJXq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ZoI323Qx1w2cX7dEosi+1OmkEvd8xxzQeb4MMx5CX844PrpWOxqFHaAztm/S7wDrz7HPt2bYzhRMSbXlyCHk3GETtfnIB1u5++uVicSwm8A4fPhFViZAyWFT6jES3oZX/KCCl4uzwCvvHVSdZXplWSArCg3A5194dLnNx7AKHYfuvmnEQh9U0mRZFwCGkcuEZk9ccua8JWH5dv4LFuFQn9u0UzHOulKyFDIK0VYMjNchPlGqcIO7zOPNFrgyBvgF6bUMoyRP22Rf6y/+6qN0pA2fE/+lu1A51DRm3Ij6M1WKCtgkdAdHohEWAyt7AbqNUaWOp5BG1k3X7FcGsoYhs7Dk2245ZUL3YbI68agPVjlRJTG9LxhQYEs3xPOQ7YzgZJlYVAQdtjCwX0CO5v8= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57e84466-1c35-4437-03f5-08dbf576b6c9 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2023 09:44:02.9380 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR20MB5247 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_014413_909217_730F2A92 X-CRM114-Status: UNSURE ( 6.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add clock generator node for CV1800B and CV1812H. Signed-off-by: Inochi Amaoto Link: https://github.com/milkv-duo/duo-files/blob/main/hardware/CV1800B/CV1800B-CV1801B-Preliminary-Datasheet-full-en.pdf --- arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 4 ++++ arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 4 ++++ arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 7 +++++++ 3 files changed, 15 insertions(+) -- 2.43.0 diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi index 165e9e320a8c..baf641829e72 100644 --- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi @@ -16,3 +16,7 @@ &plic { &clint { compatible = "sophgo,cv1800b-clint", "thead,c900-clint"; }; + +&clk { + compatible = "sophgo,cv1800-clk"; +}; diff --git a/arch/riscv/boot/dts/sophgo/cv1812h.dtsi b/arch/riscv/boot/dts/sophgo/cv1812h.dtsi index 9a375935b00c..83243c918204 100644 --- a/arch/riscv/boot/dts/sophgo/cv1812h.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv1812h.dtsi @@ -21,3 +21,7 @@ &plic { &clint { compatible = "sophgo,cv1812h-clint", "thead,c900-clint"; }; + +&clk { + compatible = "sophgo,cv1810-clk"; +}; diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index 2d6f4a4b1e58..c5642dd7cbbd 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -53,6 +53,13 @@ soc { dma-noncoherent; ranges; + clk: clock-controller@3002000 { + reg = <0x03002000 0x1000>; + clocks = <&osc>; + clock-names = "osc"; + #clock-cells = <1>; + }; + gpio0: gpio@3020000 { compatible = "snps,dw-apb-gpio"; reg = <0x3020000 0x1000>;