Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2506520lqp; Mon, 25 Mar 2024 00:11:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVo5RRdkOhvExqIg1KpIy4DM8izkqIG+8Vl5jtgUhMWkfRP8/ARcfxca9z2s1U5KLDuHSj3NtAD1lMZfDCSCbi/g3jV6XM6MYqudZ0hcw== X-Google-Smtp-Source: AGHT+IGO8fOpXAuG7S6eIRj2fy0Krd0rxn3yu//w9IEb9hwm36o4WSR/yMUxg046U82CoJYDB+oY X-Received: by 2002:a0d:fd46:0:b0:60c:caa2:6707 with SMTP id n67-20020a0dfd46000000b0060ccaa26707mr4920652ywf.8.1711350717188; Mon, 25 Mar 2024 00:11:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711350717; cv=pass; d=google.com; s=arc-20160816; b=hOC4FGbJRhqHCIRQcYcG75++hY/B5osTcXd/MPZuso3Ssg+5mTMV2QBRiqnMi2U8ZC /A7X80kb2r26wlZR0xgAdt7MZjyilfNoqP5OKvFhLa50Tfvdo7Kvuo/+pYq1qSGjCgSg 0eTsMVC9cGrZ5Fx9MkEPA+rQ2Cmbn2mYQ4Dl5q5w9euDoB7MEvu/g/oRE9seWYTXhWb8 SoowI0la8bwnI3BRrJTiqUXFiF35hPGjvRrgrL5d6seSowj7bd33Zgu87H7WBHeKrwm1 upNrrxy1AheXc8nCkT2FaI/DsSVghJr/jRLEj3rBWDjIs6PKIvNhAgUXEOMYWuJF8d5+ JPsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Me+8/TK4mfm1qJmZYaYq0nMRXJ0aeHGD/uxEeeJtpAA=; fh=b7ecMh/N4gR6Y4Usq7/9x+sYt08sY6mSKLusFy26Ppk=; b=maiy8uhWjQgKjvjB4l02chsSI16q1SfdLRdVHNPsoAjCvdB99nTfZgGJkcz+Sm5rOi NDm33rMAAWegUof9DCG4anpwk0H/EdLrm+q+F7pj38PjZV7qicZjBfirH9c0rjAqE8mU QDsMbSP9rd1qek+1p29iXPl/tuBdixO2KUspBk3kPROSNRJmT68U3TtV3oXe6ITFUL0a Cgayhl6PG++BvPUDvcAtj5Cn4h2P02VjRb9gVzumO0p25MBo++nD+qr2ddWs8W7stXHD hn/a3tfeklivpLVU1AI2Mw/42CLiP7Z+wz9dReWEHbp3FiE8DVk2HzIJxVrirrpUCntI j/hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTo2cz4C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cm11-20020a05622a250b00b004313c93978dsi4973229qtb.797.2024.03.25.00.11.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 00:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTo2cz4C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E3EA81C29A01 for ; Mon, 25 Mar 2024 07:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABA5C2DE233; Mon, 25 Mar 2024 00:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XTo2cz4C" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 128932811D2; Sun, 24 Mar 2024 23:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323678; cv=none; b=PJV295vLiXNtkV2dXFiBvcFKdpq7+5kCLn31jKz9ZPUq6zRI7lNtfwmH7VgJIEbZV4eqOFH2lwCJNAP7uA+0El0XxoBR9AbrmvggCZa2gi0wkr8grR1csCisTQHK8PjbtHY6KFtIMvueJPFvR0IZJIxcB3qvRJxgH58XsRMIQng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323678; c=relaxed/simple; bh=ATb1YtUcp7NvYmx4HjbB58j2NBFLq651YIr/cfDjZ2Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UHs2eox909DExnAPdNPAZAaTOIgSBOiq1QcudAZ5GuUW4nmCZhcjoaVn297ZbW2csBN58k1ZiWdtc3tkGKCVVk7iMn2q1X1FA2SqUGCY9jSNF1AMzhE+JpReLXqTnR96kxoKZjsWQjryGPfHOz5ZDa2iwzw9+QrsYxEohCYhCy8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XTo2cz4C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 528D1C43394; Sun, 24 Mar 2024 23:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323676; bh=ATb1YtUcp7NvYmx4HjbB58j2NBFLq651YIr/cfDjZ2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XTo2cz4CepZh4/QJ1jNhWq/HWW1rI9SIz3UeiyDQsuQpp6QvFgkpP6QDvUMHlsiJ9 11MEnR8YSkuP96dLAfVn/tfm4Z14tdBJUuXcRwmQJ/6jhKkEGpwprK/DsHNmyajWuc MfhSuBYsa+11ecIMfPS5XwQdX7BX3gg7xKUM7pyvFhIn87wiPIqwvFfB8XOrh19c0e gemDy3mtGoWscOWsbVZubBPaFKP8J+VHDritKniQo6j54D+RC/aKNUkdGt87nReo/5 lE30buOKfPJ/Z5AebVqzaLuG4Vb7YYCSK6nxPS3F06BImsLh8zQkt6p0srGRPm4bve GBbCDqJ2b0sZg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Geert Uytterhoeven , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Sasha Levin Subject: [PATCH 5.10 049/238] ARM: dts: renesas: r8a73a4: Fix external clocks and clock rate Date: Sun, 24 Mar 2024 19:37:17 -0400 Message-ID: <20240324234027.1354210-50-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> 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 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Geert Uytterhoeven [ Upstream commit 090c4094574705b0afc7d37825cdc5d06f0e7e02 ] External clocks should be defined as zero-Hz clocks in the SoC .dtsi, and overridden in the board .dts when present. Correct the clock rate of extal1 from 25 to 26 MHz, to match the crystal oscillator present on the APE6-EVM board. Fixes: a76809a329d6ebae ("ARM: shmobile: r8a73a4: Common clock framework DT description") Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund Link: https://lore.kernel.org/r/1692bc8cd465d62168cbf110522ad62a7af3f606.1705315614.git.geert+renesas@glider.be Signed-off-by: Sasha Levin --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 12 ++++++++++++ arch/arm/boot/dts/r8a73a4.dtsi | 9 ++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index b088e8e351d54..1028f721b38b0 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -208,6 +208,18 @@ &cmt1 { status = "okay"; }; +&extal1_clk { + clock-frequency = <26000000>; +}; + +&extal2_clk { + clock-frequency = <48000000>; +}; + +&extalr_clk { + clock-frequency = <32768>; +}; + &pfc { scifa0_pins: scifa0 { groups = "scifa0_data"; diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index e5fb1ce261f72..bcde8d1005976 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -494,17 +494,20 @@ clocks { extalr_clk: extalr { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <32768>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; }; extal1_clk: extal1 { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <25000000>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; }; extal2_clk: extal2 { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <48000000>; + /* This value must be overridden by the board. */ + clock-frequency = <0>; }; fsiack_clk: fsiack { compatible = "fixed-clock"; -- 2.43.0