From patchwork Tue Dec 5 11:55:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13480118 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 C2BE8C10F05 for ; Tue, 5 Dec 2023 11:56:21 +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=CkxaTei12kjmBF XXbdb2uHWDykkMT7V3Ch2p6Oae0PlbX65pb8/1YeFBwkwpXM4UB6Q3e5MLbeSHoUD6/nRXMEMmj+1 bYhPHg/HnX4sj5W5gzNs+mz01eLyxD9iPqo8+3iO/p3bNWjc7fyW+U3Qqki5prR5EHpz+Vjuc1EIp y3yyxVGF5rOgdf6oD4j6PexfW1B2dm3TSIwrTIoBJRT3Kf66xP4aWnNV+3fMPnkOO/W5Hs3VbHPt2 vAkbgRqmc2AxosDK3dc8enwpSMHYHxcXdn9WiDpWbF7+ky2EAHch04Riti5kmezem4rovCyY0uTrO rFKZC0u+2cilCJVvG2BA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAU2B-007KJ0-2z; Tue, 05 Dec 2023 11:56:15 +0000 Received: from mail-mw2nam04olkn2080d.outbound.protection.outlook.com ([2a01:111:f400:7e8c::80d] helo=NAM04-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAU28-007KGz-2v for linux-riscv@lists.infradead.org; Tue, 05 Dec 2023 11:56:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RBfRJ2M+YchjIcIxJefLCQsgeJ4sG/Le7dB6nbzzU1VL5TfRZtLNwNFt4+83n4RVLyM6jiTWL+BDVUwFma3xZsA7+/f+0W/4MteJ3lZbD5Ld3h5rNtscVocF+SqnKgg2eEl/ErugAEOvlvPE7MyZqHC/MAIjXMUWw4hUH2EM/WOfAFs21v2EcGdjLfoMsA47RkzhlM2B/lQY7dHuad1V005QdEdQPUpN2Hz+KaAQRCDendJrTiDtZrWU1rLMhEFKtHiCUEkcp2rkxLsnuXRlxG7uwFF24EeOIaZmVEupNfpNIaFXVGoGv3bBwz1jQDmAa4iBWCK+fQG4hO46+CXsuA== 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=YCg0gFr0tggistvfjKkh1u4H/xdvShmTxLqSOpZ4Qkb7FLfcll2v8Gg/D4F9toOIOhdCZXLciMeoQHFMkAo9Vh1uqZCZER0OG0sRXUxPrKwtcTmIbNxUJ3/LF4EBxt97IBXv+7UiPkRn40EvHBC9YopNTGalYShfxyrHkx2i119bCoAAFbuzFJej3Y2dwyldH/zvYruYPjANpatKbJoMhuIXP0Wjs8dydHAOBAkWnZR0rmBRBeH2hlGVouZBZGEs3tR7hVo2tS3GgK36Q1z5WP9HdFvmqG98SecZUYMdADF+RVWJE5ZiQ0CD2KeECalkliYcZirBzf6/3cz6OrK2zw== 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=W+jE4TrbFM50f6wwsnHu6nwqlbBHg35PCXlFgQcHltBsMEINMXKuZDceZuTOgXtGqUzIFks9yu4dMtGnYOJw5qpHaKZ85E736/LmS+wxKpzz8ebPqurp5qHizhT/YONUda3qPXxcVcOwrZlOGekhkQffWzwe5/3/TZLSMV0ijn+SaLLXcA49Hpx4YZ6gpMD/xoJatHoxu38owcY0viNRqtDTEfq0duebozhhFe7xd6w5xCo9d6OCiOEGZ0BM1kR13LwUQMBLIGjTKgG/smaBeTWolbUE60TLpQ1dG1aSmvhYnIwj8oRw3zAv/eBOMhhEyASbk2riHjntkcZY7PuZ1A== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by LV8PR20MB7005.namprd20.prod.outlook.com (2603:10b6:408:1e4::13) 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 11:56:02 +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 11:56:02 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , qiujingbao.dlmu@gmail.com, dlan@gentoo.org, Inochi Amaoto , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] riscv: dts: sophgo: add clock generator for Sophgo CV1800 series SoC Date: Tue, 5 Dec 2023 19:55:52 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [1LzopHneD1s0ElVdW09OaHdpOv9W24NvDHGIa67DkWw=] X-ClientProxiedBy: SJ0PR03CA0017.namprd03.prod.outlook.com (2603:10b6:a03:33a::22) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231205115555.1042712-3-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|LV8PR20MB7005:EE_ X-MS-Office365-Filtering-Correlation-Id: 471b8ee1-eeb9-4b9a-e525-08dbf5892785 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vLDl0dveX5cESmc4JMhUES46obPpmtIYFaOmEA8CbF1VJURg6TftT5asrcI4Wsdc9hPqWRr8ctI0pMYHNDIKfwuzw8ERe04qYKeUQsEdr3cnllYKUTl496IU3X1U+t16YVQviXr3N73VB0pHvpR/L2sVFnBvNrDWh2UC/TitWcePR30aZAv3DWlc3ikRUNlJ845YIg89j4f07JACH7MmBdB9isyA4z5vSGDyNavRJCeQa0vd/bUrXj8ZHhumejOByKom9KNdGHdTiJ/Y1tcTNL7Mi4tQw9OHKQwwj8PX2YMsno2mN7UWFiLaWZwpgIlYrxMHF97PIECdalTmWA0/srxS+eUk8hQUV9FZWpL5NnOFqqKSF0T7ojKl7ZkLmAQPRaaNcrWW+l/gbdYsIUMCZT5sO6/Pw0TPXozD25S3wIC77B/WQKbBGT+wy/2EBFvJRN+mJhR3RMC+o6Xp6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HpyIxlyU4Y4eO9wBspl3A5mhATUHNIFeCWnz0ybECboBW9MEASkD9y2Gfwgv6rdyKpY0PLNnlkYfyAOJL/QXYh13r0XWsb15ZZE+xEBZI6OtPWhROCwLKqMLYzUqhrcjLfr94mATht6DXWxqUuEwKchivXk6L7fGKcX0hrGEdedkG7jSXqmIJGmpn7WvItrmTghCfoU/Z2R0XqB2BEoWzdNqi5LdqEeZtuJdS5IUCgnDztsZXTJ7dgUAYSmxvDS7X9tFxrzKq3+rbQOKdjNVcUAwNhF6Oy2fZF5IdfE8azBaXmMQWxzFsJ/pH9KjW+DL8cJKKjOKq26kXZWDCHkcf6qoPTpvYRqenP71tzJsmW6q6HlsOY3qVw5a7n9BNwsUBi8TJviJhgfcpNLuzbYT/4YJ90Fk+15ZzYI= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 471b8ee1-eeb9-4b9a-e525-08dbf5892785 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2023 11:56:02.7889 (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: LV8PR20MB7005 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_035612_948671_5A0FEB3B X-CRM114-Status: UNSURE ( 6.59 ) 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>;