From patchwork Thu Dec 7 08:37:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 175019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4634417vqy; Thu, 7 Dec 2023 00:38:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3mM+MRUjsYYPZQ1KZiTTa6FNkJIUe8ZxT5LP7onIaaGAMdIcf1CPsDS4GOGh4f/d8XJnj X-Received: by 2002:a9d:3e10:0:b0:6d9:da47:abab with SMTP id a16-20020a9d3e10000000b006d9da47ababmr512963otd.76.1701938281536; Thu, 07 Dec 2023 00:38:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701938281; cv=pass; d=google.com; s=arc-20160816; b=DcyYv2yOHQYvO5U8JKaE+8ykdU3qeXvRdic/xoPcirQj7GtYKDC8avUVRSw/BacckH AbyWeQHYL4QYZXA6Y0t/YDQQgiF46WNN00xs71YkKmmjLWzTGpiNEUy5yPlhN+YlcAGC iPKrz8ayNAZi04FMxOUZCADF9BnA/7BzPyc6bpRKXixRVmPnzKmDKCfsSBTO1/AsAVyD ikSka10+16VxQdiddaN7yU7Yds2hAfr/KpcWOxaRJsqEpEXJK1ht43ukz3D7YQ/h7tfJ halBWGjpq17v8Au+ZkDX97F6v0fKj2CRuj/M+YECrjF83KNG+eIIl1+PKumSyQ8wJVsy iITA== 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=BTgy8H1C1fuHRUBmFVOhWrHYTv60QgZF2tb45HQv6QM=; fh=s+i0Hr/IezQL8aNU1DXL4GrAsYAP8bheKxJijUM5CWk=; b=YSyNaCORCtTCXuZlnpsfKfn+FrhL+ElA4qxD6RmrnmV1BZRIc0WHLVBgJSXp1hR9Vp e8zIYRYgdVkUGJae4VEnwdrOWuIs+7ig1ewUeF2xXXd/fKXh4uup9j/SwmEqN1sf5t6/ jfKfRItBrMOvlsTHuM6UChfTvoifqRZHK1YU/5HtIeNKbgRrmVQ5AS4JoNRwyyOeA8Iq Yao7TT8hlCME2FAaBUNuJyGakhaNWVp5DEHZqe3O3/0waVIi+sV6UVg8xS2iu9bbSeIZ 2W6axSsIypEimnWmAuPK9rzoDVaMXrBnJdzXGwn20PFjCmN7+OCUIUJV+dg2yhF+yEV7 +XDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=UUU3QwET; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 4-20020a631544000000b005ae05010bc4si785378pgv.235.2023.12.07.00.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:38:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=UUU3QwET; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id A24E6801BCC7; Thu, 7 Dec 2023 00:37:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378414AbjLGIho (ORCPT + 99 others); Thu, 7 Dec 2023 03:37:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378367AbjLGIhl (ORCPT ); Thu, 7 Dec 2023 03:37:41 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11olkn2010.outbound.protection.outlook.com [40.92.20.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73BBBD5C; Thu, 7 Dec 2023 00:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X+/trpxvupJ3fA9gFhJIgiTQesIsA5eG7msyIM+m3SCV5fX3lSA0QGpUBj/t+AKpW4h7h86rr3t445oVFj7qKhxrv8UScYWEHxreyvtqRiGUv8y+zjKT1tlAr+3GCMxGs90/ZyzCXFKGQdTCLsTJ4O93ctDXZEPhCMkUWmiG90h8/CzWaEsbE3UgzLVH6JB527/b8v6omWZ+EwvCXinTCywAU5LmvNJXNnoVSVVMMy3Wi2jlluwK8QpfxDilyld0EgUwcwS+XJSVy28h4eDmOkvfXzxp3PXCj1q5syE/nZIiuOBBqa4wJaPOSCGO/y0qDsDP3aSeQFs0p6lr/kw3XQ== 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=BTgy8H1C1fuHRUBmFVOhWrHYTv60QgZF2tb45HQv6QM=; b=MZc2wOuhCOuYUXLnO+J2N/q1FNkmjDIK55lNJB1OxnMiGTdWGafFahXDM7iZF9hIorOjc/xTpo2C7/S/46qhYnZjiQ0otPC5EOo4rwMT9gJYk24L1YO4X6yhUAIzVYfofUXuJYc50mdjgMg8LuX+Ow7korLhsj2p6E7ivOKNqAQXxMbyxoU7JWAzRSSVbpcvRa++kOTmFjXKW2mzOk9RA+C5N+7avz1RizpU5H76asAmntmZkwWElUNFGx+xbn5DEa0LiHDzEJIaDY92QMWtWoewDe3a3IKhEqDu2HHCu5t63eU5R7JVtfyMqRGvDAPc7hrVXjg7TJXZ4AZfQt9qJg== 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=BTgy8H1C1fuHRUBmFVOhWrHYTv60QgZF2tb45HQv6QM=; b=UUU3QwETgwks7B9y1QytmQHWMmETSpqEnM4/VWbzmA4nabfDWFgePua3eWBdKMaMC4jATcR3ZOJe/1LN1h6cgSGjfZGZrZYCM7KArbtkV/sfx0ZOM2ZS/rIvutm3VIZOAlGg2rfCKGFPgA0ds6oPqNYeEoewI5HySfnJrMncf/Z1npiyNuOypvv+Wwp9ZMpBY1C20RuAkw+T2HdNP/uYiM0FR+u1CvHYQSSGWfTjRc1KagLXi9oYCYVNCjn1ABGJIflTJbNjwhK9zc4ph0uXFFuxoL7P138QE2hEowCv+YGl65psYKRzx+Ea/A6JjCbdvwWJcESJtCo2Td5XaFszvQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by LV2PR20MB4582.namprd20.prod.outlook.com (2603:10b6:408:17e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.27; Thu, 7 Dec 2023 08:37:42 +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; Thu, 7 Dec 2023 08:37:42 +0000 From: Inochi Amaoto To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chao Wei , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Inochi Amaoto Cc: Jisheng Zhang , Liu Gui , Emil Renner Berthing , qiujingbao.dlmu@gmail.com, dlan@gentoo.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 3/4] riscv: dts: sophgo: add clock generator for Sophgo CV1800 series SoC Date: Thu, 7 Dec 2023 16:37:28 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [kD5v6N99tlapV7aaaqcQtmE+DlDXxfAL6W3yTtsTSjU=] X-ClientProxiedBy: TYCP286CA0175.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::14) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231207083730.874690-3-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|LV2PR20MB4582:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e31a256-0c87-4032-69fb-08dbf6ffc747 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Pfrs6ndXXRk/RsM+Cq058O1f/ffZuUpNACBemIx5g6R/u8WZ9JV8y4j1HEXMaQN+gKf8Uf/E5SK9Csyyz030cypwJUrdC9w84p6vrxhbDp1b6WgM0i7thhPv3V4Wgul/jzzcqM6X2gV2PlOgCwJ5EF4akeIedfFw+c+g4XzcwS9xXgQ1PlaRwM7KNxF0dVb+pEQK9ZLu9t425HVC2B6vi5ULbuH2eGiuRVQCceWFcn532E2IkDI8VNVCkPNH4eP3yRvb/Mu/KQu0DdxOk3LH/tKsjyNGQ83D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I6OHsx3azrHBFrhqxQNVREAhh3J3Mj2udaHc19k/Rb+nqNb+ApNym80wnWS5MxPrMVT0LoP5fqKwmq5T+mZTAgdtm+q0tWEJ5c0fgRRIySCVdaGcP7G0HNBPBYKlkg6pwodZGJPfZxzRLBokokEQzluhU8KRsDLKWY+sI33vo64gk711ojPbiEXeGOHvsHIBAvKvApDZmf5UlNLPDGCXxsvJrJa+6eYtHuvF6olptk4WPo00Aiga6VBqfDJnI3lRtXWMbDfbOEXaU6goax+Cu7Er8Bv/gjgvoub5sxPnwcYv3qjzoz0PrfxYeHKieCGEMHvh0k3UsKHf2NAfy+DCPjKAixhDwKDIL/IW/lAmQg63UqkwJq6MdvolaSVAR21Rn2WZUEg5ulrDP3DWoFEtsIe5ghMktrfIPa2Nvm/zdt09FpZ3hWSkNRZJ6FZ2plphNswwQG53oxuZgen4lPSRLVaxNhgBWjZyUu9jBGDdyZdlaTOb+acg1XHlfCB1X7bhsHBND8ZMFRWiGJ7v7ZxzCQw2cVdr3wD0Ip4Dz6VByubwdJikHJrrpH0E0TxTuyPHJCFCZzL4= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e31a256-0c87-4032-69fb-08dbf6ffc747 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2023 08:37:42.6186 (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: LV2PR20MB4582 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=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 00:37:57 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784611635445118512 X-GMAIL-MSGID: 1784611635445118512 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 | 6 ++++++ 3 files changed, 14 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..6ea1b2784db9 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -53,6 +53,12 @@ soc { dma-noncoherent; ranges; + clk: clock-controller@3002000 { + reg = <0x03002000 0x1000>; + clocks = <&osc>; + #clock-cells = <1>; + }; + gpio0: gpio@3020000 { compatible = "snps,dw-apb-gpio"; reg = <0x3020000 0x1000>;