From patchwork Mon Dec 18 04:04:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 756235 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02olkn2063.outbound.protection.outlook.com [40.92.15.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FADF5392; Mon, 18 Dec 2023 04:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="dpLQgvrO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RjH2G30iJq19pRwxDnvSnAL92MLVv5E7A6zCxIpA8twY4rvlms6g310hY/0rAOzdF/kReFqHb/hmvj5uKwpzZz+e/6GXZUNcwYlj58fE+KJqA32jYRsIgNxmI3vh70sGXaSp+ZsqLVsg3odrgKnMRFTpCQGXVJwXSefVpw7U2rGW9dHO8CtkirG1yDmqIUene2FAZO9s/2PhH5UFixZKmUYusNDQvEJfUg1jguNZagnOIEb4TtrU+9sVcfduPqbNl6QD0EyQpVD8h32Q48OT8cgVo82pmpJmTTsQrtkuVdRp/MmiSuymph817dLgvzIrrlRIj4chu0j+DkEHNPDacQ== 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=P+yMY6NMzjHAn3YFu7ZmWza1kRQJ7ZOcUMooaLt9qP9tuSIUM+gKAe/gOGo/SM6H4OMx9csXFHtE3nMHHCIrCIRZr7PAMKK/ltm5/JmZiKdG06r+gWl/VvdKpJuwXftUbE/8fwQcQu1tXhFm1gZ9JnBH7M0Ib7mI11DylSMDzJASHT9Kic3q3oTdHB+JoOaaKB7frHiuF0LYNPuk8jpNUx6hm9Rxu+sOObF60Es3OxpGHxcocakWb/cdGPq+VF9laW35eI96uqRFK/fhWDlOXXWo0V2We+Uimieo4YuZy25KY17E8OyxHctmwxzE9a02LVdZwcrC9LwmPtDc6lmH0w== 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=dpLQgvrOzo+KdM774o7S8ilY+K/k/yTqt11dpYEBn5y6mMbyEljLlBF+jl71qlfPbxjjljchX90iDQaCoqS1RuVxa40NQOZ2xgLO//QwYXDwdQ95pYGcJ1GGzGbxudztLLRTM79sMwf3d3wGyepBQw1dbVQOW1ntJ4DJZ1RkPyz/tJVYjp2yHcXjAuHLPtvHFLvTVPWbK6iAvFIMf5R81rzXvp8sZOybjGfDISTnjaHMKm1xGHEZNbElEiszOZXBwGQ5fudIco46w1s/biCVqVqqihEEs2m67QfTigwV0EOZcNTKkjR+fawk2gexf2KXEMPB0SaKpq8pKJBi2JOHbQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by BN0PR20MB3976.namprd20.prod.outlook.com (2603:10b6:408:127::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37; Mon, 18 Dec 2023 04:04:41 +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.7091.034; Mon, 18 Dec 2023 04:04:41 +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 , 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 v4 4/4] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Mon, 18 Dec 2023 12:04:06 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [Rzc4djImMWk2AB8iGhGrshWJaQ6HRFGliWIGiFSZ28c=] X-ClientProxiedBy: BY5PR13CA0005.namprd13.prod.outlook.com (2603:10b6:a03:180::18) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231218040407.574287-4-inochiama@outlook.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|BN0PR20MB3976:EE_ X-MS-Office365-Filtering-Correlation-Id: aec4b7a2-a5ea-4094-2db4-08dbff7e75a2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qsWWfEbzSQu5LjoKRpI+mdiyGqgetyt49vi4HYxx5puErmkuE7nsd8zJXeIyaz9gGeueD+Wz03Trp7QLfbcOCAyKHriJ1sThX9sL22A0TbzLBE6ZH6KU6ITxozT/1KMIt+VZwxVZ+GR48rj8+mr7i3XZ3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fhot9hFbTLSWwu7niI4jlxarPsHBsNz2dzuJTR5WzT1fSUtLGuqfvLyQNDqk8f1NWfpLd/vnYhfmumZFYy4lEtHuMDznR0hULCW5oNDjBgTm2pnaKRJNFCdZ4qtnyDAFodrrQidoYOL+pr9IZUisG1uO/MblfWfPtt06BZ/gfyahOLHd/0S1X1oqvD95WbblWA18dI4JHxPQgZC5HnHYkNC6y7rDzxHdX/wfsutA+xZiK9YcqOwPJxlu6HS3H13PXXtp3LH305usGqPgYzbC5PiRHPdVAK6IZNsBrOYjQW/ZPSOtlqdKDl42Nuo4pGPK3FMwLgDusPSnlt9nZSv9bzv+bWS3Ls+EPv86URmO+srAKZOZg3plStxjQrlwUHd+bi2wdSJdcUdL84pIeQZgcpxCdQ1M8/jjoauxhfxeHHl5qiNlYe3LNIB25wyQYrTOcsbFhXNnEe7FiFOWAdI+orcWteB9FBmXJuh82khEIk71P088A7uxbDYoU5VszSSlheO4jhE+koIotUUn/79m41vLfwEccGldiVRTE76w23iU3VSNnPqlh5suH6A42oEi8Whj6m6rZ8l/HcZ2A+gJ+Dlowi25VagDG0htU+APM5aWyvJ5rZzJc+ctY22qxtezTVT2NSP2TN2Wu0usoyHOaz6B1U32bbx01CRMoiXZEDR73yZUWhNgM93WTtoaAA7adTbqMbHcpWTJKT+s8PEebLXRCU1X8U2gvZCHns= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aec4b7a2-a5ea-4094-2db4-08dbff7e75a2 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 04:04:41.0642 (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: BN0PR20MB3976 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";