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: 173850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3315596vqy; Tue, 5 Dec 2023 01:44:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOwMRilY/fFf9s9xIT9YZfjU+tL/U7sixnAuYySzERmicTkT6I44XRiH01JAS/nvKkhQzy X-Received: by 2002:a17:90b:4a8c:b0:27e:1ea0:c6fc with SMTP id lp12-20020a17090b4a8c00b0027e1ea0c6fcmr697738pjb.6.1701769495332; Tue, 05 Dec 2023 01:44:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701769495; cv=pass; d=google.com; s=arc-20160816; b=0pUVGCpNOj4Vz9qhvzBEq1y1rpIXbJG4avFmNvLeXhCicO5WUCwTzdIjk2uGEUp/c1 BLsgchJeOpI+EFrW/Bg8MNUv1w7KXCN7kbd+ff6lyiQbk4gbdz0TWiBgDpy7cPTaj5an MfK0mpaWA5SN2JrEiNzhcN4a18AI2jKT1ALJzmgRiyoFfwE07AbQ0voCgpm0xbu63Vgu N818sycwPHBNu+FvqdSfDN6ZmLqbX29Gn6PRiLAU3WTdnZOB6gqghU57s//BhW2P33ox RvGMjc+Wi+X52sft67Dx2hx94kHslkJvvWRIAGfinvAEGjYnPDGAvIjbX9JDawWROQQ+ t1UQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZRGWdGJrOwy0Kzglr0wJP+3yrtUaNFEVf9rbWcSCYes=; fh=hb19fXdevbnPlMYmhG5eQxCVnkJaK3CMOQT+llz7+z8=; b=kYvxdMUB4aQE91qL45rDMy/TaWaB6cm5VAxwaqQjuGH9bBKETVTK9QED9aIPjolbyU PVNXiq6PyIbZjI6gdknaAopiIe78grbhNe19mYz+6L1KbMtHyipINws9bVbNCDCr147D W2wImM6ni3RXpKx85Th2luQ4PtOzoux74SsFSF0tEYAwkmUmopcT6bk6TwKT9ZWI+i76 6v1vh3WNjdy+bsis4fPhQMYeC243S3EZ7L5qbHK5JGDkQA7EPpM63I5CL1VAafo3EGox PMG6ZqCG3/p5bS2ZY6TyTJqV4ESQnzFFlssPWzHaiwYBJSmapHLHZk57hGthMvY1ie2+ RHtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=FaRHjmbe; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y7-20020a17090aa40700b00286922756a7si4196583pjp.92.2023.12.05.01.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 01:44:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=FaRHjmbe; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2E94E8043EF0; Tue, 5 Dec 2023 01:44:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235659AbjLEJoe (ORCPT + 99 others); Tue, 5 Dec 2023 04:44:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbjLEJoK (ORCPT ); Tue, 5 Dec 2023 04:44:10 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10olkn2032.outbound.protection.outlook.com [40.92.42.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B55D4D5E; Tue, 5 Dec 2023 01:44:14 -0800 (PST) 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+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hP9rm7xM55p2ORNLMqjaNH6YTz8Gqp/bmMUnVPMNEmKWf9qMv5rUQx5s4GxLsF44jxMM5+Esy+O6/rybNsJP/cUihPKeVvinusmoUwW5QLe44JHtlKYSsX5losHrTGiXBe77jZZCR6EFNpqgh7cOWwE6BmZoI323Qx1w2cX7dEosi+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-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 05 Dec 2023 01:44:46 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784434650409223974 X-GMAIL-MSGID: 1784434650409223974 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>;