Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp298713lqh; Mon, 6 May 2024 21:59:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzm/OKsLIivzoLxDZ9pXHBfLNha5R/78WGZMfwcBxV1HvE7PltIqQ2j2UPKGwSSHm1/3dE1+cMmXNpI0fVe0rhBYfrmLUKSVIVCncssg== X-Google-Smtp-Source: AGHT+IFsY8KUdEUlp9M/p9zfSqhf9nOybPX5p/rUoetgb4Q1WrURhvHnQZxToVR9YLRye4owKOFw X-Received: by 2002:a05:620a:1906:b0:792:8c89:d047 with SMTP id bj6-20020a05620a190600b007928c89d047mr11950774qkb.75.1715057940349; Mon, 06 May 2024 21:59:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715057940; cv=pass; d=google.com; s=arc-20160816; b=irW/oJf3PlkRCT0/ph6bqiEayyvi8i0dx/jYWEpYNXlMzs8CwJTUaRB1fGjPwFbuyK eCX5mVzurw0jwR7gX74rsIK6RpospQGsKESlaVk+aT0pvvrx/IiIQ3jBDBmFHZHmdbwi kWaMW3NAra3F7qbOxTvrlWoRwzpZwoRW+ZTrR9LGN8kUWWn5M50oCGV+xgmpHEcg4RuC zzLmI4hbk0VkJppUMtA969tpDcrFV5MMZ1p1hX6YDEWn35IQS2gpc8pEg9ACe4CW1eFm RIZcIteSiKaTFXTwgEdYnzBha/ckOJGlwX1UJkE8PrBRj2fuvnow6U1YN+6KDXwU5E9f JkRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=lV76EE0lGVh0xzAlFnhOqZDL/IraInUMutR8RQKZJGs=; fh=7mjRAbdc8PtZ6xw96I9ofarnY51qdOqEzrWcDR4JZ+4=; b=SEJ1UC/Ee+Q9F/eewvR4F5MGJSY44JNAOvRZjLfUKYKoBZwnQ0qEuIXwp+L7iuIR5l ZgmW098vqp9p5Q0InA+1wZ8D7hoEddY68is+nU+nMvI+yT1cccb00MGFHNemXhndVxw8 LgujI2HcS9CGM+x5uokbHqxZH8K2NvLb/lDW4t5/lNXIr8ZsnosJNgURIdIWI1SgpcL9 0wpVVOeVrx1W9U0ezROtQcFRR/qPYDu1rQUtbcgzYpzCbj+umHF2NcWucy4AQnsY3PIQ XBPYNWN7+2ho6wBcjLCpykBpo3bWW+0edCfgU00F5WG+Om72legmLvLdjjO+UUNsVpCk SBvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=GCFBDfoU; arc=pass (i=1 spf=pass spfdomain=tenstorrent.com dkim=pass dkdomain=tenstorrent.com dmarc=pass fromdomain=tenstorrent.com); spf=pass (google.com: domain of linux-kernel+bounces-170669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tenstorrent.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d17-20020a05620a241100b007929c8cbd7csi3313502qkn.361.2024.05.06.21.59.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 21:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tenstorrent.com header.s=google header.b=GCFBDfoU; arc=pass (i=1 spf=pass spfdomain=tenstorrent.com dkim=pass dkdomain=tenstorrent.com dmarc=pass fromdomain=tenstorrent.com); spf=pass (google.com: domain of linux-kernel+bounces-170669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tenstorrent.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 099891C20F2E for ; Tue, 7 May 2024 04:59:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE2B373506; Tue, 7 May 2024 04:57:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b="GCFBDfoU" Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12BD56E61B for ; Tue, 7 May 2024 04:57:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715057858; cv=none; b=AMaM8YShkQBDvDkicl80wxEHCQ09B5BrPJvNesd/FNvR2ATW+YsV2NQmBk5UEhCsrJ4fYuzJST4HLnWX3i9hftfwOzT3Dtn7KQHjbBDWuN+ReksmFMQAgd+QMDBHnkhuFcuI9nt0isEC502w41Xp4JPPBqCDYpfOmvVIlHzBmr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715057858; c=relaxed/simple; bh=52sEPjDrM2eROoC2nwe3EiBnyP8Dcq8Rt5meeISouww=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Jala2i/pE0AdqA2AppmdVGfwMa4EJYCwQS7WrjWuKOP9L8MCceHdYewEjIYUFq7kCsygndgx1Q8BxrmAEA+qxbNXUefgbzku/v6S687QLeDY69kxU9zb9G1kn/8za7pmOLwgGargc2I6S/evM2mKQ/fF04cU/e3rlfARo622wiw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com; spf=pass smtp.mailfrom=tenstorrent.com; dkim=pass (2048-bit key) header.d=tenstorrent.com header.i=@tenstorrent.com header.b=GCFBDfoU; arc=none smtp.client-ip=209.85.128.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=tenstorrent.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tenstorrent.com Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-6181d032bf9so25670237b3.3 for ; Mon, 06 May 2024 21:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenstorrent.com; s=google; t=1715057856; x=1715662656; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lV76EE0lGVh0xzAlFnhOqZDL/IraInUMutR8RQKZJGs=; b=GCFBDfoUU99n51+rVxpgK1dhimTAVosBYe76vQ3eOgGOrU0HRFG/8fRt1tvs1VPtkd cgDHwxyfVhShe49vL1jgfdItjoPGUnbwUx2hukBVwVBmw/hDFZ8Zj+qDQIFm2kZP/Fb+ J1CvdQgqJJHepwyK82jTc1eaV0XCeK3fXzqwxLkdW8yzfDXD4orr9ZiT5DX7sc0mDvfv u8gQoGxp6x/eEw7Q9syzgOkBQf+M+du8Z33YVjvEu9E/rtCbF1/tEviP/ZZfBTBG1hWA KSQxFWd1kvrycS6Fezj88wBiGaRv2e6+QN/QfojaDJaOrUb8xxwa0L8eQbp3WltGQ1tw 5Cng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715057856; x=1715662656; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lV76EE0lGVh0xzAlFnhOqZDL/IraInUMutR8RQKZJGs=; b=VgybktFM6ADGPtcTnVSvqF0yIZR0T1btvC8vy8kpnlUwC1qzL3VxiqTL42qZBiMwgd 4fKwe6mgT9PnoIn7adizxWW4zH3o5YKixmIKVD+lzQJ7WbQtoOkLMA66rndhjH+imEdz Rmhs0PCWDL74WEy/7sVe2RvANGLR2UMGhh3R9vttR7uBz67IqMaCKI+2SKGcUT2WlI3f YzCBURj5HBq7tbfGryH0SGGhDkUDGOh5ncRgYTs3tzSDNxACXIjggyDQVulBI78x6oqN 2Igzz7E8WFehdeQRclx0dTRA2pAoNxWWmlOhTtnbUa84C76rnzy2CQ8QoQepysyqpwA5 HE8A== X-Forwarded-Encrypted: i=1; AJvYcCUooODut85gaoNTSn4+ypr4hsRuDRTd5Phvlpv7DliL/jqXOohZPKVxa9+uhY9KtH5F3ni7ohNXDRt7WAU//wlzDyz/dBVl2mjPl6pJ X-Gm-Message-State: AOJu0YwSFQkbFgV8L1c2Szjr0QvhgFi6BoU9NeBNBRG/Zi6qqTUAVVtH WjTAxz6SpvVRIfeg6Jys8RK6z+fZ29KvrbTR8fUHkMAynTVvIbyk8dUFK/y0oOQ= X-Received: by 2002:a0d:d883:0:b0:61e:124c:e73b with SMTP id a125-20020a0dd883000000b0061e124ce73bmr11735126ywe.28.1715057855467; Mon, 06 May 2024 21:57:35 -0700 (PDT) Received: from [127.0.1.1] ([2601:1c2:1802:170:6870:7119:e255:c3a0]) by smtp.gmail.com with ESMTPSA id o14-20020a637e4e000000b005f80aced5f3sm8987249pgn.0.2024.05.06.21.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 21:57:35 -0700 (PDT) From: Drew Fustini Date: Mon, 06 May 2024 21:55:18 -0700 Subject: [PATCH RFC v3 5/7] riscv: dts: thead: change TH1520 uart nodes to use clock controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240506-th1520-clk-v3-5-085a18a23a7f@tenstorrent.com> References: <20240506-th1520-clk-v3-0-085a18a23a7f@tenstorrent.com> In-Reply-To: <20240506-th1520-clk-v3-0-085a18a23a7f@tenstorrent.com> To: Jisheng Zhang , Guo Ren , Fu Wei , Yangtao Li , Thomas Bonnefille , Emil Renner Berthing , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Drew Fustini X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715057849; l=4110; i=dfustini@tenstorrent.com; s=20230430; h=from:subject:message-id; bh=52sEPjDrM2eROoC2nwe3EiBnyP8Dcq8Rt5meeISouww=; b=HmEeRhWb790IkFfO3C5BC2jB3AYXLPWOY7mhRD44oal2XW7/ZwuGHe1i92UCCZqb4bhapFIyY XN1gFmAudK9C5BUsbr5GFCWbE0xZbA90aO1ILnVV4OMXti18mT5HORG X-Developer-Key: i=dfustini@tenstorrent.com; a=ed25519; pk=p3GKE9XFmjhwAayAHG4U108yag7V8xQVd4zJLdW0g7g= Change the clock property in TH1520 uart nodes to a clock provided by AP_SUBSYS clock controller. Signed-off-by: Drew Fustini --- arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 4 ---- .../boot/dts/thead/th1520-lichee-module-4a.dtsi | 4 ---- arch/riscv/boot/dts/thead/th1520.dtsi | 24 +++++++++++----------- 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index d9b4de9e4757..164afd18b56c 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -52,10 +52,6 @@ &sdhci_clk { clock-frequency = <198000000>; }; -&uart_sclk { - clock-frequency = <100000000>; -}; - &dmac0 { status = "okay"; }; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi index 1365d3a512a3..1b7ede570994 100644 --- a/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi +++ b/arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi @@ -33,10 +33,6 @@ &sdhci_clk { clock-frequency = <198000000>; }; -&uart_sclk { - clock-frequency = <100000000>; -}; - &dmac0 { status = "okay"; }; diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index e193f8d9ab8a..963c786f3c53 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -141,12 +141,6 @@ apb_clk: apb-clk-clock { #clock-cells = <0>; }; - uart_sclk: uart-sclk-clock { - compatible = "fixed-clock"; - clock-output-names = "uart_sclk"; - #clock-cells = <0>; - }; - sdhci_clk: sdhci-clock { compatible = "fixed-clock"; clock-frequency = <198000000>; @@ -196,7 +190,8 @@ uart0: serial@ffe7014000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xe7014000 0x0 0x100>; interrupts = <36 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_sclk>; + clocks = <&clk CLK_UART_SCLK>, <&clk CLK_UART0_PCLK>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -233,7 +228,8 @@ uart1: serial@ffe7f00000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xe7f00000 0x0 0x100>; interrupts = <37 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_sclk>; + clocks = <&clk CLK_UART_SCLK>, <&clk CLK_UART1_PCLK>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -243,7 +239,8 @@ uart3: serial@ffe7f04000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xe7f04000 0x0 0x100>; interrupts = <39 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_sclk>; + clocks = <&clk CLK_UART_SCLK>, <&clk CLK_UART3_PCLK>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -325,7 +322,8 @@ uart2: serial@ffec010000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xec010000 0x0 0x4000>; interrupts = <38 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_sclk>; + clocks = <&clk CLK_UART_SCLK>, <&clk CLK_UART2_PCLK>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -387,7 +385,8 @@ uart4: serial@fff7f08000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xf7f08000 0x0 0x4000>; interrupts = <40 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_sclk>; + clocks = <&clk CLK_UART_SCLK>, <&clk CLK_UART4_PCLK>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; @@ -397,7 +396,8 @@ uart5: serial@fff7f0c000 { compatible = "snps,dw-apb-uart"; reg = <0xff 0xf7f0c000 0x0 0x4000>; interrupts = <41 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&uart_sclk>; + clocks = <&clk CLK_UART_SCLK>, <&clk CLK_UART5_PCLK>; + clock-names = "baudclk", "apb_pclk"; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; -- 2.34.1