From nobody Fri Dec 19 20:13:31 2025 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 27C5A292B99; Sun, 24 Mar 2024 23:50:56 +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=1711324257; cv=none; b=sYPBybo4+CDQKeri2xOAU2twfNIN8+hOX7qjnN8KlWy8zEjMubECkJGfI1V/VSsyKBrx9/EmKpa8mKhKPWAu31gQd+q+nFKP3eYDAWbkStGWLs6MZhUbC83lTYjN3Z38PGR6YuVrMFSBbwlqJ9qiO63FF4Eh48wIhosrFiCWeFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711324257; c=relaxed/simple; bh=nF8gTecMHJ28MLnw2KqbYOA6uuPsOhH922znxV+wWrY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b5u7luy0lCcg+f8o6GnPHmOs16JJTL5IdfIz8Y/BCZ2DEjSWlWULsCFMwBqFxjZDs+tLZMQu/fABB6YG+T00e5jrNcoXE/xB3iHAZfQ8Ae9xQQPLIpe2Gru1EdFS0L5vIeHVk2m5ZrXtKvnCt2KQkOIhy5j7P2ci+ZjEmBOmQtQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Akq55MEu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Akq55MEu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15407C433F1; Sun, 24 Mar 2024 23:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711324256; bh=nF8gTecMHJ28MLnw2KqbYOA6uuPsOhH922znxV+wWrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Akq55MEuFkoWK/MWpaH/985nXOmA1k3XYtFG/5NOMAF2UCt0lMjhnfmVUdj+R7CXz EOJVv21KGII3jys0of+D0bvMvRew97K+2pcst4J+9nQdWEQz/3x02TTDOuHR0WrbDF t0MBKZLOGsGUvr2ehvxoaixH7Ly5oOqs55aEseb8270hBEoCKeiHh3L6rpsyHHvtlN QxZolg6g2lTVDTAo4wNDiJU60lZoYIpY4ed8+77bgyofwPlBr5BkiDzxHmZhURNn1O T61or+lf6PRoRuVwmsyEzSHW3e2znRdmplcNtoGOmQqw1t6My4Oie1MyOwkW97Vecx CtftkcROU3ZEQ== 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 4.19 036/148] ARM: dts: renesas: r8a73a4: Fix external clocks and clock rate Date: Sun, 24 Mar 2024 19:48:20 -0400 Message-ID: <20240324235012.1356413-37-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324235012.1356413-1-sashal@kernel.org> References: <20240324235012.1356413-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: quoted-printable 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=C3=B6derlund Link: https://lore.kernel.org/r/1692bc8cd465d62168cbf110522ad62a7af3f606.17= 05315614.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/r8a7= 3a4-ape6evm.dts index d530f451467e2..c077a7c1874a6 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -184,6 +184,18 @@ &cmt1 { status =3D "okay"; }; =20 +&extal1_clk { + clock-frequency =3D <26000000>; +}; + +&extal2_clk { + clock-frequency =3D <48000000>; +}; + +&extalr_clk { + clock-frequency =3D <32768>; +}; + &pfc { scifa0_pins: scifa0 { groups =3D "scifa0_data"; diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index 4447f45f0cba9..48121ef690c9d 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -494,17 +494,20 @@ clocks { extalr_clk: extalr { compatible =3D "fixed-clock"; #clock-cells =3D <0>; - clock-frequency =3D <32768>; + /* This value must be overridden by the board. */ + clock-frequency =3D <0>; }; extal1_clk: extal1 { compatible =3D "fixed-clock"; #clock-cells =3D <0>; - clock-frequency =3D <25000000>; + /* This value must be overridden by the board. */ + clock-frequency =3D <0>; }; extal2_clk: extal2 { compatible =3D "fixed-clock"; #clock-cells =3D <0>; - clock-frequency =3D <48000000>; + /* This value must be overridden by the board. */ + clock-frequency =3D <0>; }; fsiack_clk: fsiack { compatible =3D "fixed-clock"; --=20 2.43.0