Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8317785ybl; Thu, 16 Jan 2020 14:30:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwEXT9P71VNEnDZj9U3NjWQL+XctfxzxGVJxO2TLXIimNY6q2pXaOmP8Vs5ccI+4Kn+aDs4 X-Received: by 2002:a9d:7305:: with SMTP id e5mr3847355otk.64.1579213855179; Thu, 16 Jan 2020 14:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579213855; cv=none; d=google.com; s=arc-20160816; b=gexsSB1r8cJ3y8hA6p5+sBbakGDaHXSA7hvixNEcJpSywbZiefYpjBx2+wK5ms6KwR Zi+w5+uptNcrgS5RvDBXUdzTUzUaJfj4rdojU7yJJS6fzS5+V2Fh/NBq9qGUj2jtImFZ gqEDseAozy0pqPdYYYyRlxRpZKnQLzeVkN8OnPCxh8AYVyo/o/wl8CV/W2bHmr2XjZEC 5r3cvfaJeQN48HgVIGG6GOkiA/wOR8wC2+DFXwj7KDgKEFMH3G9+l08nLmt5ZQLshf7v 405V/pY1CVwoP69XzmgFlddFjmbFc0V4eFCLB19aFvTdsOIiXYm7nrhH8gLyEL7scihF vnFw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bt4L+XOti6Fz+aioU8qyHfN3N9PcC0s3VIb8GgSs5ec=; b=ugrgBl2lhSSIg3vz+TpcyryYd1SEwroOBfSv9K7Kt/kqq6SQGrWrZy1/oY/DQ7zglA +AqjGbPtp26NfWqMoQm2LujjNVD5ls+tDwZSD2qrINKLQHBogj82UiMv015yeTyCdrdZ +l8COGEF2L3Fp3m8S6f9hx2K/LSPuRFfoZ6W+H9FJEyfEXjoNdHisxMBYurB8tm9mSSi fnXwwyO6BeJDsioivR/Eum9VLI8dpprKefZrQlf1DFlJR27CjrI40HL26lJUJwc8vIEh x8gBrqdaHl3SUrM1TiiLjeND/Yp8uEG609mMoOe8trkaO2HUKTEuQGEHVnzVQyg3sOI9 gH4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AVZ0FyDw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si4264543otp.219.2020.01.16.14.30.43; Thu, 16 Jan 2020 14:30:55 -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=AVZ0FyDw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393966AbgAPSAX (ORCPT + 99 others); Thu, 16 Jan 2020 13:00:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:59742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405799AbgAPRlu (ORCPT ); Thu, 16 Jan 2020 12:41:50 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E405E24695; Thu, 16 Jan 2020 17:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579196510; bh=sgOoolRsRLW4pkiLoqF6nOV5AmgG6FrkopMUr9rx9Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AVZ0FyDwyMvb0fDqQ/aMqhrhSSj8PNuItqlRx87z6zVMMT1o9E+YP1oUUduMvSqPA nk1u4xtOclTdOyncTnAiLxXllbRGXPno4WTLfE+o5I9aFWLLkS9HMeyn8jDTWora0T kJ7S0tWWiabz1fsnoIczXifIJe/kfqmBwevODtUg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andre Przywara , Liviu Dudau , Sudeep Holla , Sasha Levin , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 249/251] arm64: dts: juno: Fix UART frequency Date: Thu, 16 Jan 2020 12:36:38 -0500 Message-Id: <20200116173641.22137-209-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116173641.22137-1-sashal@kernel.org> References: <20200116173641.22137-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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 [ Upstream commit 39a1a8941b27c37f79508426e27a2ec29829d66c ] 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: Sasha Levin --- arch/arm64/boot/dts/arm/juno-clocks.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/arm/juno-clocks.dtsi b/arch/arm64/boot/dts/arm/juno-clocks.dtsi index 25352ed943e6..00bcbf7688c7 100644 --- 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"; }; -- 2.20.1