From patchwork Tue Dec 5 09:43:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13479711 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 8DC43C10DCE for ; Tue, 5 Dec 2023 09:44:22 +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=9fInvTbnHDZDBtt9iONDImFD0eKdSymANN2lLP7vDXI=; b=U7D+G34lRYoHJJ ouyjNjPMwd0elk1wyXUaiFDGOTCMe8f7m7tlkmvTamdLDWkRRIv5sEUbIy+pvUFUec0cxu3UIJoMQ fh6QbmBNgLMWSWJ3HcWwbuO2dQqv8TA9Pv1W0iNPsefAhgoM7i+TYpN55OzEj1O4O+5WGdoXIEUFM /h4PIFXv1Qko+Y63YX9OC2YKnaeKSfUGrDIBFgXIAgCfy4llv7an6IrbdyZ19GqjFZcspVy1+7ceZ eXXpM7MHwzGvF7SycFsDOfsWOngtK0yOHInLuU+KdDSBtaO2wnseUjv+EDGyxi+vIDbHq2ODkxW5f Pt3NYQf59bpNxw2v5rQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rARyU-006rhd-0f; Tue, 05 Dec 2023 09:44:18 +0000 Received: from mail-bn8nam12olkn2082a.outbound.protection.outlook.com ([2a01:111:f400:fe5b::82a] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rARyR-006rdG-1f for linux-riscv@lists.infradead.org; Tue, 05 Dec 2023 09:44:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OG/ct5KVU8LWpO50BlvuJ4/3oDMhH+baR4XyMYwxC0ntgtuLfFniehZvMgXXkvhgPPIiZM7X2SbQl7zlz48T1jjLnH7Ol6LOU2AcE8/zfwBx0KQM7GXwGYmMt7i21ShKVapQsFOtI9ByzXTPZyZVUmDs0G/0J6gY8pWLtOw1XV2scsN1vf9Hvy/a5fa03EDRVxFh8c/g0Siwkmc2kh3hF6D4fTfgogAkRTbeOIxtLIdECzAGbNJyJ0OOrEodgEC7BpHOPZG85SMxm25nne3sJ5gWhNzeAS3OZPy8dyULxlJfxCXHXYPREWn5fTdkhXvPUDBmD3Xdm9XOhrMP52af7Q== 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=9O3UgkxluQ+ROHJTMui1BkCI9cCAFSFZvDB6rVEvXLk=; b=edxgpJKdDBh6LddlJgMqIs+Lvw7RIwMox6B8TCgJjstVMV71ixIkkpmWqlxxACfAb0SYyJrUNpG72FpNjqebPeLOAEby6DhuhIoPtAPlA8k7sOC3xt53ZQGoBsjrZw+ejoWFy67DCCGRK2IrqChRF3+YFps/8qKf3ebV/tahL9FOTX7jRpcRyCr2fVtiLNn3I31Xd1JPBP8ESM5HCtb1PayXo6S/6rtEjSyq3b5tNhGnCcLqEIcADnZnu5f1IhOHwDtGKHVdn8Iv7A0Jn9+EDh4QMaLn7RJ3MbElMfEWiZbuEr9BFOJLv/jkPC68nxGDOpS8xrwjUxZCTIgyywLhbA== 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=9O3UgkxluQ+ROHJTMui1BkCI9cCAFSFZvDB6rVEvXLk=; b=pabDCcdHDAVUY2R3kJZlClb0PerwKNLRm/oF4iYFVQB7c7mgeMaD1Ez+4JZaViNV8CxbJL+jy4vYcZObdeRh1OmWcIGh3mY09/Mjn767rUnyfecnwqBhNQR/1MyJF0zO6GUwdawXRelJDr3Tus7Tp7dTNVr3cYm5Ic+JX1ojPKFa30Mr8atqjKycjD3eT74k4/f0kRHYui9SZoxmg5Ov3tJYrFa3Cb/kjofEsAR1tjBunfyoblwJ8xJIfMGUh3pp7mRzXdoxLjALCxxgMy0es9+gY3UMxmQ6hR3Bmuiik9R7eqfNDyFtU5K8ZMSm3KW/VbZMUm+rVsNureiFUrZl8A== 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:07 +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:07 +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 4/4] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Tue, 5 Dec 2023 17:43:40 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [l49USsWAJmOZS/CpMpkr35jk7T4qSIJ22B1fmnDUzTk=] X-ClientProxiedBy: BYAPR06CA0009.namprd06.prod.outlook.com (2603:10b6:a03:d4::22) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231205094341.943713-4-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: c831f81d-cead-45a1-f8dd-08dbf576b9c3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wuiPlAkEHKgZBq28vphtDapFpyWddKlPR1t5SQavGtYZsiDRtuqKqdrXfHqRv7QHJ7UQfzYgZOS/txu3tL5hNNAojbvkvkkIyw2u1jD18tLKyxmMNN/M/tO25ab6XU0Yw6CbRjuWALN0tkk2HOQfa+llFUeYWRnLYA/m86OEipdeK0xVt66pX/86ese5vGp60G21BDGKuOB18LDvdMF12NqM5EfN/TQfOfGZSzktbi6F3bRVGOIFSAHn8hBF+HqT2d/QYjQh+TnqAlo6z+2rQhuf286ocIftnXLl3Ccwdo217HTk2IUZdcmGXp+Avv+E+bKhjVQfc2GdxsJw6J3TOHBeYN6FLFoiNcTdBlfhsWTE/JKf6v5IJSE2Q2qP5IoAGff7Jumn3xM6LiiB3iaSGbCeKdDTWxJCIukt48VcvhLQ6pK5EfozLsroyKX9X+6t2soQT7gKn6AJTu3NXS2Q5RKehThN+0XECu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dvzVjIgPBTeq7A8U3WoF2CdsyqzSHndz9QEPkmMeXztuzcNGojXsAFYYstzofZOfoFnGWXYTJArl0YeeKWVXt6XOakzdbXKaRxttq3N3J4INOkcOmLsMKx+olOJ7pOgluvNujv5gFJPdPaaATXc/HCctF5C+URAFqryAFoZin60skBPu+cGphadA/ofpbyrfVAtgoWG+pW3Xwa7BDr5Hddfy7WxxR/uxRi6/puvv5zbaoLW4v/t2cnS29k7bIIeJ4E+gplqgmLY6edNAEt+/keyUOfb7hjRTtD23DCxpEtsx+awbb9l7UNlewa8HtUooLgpiaKgidO9QJtZg/FSjnhI1nMRoD52Iyu1vs6gb+nx0PJfOQPzubOiVUwUgGU= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c831f81d-cead-45a1-f8dd-08dbf576b9c3 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:07.8474 (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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_014415_556903_4558F3A3 X-CRM114-Status: UNSURE ( 7.46 ) 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. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) -- 2.43.0 diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index c5642dd7cbbd..3f290a515011 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>; @@ -136,7 +137,9 @@ uart0: serial@4140000 { compatible = "snps,dw-apb-uart"; reg = <0x04140000 0x100>; interrupts = <44 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clock-frequency = <25000000>; + clocks = <&clk CLK_UART0>, <&clk CLK_APB_UART0>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -146,7 +149,9 @@ uart1: serial@4150000 { compatible = "snps,dw-apb-uart"; reg = <0x04150000 0x100>; interrupts = <45 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clock-frequency = <25000000>; + clocks = <&clk CLK_UART1>, <&clk CLK_APB_UART1>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -156,7 +161,9 @@ uart2: serial@4160000 { compatible = "snps,dw-apb-uart"; reg = <0x04160000 0x100>; interrupts = <46 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clock-frequency = <25000000>; + clocks = <&clk CLK_UART2>, <&clk CLK_APB_UART2>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -166,7 +173,9 @@ uart3: serial@4170000 { compatible = "snps,dw-apb-uart"; reg = <0x04170000 0x100>; interrupts = <47 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clock-frequency = <25000000>; + clocks = <&clk CLK_UART3>, <&clk CLK_APB_UART3>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -176,7 +185,9 @@ uart4: serial@41c0000 { compatible = "snps,dw-apb-uart"; reg = <0x041c0000 0x100>; interrupts = <48 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&osc>; + clock-frequency = <25000000>; + clocks = <&clk CLK_UART4>, <&clk CLK_APB_UART4>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled";