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: 13482951 X-Patchwork-Delegate: mail@conchuod.ie 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 78792C46CA0 for ; Thu, 7 Dec 2023 08:38:05 +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=31bka5Y4/+E6s/3q607cxllkruFglnpc3tTaCcxufT8=; b=S9edcexhVl7y4O jyVYP7k77em91YL5n0bI17RiXaR37d/C7Kx+ULfx4s7SQwk4/Xx5nihI0hi9nXG+u/z6PoK91MF1P I2gjdhQKuJaDEMUr3VwxnrFUZEFml+/VlFjZn+u/bD2lBVgOSVOFYyJxkIpEsW83NgcqwczZ8IUFh qZUXqEF7BSBpondCcjYQNyj/snb71oIO0llESAbtnqmdn+rFcOVvFQYOTKAMXlrhGz2nl0mawOs/f ehEt/X2D9p/I4G7A4JvDpZj5SpxXyihO7GU95jOegYoTNJIkM++1cir8VnjLBjTgK/VvQdEhjRr0K kFhv64fq77p6Vh/ckXJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rB9tP-00CFBq-0g; Thu, 07 Dec 2023 08:37:59 +0000 Received: from mail-dm6nam10olkn20826.outbound.protection.outlook.com ([2a01:111:f400:7e88::826] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rB9tM-00CF4g-0H for linux-riscv@lists.infradead.org; Thu, 07 Dec 2023 08:37:57 +0000 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/tKsjyNGQ83DqTCrnmf7NQA8yQV118Y/JidpU2d08cSCS3K7wKToQOGBxDAWIPqzJEbHjsaCCABGnbZ21pPZYVMknkReo+uoykYm/DNJbKOB1PoUm4VoO92bB0IhLDDhMkWauJUcf+GEfZW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g6pwodZGJPfZxzRLBokokEQzluhU8KRsDLKWY+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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231207_003756_127742_097D262D X-CRM114-Status: UNSURE ( 7.61 ) 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 | 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>;