From patchwork Sun Jan 14 04:17:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 762834 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02olkn2069.outbound.protection.outlook.com [40.92.15.69]) (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 AC1E61FCC; Sun, 14 Jan 2024 04:17:42 +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="fhjtoc+F" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yr9PLZl+W5VzHvp+ASv60sBFvnVr3NHyAiKCsbYYrwEty5M58TXEYjdHYmYwN0+ZskZWMZHc7fWKMCo/3haqfBGKRoG3zRfDE1msG8NGcJm50WjbHabzytuNFAOkNTGMF4dCQjKrR5Vqm9YBrD9gnks6u2nAyOxFyemysbN6PB+RsniQGkr/0RaFf4zBxp/d4PL2Y8v12rBQXPFFCNEvHAd9Pa+yynu+bZLGAVqgfPIIwQIn+mwmNiDdeEJQ/bcmVPe1fT9wmyBF9sSDuT0LDgMwmcaM5A2ONoBSfgyswLEgZRqZYREylIPgBr7VHVmLQjSqCuQCAWngc8QKryPFwA== 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=RbzfmYrvUUDUtgT8ucGjxtPh2Og2WOBto8sUhngGd0RN1PsquwG2GAsSVN3BT1gEWuE8cPJfeYgN8ajXG8UunVF8BttR1pWEoQjQifdNwh6AnhdTOQRSgjgA7yUJbJYNngLW4dFUjYapwsx+jWKGv3DQCjtKhJiwWOtPxGBRGVk7PTYoQsj3U+8HkpO/43V7APc3X6p86IUYsUqU9ICx40sfcWetRk3upI+DTDMfEUyRjGoZ0ZfCG4X29ovH0Zi7iaKZ+yfKtOqFIQK/Oc7LSj1/XA8+Ue5FoVL9ugAp/9SL4HyK74AeguJUnmPPFi5EW9fYtiZSfdT7EmdrSK7B7A== 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=fhjtoc+FJzCpxcw8Z/oLkVsIcgnlU0n7iW1h37BLIv7YaTpe+JfDgB1J25TkNkwvI37L/FVroR7k/tmsk8MrH5roN6q3gimW3azaD+LFtKAZV+MtJglYXPh9kf0ZCT5XOGQ9CeUDy+7YxofF2MHfNC4rKMJJ/OAqCQeBh868Crk1Xcs0oqfPcG+/MD2TuH6YGabm+10k6E9Ua058AQJ37xOJaqD3s3tRmQzwhF1UTmgwDVzbSMEROZnTfTiw32YMGhqyOt2jNoVNLJdT7RGjxD1olkwN/HwyQ+Eqw80yvAmjgB3oMVnGITLdaQqJF8Cp54tM1+u86XGkuWvC1kgNIw== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by MN2PR20MB3477.namprd20.prod.outlook.com (2603:10b6:208:265::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Sun, 14 Jan 2024 04:17:40 +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.7181.020; Sun, 14 Jan 2024 04:17:40 +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 v6 4/4] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Sun, 14 Jan 2024 12:17:01 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [iKgEvI2wucQG1bzboi7iwFBYi8cDOYmpP8Gg/66QzUhc6XB52fCsxWfjgPiJehBJ] X-ClientProxiedBy: TYCP286CA0351.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:7c::20) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240114041702.644522-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_|MN2PR20MB3477:EE_ X-MS-Office365-Filtering-Correlation-Id: b8908361-8afb-45c2-e722-08dc14b7bf76 X-MS-Exchange-SLBlob-MailProps: YfhX3sd/0TXV24TVZ8EiknFmWQa4Fqp015K6lbLmsS9m1llCIx0lj8pPZr3ulPApJfRyooPx4HlpSQ9jX5Ldnfl22hJgS6QrzOBowv2HzaZFgF3Nr4q87mHYxzbR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BBNdTNUCLlxSsqc2mnX50CwRWVgzPpoCEZXVPELDAeGhgEqWkbvKNALA9wHdXKjkWR7GvTqPvGrslRafTDyKFHnCFSBi0WqGg2Ab+C3HxN50lyjPgxjS8+2J3QPEZ+8rCUmfPUQzi8m8+jQujiBOCSVWOnoZ6QT0Ttmts6daV8ydBO/KgNAC8mBaWjS/R1Jakb8rh1aFT65rHjLfUXNpaEj044qILcfE677r/Jehak192UEF6TYO0Q1RpNd3ag5Zj5jtLWVgzRCCCO4MUpJDvTVx1cjz4rmFZNMXaoHBiep8t35Djo5f90PVD/5FkV3sD7PoNtPetQ44z6CNaQfWucfgb330WVBCy+2ZGt23Na22+BQdLK/EBRw+eXl0CQT55gFSCtU1CuhvMHC+ttTUW9tdm5R5bq2yXOEzzvtotC8gfAmQd35IH79SX5CJHiSJx0GQCnzwXwStufol9lo9oz04oO9tEBXOubhUHTtQQzUwOCEJUfszAeHoC74Y1aDc5SQk7nrhwQB4qfxQ7UbwXaXUNQMfYLIH7bxoZw4g08gUuPO7N8FhnTqiMZxQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8908361-8afb-45c2-e722-08dc14b7bf76 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2024 04:17:40.5512 (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: MN2PR20MB3477 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";