From patchwork Thu Feb 8 08:48:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13549477 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 98F77C48260 for ; Thu, 8 Feb 2024 08:49:47 +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=FS4NicHyhVD5BsaEhzDNBVNeBSUqxRam8uc92jgaETI=; b=RPehGEcVh0zF1G +1mhGdD+sxk8QUpoA8xoTZRBU8o6uII7K2Z2+edLitWEfGaUmgPTMASIjtQoJGVbholU6Xs97SYZd Bu86c88ehVlaWz0MwUH2PgshBQ/gKRPDIKEyP9sREgwZV4rrR5hg5cqE0/Fo7wUGsmxVq2MtUkxWV m+xXYkaulrUwoRcrVt/UKJLSd9SB69bKvxcV7NbUxPsPcDUSO8iBzBCP764UBSxCQUkQHi0a7UKpp 1vgYQxRdmonk3jm/WE2j5Tv2fzQzvPHscc42ihYnGx5X19x81u5EkLINCSOsA586ml7qK6zuIru1P cFoGQWZVX8ALtCjHFSUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rY06L-0000000D4qh-0vxz; Thu, 08 Feb 2024 08:49:45 +0000 Received: from mail-sn1nam02olkn2080c.outbound.protection.outlook.com ([2a01:111:f400:7ea9::80c] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rY06H-0000000D4lx-477q for linux-riscv@lists.infradead.org; Thu, 08 Feb 2024 08:49:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cBoP8Vs9vBgOa/hB55UariqoAQfv7AhkQRGnz6e2+ybE4Of85nlBMQFsp86K7OLIGejCaWrqKjIfg4jWQCgI4RdO1+sLWPpLM4M/u9toUx66fZlVvjofeuVus3IgFFT7XAewlrIVs+TF1JUaIbLquPCAiRwgbSuUSIq5fae+FUNDCU5y8ThW6p2xdvpVAb3D4frcSQcWuzeTiNTAzBjDIDh9k4ToJjc5asxjrzhJK0We/+A1cWQD+iaOA+9EwGB3LLQHeBDgXi/yybS9+9m109nGiA9GFCZDSCM7M5/yUyuNr6UY1qCrzZYc8dJy7awrwQUgSuMQBG0JHqSkkR4rhw== 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=CWWhY8tJTP1RlZ50pTTqMJeT20HPXWBM9HGPcTeqxaw=; b=VuoTfn4hmU+c5F40I/ii0it1Z745kDlRC6WdYuiF+miMSo8xnCxuymc1jjnYm06QoGVo0dXdSAs6TQDqhHVlO4B2xFmjXDlLYJ0A0hu6C/gG6RRi4CEMrGTJP1gjP1zj7pN+jIxrP2NLy++DREeOPChLuPijuNXM9yTxm/6mAaZ/guJHaRj9e+9O3EbyE/majGUWHlJ2+iqPSyEB4PNAFmxHMceERzaY0cn+mPYb6lBer+jHeipAGvJ05tsVjz3gnCwJGP2mHe2SOQU0eQFq6aTrAJjr3IITAOGnMrQSqxpt/FoxcLUhcMJq2D6dN8sOfbgAe2Qxrsg+qUZDpp8Trw== 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=CWWhY8tJTP1RlZ50pTTqMJeT20HPXWBM9HGPcTeqxaw=; b=L/qiVQsfzi8H4wlxuF2phCiX8FuwabT3Rk/OC8oealAUIcbjfLx06rsuLdklnqx0Sx5XEVeip6eYJF5xOuO+SMN5W0or4T/Cy1iVBkTDIu57STdujSXBHH0Pzc/0eVLTTE+NKgrwhIdhk0Z/PMIwKarAa20xbpi1Q6DmWdO6fvPk6E7HKvEaQTYLkg1RceHMFm8dbFjjxE+AMaevZauhJiZZnJlDKJWI+qbdsjKxnLAQQVuMwrXvxQT/9vREIPRyT3LJ+00Yqlsh9F7aPUK92Pda7aVeZxQ1fwUtSQGUChRV2a69/xQV4TpjBPPMwvhPmXyvvUclmIN0kR1dZG4lTQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by CY8PR20MB5985.namprd20.prod.outlook.com (2603:10b6:930:73::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Thu, 8 Feb 2024 08:49:37 +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.7249.035; Thu, 8 Feb 2024 08:49:36 +0000 From: Inochi Amaoto To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 v7 8/8] riscv: dts: sophgo: add uart clock for Sophgo CV1800 series SoC Date: Thu, 8 Feb 2024 16:48:56 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [1L+cBdK1gHdX+fodjltukbodrCc5qleCI2XEo3e2AcykAn99c8ck5Ysz7D2h79IO] X-ClientProxiedBy: SI2PR06CA0010.apcprd06.prod.outlook.com (2603:1096:4:186::6) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240208084858.1113628-8-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|CY8PR20MB5985:EE_ X-MS-Office365-Filtering-Correlation-Id: 57fbad37-1414-45e4-3b53-08dc2882e11d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /GzKykz3fnSZtC+Zfy7bk9pLxytHhljzXrJExJAsk7G68W9ZfTEVFKwM2e4SQgXg7LiiDt+E14NrQqy/0mj2Z2hmEraKlrQtjAwh0oH3X0AwQs5mrZzxoglMMwsJT7XwX57cBSRzIM+ITgdq7qtupNMrxUqXVC0rRnybuxnjaSxOOCxUSYHNEkzuWgkb/4jPsnzxBZAERUaMtkLIG5VRKAu6Lk2q57KiNc9IGjI7bjhHKz7SW2VtNmAsOni/6w4r6zem8LGIg92WFlmy/Uny/yz6ZH9A36knfd+XpG6D0JGCZTtdwyehrulGZ5oaHU6fc6InBbO8HyrfcpJPEeeGFLkKjDX0rN+uaviiwlRbhQrbRP3ThdYeP8wb5UMG8EpHmGyi2ZEBn2P0cvSCy9Zcuf5UG+cGFcxS99qXFMSzPGZ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YQNfwOjXNIdAlALH0ZOzmWIsMUcTLB3l5DvpAfwLov7d38UMJ1uZ5ynk7BrdH2gqse6Y6y1McoTmwcgRJgayItcf+UNUEkwzkKLVm0Mn2XL7Y0qr04DAaqM2G+EFItXMSFdbXRD+A6SIY0x0vzm7X+gRI3B2CTImJleqbJwQ1zUsUSgjUv8Sky9P1HHNq+UyRsAnZdLk64u3ZD+gLfGjZnuv0woeeVJ0QMe80BxIhuhO/LxchfeOQfwReHd0uTGkp1/uBYZEURQqnEXlB+630iuzYV4cApl7xeyc0oq2ElVyRfJQXOmdPfjjawqo5W8+YlcArQp1O9ZMRC4HsEDPMhMNQL7CIeGaI20VC/6vtY/wXcdKYZ1o1iner+vvbY6BCHMoOy+lyEMr0fEBa7Ix/NpuV8YyYfUSET/plKroWlGAgOhYXUwqLPezWf9FqZzQpVR0ofTv5Ya7v6IrEPwab7tzR4e6sRj47v/zFA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57fbad37-1414-45e4-3b53-08dc2882e11d X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2024 08:49:36.8845 (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: CY8PR20MB5985 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240208_004942_113379_8521DB7C X-CRM114-Status: UNSURE ( 8.04 ) 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. Reviewed-by: Chen Wang 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";