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: 13549471 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10olkn2107.outbound.protection.outlook.com [40.92.42.107]) (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 A750871B2D; Thu, 8 Feb 2024 08:49:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.42.107 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707382180; cv=fail; b=r+77dko5UGDIvajghOu1YW9GaE33sOLZ7KFKaDtLwtIM1t9unPngs12Lc+qbDNS1tfcXyhLQmen383AFiGdtlz53Uz6Ma0Xcxg7xtrMY+y2PJPT7nBaN3DZCRD2Lg7kpHLZmZnbI3bjv6Emh3E1oVpM3yaZFalhGiWtgBUVbdJ0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707382180; c=relaxed/simple; bh=4l5VlATYOtXiw8DStCBe5UbmUWWLG2QgU3Y2EYARxZs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Yt3RHgCEUW/0Y/k+XcfONf3werh7RVDZeur0eAAF3lLk5NndiFmU95EgiCegjYkema0b7NF2NZOGJTMEY299tcqNiw3qfY1JchD+D+dRlJoLmc1mhemcvFLAOR2xGqrHHrPFtZjdmyhllirnYGGq8I+S9sDbaD3Sk3mo8ANyhDA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=L/qiVQsf; arc=fail smtp.client-ip=40.92.42.107 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="L/qiVQsf" 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> Precedence: bulk X-Mailing-List: linux-clk@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_|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+cGFcxS99qXFMSzPG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kYQNfwOjXNIdAlALH0ZOzmWIsMUcTLB3l5DvpAfwLov7d38UMJ1uZ5ynk7BrdH2gqse6Y6y1McoTmwcgRJgayItcf+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 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";