Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4827304ybl; Wed, 22 Jan 2020 05:29:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxAeU5ZZLWfU/4G7Y37aOQTmhz2qF3cAxwYlcOQRqu/ZTPZfc0nMc35lbfAvqMbqW2YtHFm X-Received: by 2002:a9d:5c10:: with SMTP id o16mr7648137otk.286.1579699764358; Wed, 22 Jan 2020 05:29:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699764; cv=none; d=google.com; s=arc-20160816; b=FAggkRmrkmtEf7EyKNyotBffdatJgWyQ8Sxbbi+Dwe/s7iW+qM0QnoD1+8xvgPsiKz GmYc0zZcMc+htdKgeX58yEtvJdsacp5tBKSbwlngBBZ9s02zWmIkIZWIGNptbLKqOKAa /Mu4MNFIf3C/JxEI0snccX/jDFCB0RTojzvmO8nWKFPt77MaskvKeRVSLSO3Cf73bQ4b KnK2xqJR/8bYiHmnzNjx6+/nJ9zgHUzQlIz+z/07Lmgt9bxDDIoM/TlZ6bmQY3/PI10W lGSh3L4HPQ37nw4r4aJtriltcWVl2oakoOoQAWnfmrELQ3vWDhTcbGnf3vQitWOheoqC ey8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zvXtNQBThTfnaneIAegm6CwKwBLyKetvwOrVUZFDKdg=; b=hIo2m4sFJMmekFqs3JlYl2CUEob/f3dDqn6yFMRN+LChdLhQ2u3EVBLMXvNVg/G43S 7Du0iHCLU+QxigvXKDdc/3nwh/5W7BNBaFWm2O60t+wfqH9KMiMQb7IIm8/frVzffRS4 1P0JrTggCMNggrYo20pYLFeGRC2Dsfqj/hLOoQKXTKnN4fmwXB5uQ1qNvw49sGEUy/K3 UTPenn3En39s+twNgU05EOxLov387HZabeIOVlB/orJwJ/o4WcD5wCI4LKR5ykjXBQRZ KfRnZWX3uePt25NnqPhEV9PzqwFH5akkWP9uBNm8Ud36hHmBIRhzLHqDk7EI/8gmsWps KAsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wn+Zg1xJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si25479765otn.297.2020.01.22.05.29.12; Wed, 22 Jan 2020 05:29:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wn+Zg1xJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731342AbgAVN2D (ORCPT + 99 others); Wed, 22 Jan 2020 08:28:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:49912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729085AbgAVN2C (ORCPT ); Wed, 22 Jan 2020 08:28:02 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 07029205F4; Wed, 22 Jan 2020 13:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699681; bh=xDfirEVkKa3S5RImQWGG1TGOLnNlHUP/nL7HMGpbgog=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wn+Zg1xJ3NZ/FSWiePjz+bbcapMuWo590O2ujagrliZ8nDoDfAHXIUKVb8/WJgBCB Xm7ouWrqB1cyycs6LCCTe+rhXdWDDXrvTSucT8lEckUcqf9y7dGwVFz5UDVjmnpcAL yMwk6SmNOyCDxxdq+08dXUWthhxcqKX4LwiBIV64= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Przywara , Liviu Dudau , Sudeep Holla Subject: [PATCH 5.4 190/222] arm64: dts: juno: Fix UART frequency Date: Wed, 22 Jan 2020 10:29:36 +0100 Message-Id: <20200122092847.285024823@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Przywara commit 39a1a8941b27c37f79508426e27a2ec29829d66c upstream. Older versions of the Juno *SoC* TRM [1] recommended that the UART clock source should be 7.2738 MHz, whereas the *system* TRM [2] stated a more correct value of 7.3728 MHz. Somehow the wrong value managed to end up in our DT. Doing a prime factorisation, a modulo divide by 115200 and trying to buy a 7.2738 MHz crystal at your favourite electronics dealer suggest that the old value was actually a typo. The actual UART clock is driven by a PLL, configured via a parameter in some board.txt file in the firmware, which reads 7.37 MHz (sic!). Fix this to correct the baud rate divisor calculation on the Juno board. [1] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0515b.b/DDI0515B_b_juno_arm_development_platform_soc_trm.pdf [2] http://infocenter.arm.com/help/topic/com.arm.doc.100113_0000_07_en/arm_versatile_express_juno_development_platform_(v2m_juno)_technical_reference_manual_100113_0000_07_en.pdf Fixes: 71f867ec130e ("arm64: Add Juno board device tree.") Signed-off-by: Andre Przywara Acked-by: Liviu Dudau Signed-off-by: Sudeep Holla Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/arm/juno-clocks.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/arm64/boot/dts/arm/juno-clocks.dtsi +++ b/arch/arm64/boot/dts/arm/juno-clocks.dtsi @@ -8,10 +8,10 @@ */ / { /* SoC fixed clocks */ - soc_uartclk: refclk7273800hz { + soc_uartclk: refclk7372800hz { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <7273800>; + clock-frequency = <7372800>; clock-output-names = "juno:uartclk"; };