From patchwork Tue Feb 13 08:22:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13554695 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 5CD11C48260 for ; Tue, 13 Feb 2024 08:24:03 +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=LAbLsqhGIz3D49goeYkJVd4udmpab82sJOvxmDaSqc0=; b=s3Es62jtasa542 SMACxZkk+JvaRP6yHmN4eSWGVpXiKEveSdimSu+OmumrqCmFI0G93PpIGrT6/b9uPeCluheo6gkY0 oj73FuBk7JDU0ZYcLJj1CY/8/AOTDzbe/hlo8K8sQzQQDG9Vd7mojmQfKl2jl/wOrbOX1RBE1IS66 YBUyJRIxVKPBmyt1pnr1Q737v2hVpNMoHtCdyq1+6OH76hDNCvPGEOuvrQl9qYgE15SHToJ1HDjxf UX4pDgdASlV9OOjT85OVfMR22Te0tFopMeQ7LYI8kNMVg0X5FKHavmlgqo/AZlwBk2/rSZs3xNNch hhMY6B7zGgvsDDvd4+0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZo57-00000008P8o-2Bcx; Tue, 13 Feb 2024 08:23:57 +0000 Received: from mail-mw2nam10olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2c12::800] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZo4o-00000008OYq-1REB for linux-riscv@lists.infradead.org; Tue, 13 Feb 2024 08:23:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OcKd1qhozzi9GPYnZGmaST46OtAAQhpn4FwHCzlgQX/rMr2r2/IUEzmOYxThAtC3idLV9KazApr3Q3dhgR0S5zw4iPGee3VUyMU2rW7V4oxV0iMk2CUed1KVVbNir9hkJw/KVNu6s5efxVTaQxLjHebj43v7YgHYBBsnzvCVlmC8feBnYuciIjfW/JFR+/feCgSCE3B78ym3JPSXPuEWrzrwyT9huMpwY9fRtfF+fsbOymOYOmlKYMAy4REEo30rzcwoDQ37OsbT5neAdV76S33Wmil5I05IjdU+3Bn+2ONTGZwIseSynyoxNFgbJpRp/cCp1/7GKMaBcdtO24x37g== 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=weCkVjGKX55Z8IJIrlCWo17og2J2tJDerIg+HBoNhdQ=; b=PkRNPZ41G6bxngMyS8fiMEmjOzjMStLNSpHhoIUPHd2ZwvdngksLr6k0csedSOVJ8NCFugUib73rbOYH0AugnIVBtYGYd3wL5LLEXPY9BNnwQLbkduGE5v7EjFM/En/UoFRXLkhEZ+2N2Sc4qhM7S3wSi9qyXTtRq1AL3xuSYP4QwDnO5Fmm8ApJulccZVnCp/2UYGMfl6jqfhAvMjBo28UoeTWV3FT7loZxG96XK3QbpbEDgfWukQ/TtdOgzuX0c/D1ObSAHTMkV3smxgKJP8ggYf+DiIy1EUx8JjIXdOxyFyWEBFfBGXSml1enPk1YG8oD7Unk9hClbfSgFBNYfQ== 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=weCkVjGKX55Z8IJIrlCWo17og2J2tJDerIg+HBoNhdQ=; b=U4smRfWxv+IyXpzwsvdzOvJGGoJhsiKG1IauOdeT7j5v97RecKVZ1xK0bUPOl5U5TPgJ5aGgZlYwZrt6glulysOYDeK6D2wUV1FbYjUn4gxA2dMSovDxsQ7VGcsz4lv/LRrf2BmU+b4NSNOicV7JfyOnxj8c2028FBZVbbcePFTc5WITipJKTmhIQ5ny8mX6wdoAZ/92AQqq0EuD0pj0xycinTHsvl/TH4x1os2mWlyKSsEyIRbWPFhnSaBZpNkgv058lFDgo4TXSScUZw8WLq1/dGZrTFyzPeZYLo75ta5oq1x82/+8kdBH/sCjdBKRtv6RbdgfVacr/oqd9M1peQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DS7PR20MB3776.namprd20.prod.outlook.com (2603:10b6:5:3ab::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25; Tue, 13 Feb 2024 08:23:18 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::406a:664b:b8bc:1e6b]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::406a:664b:b8bc:1e6b%2]) with mapi id 15.20.7270.036; Tue, 13 Feb 2024 08:23:18 +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 , Jingbao Qiu , dlan@gentoo.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v8 8/8] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Tue, 13 Feb 2024 16:22:40 +0800 Message-ID: X-Mailer: git-send-email 2.43.1 In-Reply-To: References: X-TMN: [nmoKBqumVqVU2/6W4FApKSQkv1jFhnSoAjUPmZ8UM0sKP70bdlaasjvMr8sY2W0F] X-ClientProxiedBy: TYBP286CA0033.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:10a::21) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240213082243.591875-8-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DS7PR20MB3776:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e537e09-e3b9-4eb5-3b9e-08dc2c6d082f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qUEjElS5LYyFV+BZccYyyakXAVtDE3OT+UQQ5otvDpaD+ccWFVuppNL3w/RxqDl78n/UytS9ZdLwk9ejpKc6hrpzRY41otTT9RUI0PxClvvUlOm4MiMhipVSDHVdrh8jM/jF4OaYGFi6S2FXqvK74Jj/22IR9+lOUXNkjJQWvngPH2ePFpS1iEw5N6Q8FlLBhCoJyaxUJpCYQuRdsp93MVl9hzyf5wgjdZ0/pPi9cru+M2dTjki6VmteOJK/f3dQCxy58SlztU94rTN4PHitPW6XHOKuibCHcDb0jPlvrNUo26qwK0AB3NZ+ccb0+2bDTrJOFwU+PTmZLxoP7IlnjbQvvYcs3C1K40BCb5WQFtopZTQb6ASJFGBs6bg39cydrNIvrAQua5YlDY605RUgzxWKIfc0EwB+wGtArhVJ88eS+r+93CDp1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aTibVTcphf83ezh64m6IDfPPAV6Sc7ueX48xF1+rSnaWD5psnWOgruzpLJD1tYYtA4z1SQT5dmN+qtxaiMm/w3MUk9Me4WMuKPZLazCuK1y8uH3lWI5pDrZRagPt0pZS6zO25Lh61OMGlf5pMYpVRtEY3/keirsmFXKfEvlFXbCVgTa8vH7iC7+pSwtLNUiXoQgLcIpWx5JjTWxm3KOiP7Qhu4Z4hvj7wSsjGov1B+hYxI2MQoeCbL43XTqxtUYI3puhZFDlqXB3PQbweSWnjqJU3lHeZuV+iA6+oXOkoSUebsRxN3O4Gr8hPvr+wUA5Gfvj6FfWjuYAdfpbi/1skcg3q2/A1JakG15G5kNjQXtUg+gORuaWXG/j0Fql50xAYYBrp5WE0NZ6no/NVO7U/1OBL1riDzhgBTof72hhyH95BVDR5+MyM5OSbTkqKeOIbfgshUsoCHrivGm3XAmmr9ZlBX8W5eu98/2b/q5H7uh6Q2VozGHb0rQGE= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e537e09-e3b9-4eb5-3b9e-08dc2c6d082f X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 08:23:18.1608 (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: DS7PR20MB3776 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_002338_516737_656D946D X-CRM114-Status: UNSURE ( 8.22 ) 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 missing clocks of uart node for CV1800B and CV1812H. Reviewed-by: Chen Wang Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- 2.43.1 diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index 6ea1b2784db9..7c88cbe8e91d 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { #address-cells = <1>; @@ -135,7 +136,8 @@ uart0: serial@4140000 { compatible = "snps,dw-apb-uart"; reg = <0x04140000 0x100>; interrupts = <44 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART0>, <&clk CLK_APB_UART0>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -145,7 +147,8 @@ uart1: serial@4150000 { compatible = "snps,dw-apb-uart"; reg = <0x04150000 0x100>; interrupts = <45 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART1>, <&clk CLK_APB_UART1>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -155,7 +158,8 @@ uart2: serial@4160000 { compatible = "snps,dw-apb-uart"; reg = <0x04160000 0x100>; interrupts = <46 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART2>, <&clk CLK_APB_UART2>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -165,7 +169,8 @@ uart3: serial@4170000 { compatible = "snps,dw-apb-uart"; reg = <0x04170000 0x100>; interrupts = <47 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART3>, <&clk CLK_APB_UART3>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -175,7 +180,8 @@ uart4: serial@41c0000 { compatible = "snps,dw-apb-uart"; reg = <0x041c0000 0x100>; interrupts = <48 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clocks = <&clk CLK_UART4>, <&clk CLK_APB_UART4>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled";