From patchwork Thu Dec 7 08:37:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13482950 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 74FB9C10DCE 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=Lq5IjhrTAgmW/zVEeNz/q18jTECzJZ1WAp0PEOvuL24=; b=jOolqGZzd0AO5B ZUux8R/yM3szJBm45lrXcDp4XYkixrVU1i6aQG259SIEIpIQhpSwrioc1R8OinjmioRw3/P1lVlbe kxAEH/YiiZOLS1oU3+32DK6/GKrcJv1Kc1AocjUZUDOD2FMIQS6SM/cK5RK3H47Hw/R3zDvBXpKUG hWs6eDsZBjIXO92yPk65z1nAmsE6Xrcfc+yu9lO9df85MgFWWF8K6rjhKc5lrtmQSphsqPL9i9stf qbfyW8Zlck931iLjWAntAmqZT9UU9+y4E0dSYkGQ2QidfOtL/IyN9rtRsdjfZE2/WSZdjqgjbLXiJ eu38LYXpmkG7USMl9pRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rB9tQ-00CFCN-0I; Thu, 07 Dec 2023 08:38:00 +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 1rB9tN-00CF4g-2R for linux-riscv@lists.infradead.org; Thu, 07 Dec 2023 08:37:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GwJ7zycOPE06Uz+6f5MNyBO/Ym6lXZ+H1JPRXpJQJvgpk+MSChbazy2Fwjl/oT8eEyJLjWST+GgI8Gc2iG49gmmzpgoRMsl6JQ7kMPEihmpYi4KwMi+Q2FYb1iGK1NsMvnMKYgP2X8dXJioSFECdUkxF9QKrNkDElwMfRWwFcu0dMonxnMPbQtk59Om1gi+vb3iRgJaIcScq1LTfpTll+pNcgl5+lftnFuYQ5sgtk9RKFio3+97usZeeQK9IkC7X3sdstb3p9Gb2twlyJQ3Xa5DkWHy2P6ku4sljCMQIXSi7TIqNCSLSdb9Ajq/pe5/+o8jANsVIWVgCdrJSaBi/iw== 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=Cor42z0n//rFJE8KJb9aLxI19y8bM26Khqn4WDnZiok=; b=CcMKtu30tUefbSmZm1G19k6YX5+wjjdMStCxWjiiBL7xfSUJ/n6PwsjsUbHMvNyafMIXqCb41JQJhvFMgVSt/uk5PqFKNcgoDVoXdBg9FnI2SAVoypAu8oRUPhAmtcUqFp4kH3hvhMnv8jj/xgsA1x0UF3ALBwT5EnfnTcvRco4a6mKK1gbH2FcLZjEeDEacHs3nPqYf1fqt5IBCFF5052kSf1WvqjD+2v2nak1Z/PgS1QrI7fiDBQmyczAXbdyF3PQzUzSxMrSPVwMR5Hq+kTbzTW4tCwSP4gxkCLGYmx5MbkElEnjCmuyZrsjNx5tUMjWfrsJUChsqArzfNJV6oA== 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=Cor42z0n//rFJE8KJb9aLxI19y8bM26Khqn4WDnZiok=; b=KAtoaOMDd5dNvTKH0661PlWeB2Rh8DGpqk006Ic5Ck4QXukvWhE41x42rRXxTc6Itjpxepe/2GogBULRwWm441pZRUWtgGDit+wbBJR9t6hNyRc8eFC2/mokQvcDQ9HGAGxMdHYu4ADBVerWObp5lPE/WMApb+0o3v63F/u7QuRe4dK6ky8e51kJhBn4jFzpRp20+w75Njao3sWHDE7SvUeXds1bY/iuNpaGnJS3fmvvHoCQNrlmASRkAwaNkG5ryN2sh3sA/OET9vb70WY3mPJeQxt3D7f8+qQuF2YJkLFJG+UVbUnHL1lQMX06kEszBPfUpActpoTc+Gt4NAjRCQ== 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:47 +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:47 +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 4/4] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Thu, 7 Dec 2023 16:37:29 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [EMyz0E4OiVpm7SyTQIkWSwbyZC7KavqhRZvQ2XUHHjg=] X-ClientProxiedBy: TY2PR0101CA0021.apcprd01.prod.exchangelabs.com (2603:1096:404:92::33) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231207083730.874690-4-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: 26b285ff-135b-458e-c26c-08dbf6ffca25 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0xZMvt27NdYvX0dWqutfwL0cI/tDPIx+UQ9yaPfhFHjVTpEEstBCd4ZAPSxTsXPY5djmlavajh9nzBCOwG/gSCPnD9OtrjXE0Y6tTfPTcV14YJUznihFel4DcarfyVBOG/VQ2+z7dujT2kPukSMmu19n35lMlXVEvAH8T8yqIJBgMOPxuU93ey0f4cwgwFeeJ7JxYYKbpkUdlEX/fgp3d4k/2cjeG/xpMGQDiSzyAQWlibJRxL0HJ79dv71RMEazOGR3Q9r93oOeewUNmzn0LVEQPriUiip8B7ERT/e2SO7BmHXKrZ3h/DuPPynGBk1OlyiZo3EdB+7uAvu0HLNPmdLvrs+ms5yigmwVEw8ZUWUAx1lN38bCfGTD2kR17IrRRD/TAD87Gr6sPotbHq3iE+DA8DgN5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guf2keRWt0BLZOdmQYT4d8T4c2L/d6/a3xpjofBdc+BESrJSx+6e6eP1gHq+Z+N9txR7Oe2yBa3UPpPrur2TVrJLmUpLHh+UKJhUu+g/59FJXOwzocfR+i/zJzlp9UGCu2RLa9chUFjunpzPXySxHMEXya2GvOpQRAuIVM0G+hqsIEVkDNZx4sWNY5UV0vlB6yw1X/SLOy2SVdiPQpfmt0+N+KLUGD5S/pZVRV2kztXVMTit5oLDnatBn9Qx5sPcfbb62T78KIjV9lxZXJH2QztVrkR0U3bF2YPpBSEVybvkwp9kRN1tOMXWg/Ef0rasMjnNoII65KyZ7sAqn5u1zjqZwQs9GEAH4LTgunHbOvT+yBiPlpc/KrnMWPkGYzpd3zlnMxxUHtoMWkyvWdMNvf6Jmqg5A+bSbTE2+TcjTKq9+pfEz3qGAJLtWFJN9RuUKOde1C0Cwb7xw2KRT0Q17CZlpNIKM= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26b285ff-135b-458e-c26c-08dbf6ffca25 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:47.4836 (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_003757_803254_1593BE34 X-CRM114-Status: UNSURE ( 8.55 ) 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 | 16 +++++++++++----- 1 file changed, 11 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 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";