From patchwork Tue Dec 5 11:55:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13480119 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 37BAAC10F04 for ; Tue, 5 Dec 2023 11:56: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=zRgERLx+ZYTU10 YryQ88N9rHyKIzoNxyw9dRo8XKTTlpJlxOO0b+ZW1Eqb1sC46KpxJZdhEOBXEZKYoqFlXarUXkGyA jFJ6M4DODsGMWQDVRdtV4/p8MsT2AxocgjQ/cIYypTpOnjShFWCy0uPP6kdbr5fFyDSC8vaJefClA M/HF8acXrIWOg85YllVXOyFndoSQ/ifE+maBHuX/l6GWsOFeAAW/HCBNDBRpqxzTD4R3nLNvf4fuN FiLiD9wzIsZaaDc2AnxWkAXtZB1jAaATfxdy08w2vEKUlMIkU8GSJfk6vvXz7VlGie81VBjkknawS rF39UjYKASvhYe9ci45w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAU2D-007KJS-20; Tue, 05 Dec 2023 11:56:17 +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 1rAU2A-007KGz-2C for linux-riscv@lists.infradead.org; Tue, 05 Dec 2023 11:56:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fpBYyF7o1RVD0J2pHZAHa74pos5WfqBqsezMoF5FDynhXQZovIZqhQtCZ5Icxw0SvfR7ld7XzY2PrymQyPTKb9In42mwXJA05z80o0GOBhoAxKVqKWI8huIJSt3a+EeffX4J9Pg0MLTHgxEzjUy69T+ndqBXmFJh74wkmw29b2QfDi0ABYTqPy5yJ6DtQxJQSafHML/3kT5tdOF8Rdn1ZWYNftDGNpW4UW5m4NnUt5CemWASuWwqjZ9sRly9QzYRQRVFYmemM05WfSoQ7uQ5WtlIfhkiWaBzPs318sttRQ3GZBd3YnkCHGayf1MZDVJl6qHJmI9RB/wkdTHIR+nEvw== 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=hVQCOpC/QzxjQSMqX5Nrx5cCfTwk9vZz6xEn1U7iIqmdGJd7UyjXOhCCKb5rcuMM5O2KkUxM8MC9hmHMELyKDOlXVJfwH7xwfpL6W/40ydCTcS8Qasz57NQdnebprQMj01oXMJDVJfP2u2gKs3dG+FqtfaBeqzKgmAk1I5oXAcLkEbGSCq5JytSf3PJENQDM/NXOGk3GsGaxkFC4906L5eL/WZ2gUNs0slfFMwVZN4OzYBKNnbwOC7r2zCleXOWq5zbHCW9x540i1DfvEMhE/dMX5FJP0Ql3uF4N/9Q0fA1PSM4fZ6iPb/IiEmUkJVGzZ5YkGmTt+e556xkdDXcajg== 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=gMKtttllUfTkR2Et/vuXbwnMeFVcMHJjSGcY9HOrMkMXI9EPkxr6ZKOqMcwg3lkskq4bdVS2Ypw+zNN5zXcpefcDlZEB3VTstWBDOHibF367Hl17Mj/kZMm9wjYYwM+qbeo3q7HOlEDicNPul3+WnMGIvlWabmPbjxdCt8FJZKjCYVQCCUE98nMZMKofzPREUt29r9/WG7oz9epy+Dh4AEktT1g0lGQ5zdWox28sXS9f0cp2+P43A4d/bdjzlOiqaI6As64Hx7JTPI4NhSMl5gQCJYHKFfb2MAL4Y+PU6iZvJbnsQlojnJq/HykGHcc6OSC2eKNKVjkEvyf8u4f5ZQ== 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: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 11:56:07 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , qiujingbao.dlmu@gmail.com, dlan@gentoo.org, Inochi Amaoto , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Tue, 5 Dec 2023 19:55:53 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [As4dNTdSpRX/8vw6LQsP/NXLktZFqnQ+fNmTCtrq3gk=] X-ClientProxiedBy: SJ0PR03CA0013.namprd03.prod.outlook.com (2603:10b6:a03:33a::18) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231205115555.1042712-4-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: 838dd071-f9df-4015-2c16-08dbf5892a32 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zNIL8scZzx9W/Wk6UseCxQfwBVk16PdsCH04XtcBTINlruFJA3+Vwj+GWpfup6djSN8RVGOWjWzeiYwFv5jnUJ/V15KWw/6b8qM6H6OCKHvPHvIiiKUUMrfDfMF08gkL8ZxOGqQseu4kl9HKlYcotFjhiOGvuiBMD/qQuVWKUG6NU8b5NRieK3jnXsTqHYn7wsffLNGAbxPUre2EIIQtJClz7ImIGMbx74CCbUeRHowmBIM9eFB/B3C+Qr+Mpd4YeJsVUT8tuK3xG6jhibKZQuVwEcIPLOEdGAe1wOSrY8ceMiniJ3ptI93JD8lS/eQiMrmP77jgDLXXH2eVRZyx55V9PwXYqdxd7LWEJ/gPxX8DohDNdQlwTwEpRvaYbqaEHulci2pm3+I7YZJL2z+V0vHjzwWveTadABCEOptJQrCqRXnxcsdE+7pTQeDK7vRhNU794M4niNnS5s76L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JrXGV8M/xzju4xTFeQtfXobvJgz81kGsKNWr/vRYOeFua8oaWOGZHf9RY3FbkFXOjD2tDBEvaL9fqZSs/8UsrpxTK1ujbYR7e9X0CMqj/WqhJZv3g9MjZGI/t2OXBzr1PfjsXuLCLEbOisSJXLlvY0UYNyibIZe60GdcBUoamMpAsGrMnZhHKADn7PdJWVEuBM2ksq03POv96Ot8oONI46lazT2Eq0QrdPwNQpEgcbOBkqIkpNpoaQCZz6Yi3fsxcOY7qDn/lG/ABWB1ALylzzI4e4aRyfbGXBF2pcYOnipf6ijmc7UAlmbwAaf/x7AmKXeAGeYtq+Rr3L7z3i/OM6nyIkacRYf3KUt4fSgWlP/d3bDlkba+ClieT1sCpDEosiCaqP2tyEJ5GT42TYltyvmL/AdD9EtZ0= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 838dd071-f9df-4015-2c16-08dbf5892a32 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:07.5118 (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_035614_718840_9D8362F2 X-CRM114-Status: UNSURE ( 7.30 ) 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";