From patchwork Tue Apr 19 07:51:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 12817579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41C45C433F5 for ; Tue, 19 Apr 2022 07:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jmEtGQB6Smsp4ZHT+NepTwheBZg+nkCAXlG0qEHhM9E=; b=seLszJ7tDiQcq3 gDTtQ0EPxhmVNwePZ2m6427TVmXozRpi0qZQYTDxe5DDl8wnmUSLlTAS7q4LN7BF9K+380EXrciMI q3ExJG3WgbpCZht7nXsOvaKwUOFVzXCmMUgsnADhpelEUIohVCJwGpXG+OnsWnJVDozb8juwI3XZ5 EUeWXD5Ap6xaXdQoSH13T3P9wBQg67PmkcRw17a3EdUWuABhbJ7wBBBVTQbpX7YvMDS1SU2mf4bN4 FUkad13QpG9bu52xsNAhtZ2nuroG3zsKOSgfeSI9NzcS2G9KgKmZisfitMDgdRq3D1tnERBL4QPr4 lWOSkXTaBvTqM3I/Ss9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngiev-002Als-Ui; Tue, 19 Apr 2022 07:52:26 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngieo-002AhO-D6 for linux-arm-kernel@lists.infradead.org; Tue, 19 Apr 2022 07:52:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1650354738; x=1681890738; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7yEGglKynMcyHWuUSkM7xE+cnhYCihGyLD9i03cdWOI=; b=hR4WBRlHobG29j8/cxM0jtT3VTtViwWMcRjN+0nNeH4yr76br0k/E4uU PoAWYpUQZkBB2gIe3s8ukbz2h29ekSVO3UC5naSxB2vXgGG71iwDI6p12 RtbJAsmOA9BLzgcN/bXLwk9i/aqD0OipCDE6ak17g3Ve4lwiOd+FPu92p PiGrXNbaN0zqiaPIwid6rV5wN9Az9+IgoG/ZQKe6NbH58YLqQsCvbtHzm A79NuugNi5zOdVTzrpUtbXuE0h45VnHVnm3xcL2eDZ2uM68/Rx/Frf9Nb ahQ3Mv3DnXf5TGxQqxuj3+0kElt9CJIwvTXTjCQQW3/hOYMFADcn8zlhe g==; X-IronPort-AV: E=Sophos;i="5.90,272,1643670000"; d="scan'208";a="23348530" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 19 Apr 2022 09:52:11 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 19 Apr 2022 09:52:11 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 19 Apr 2022 09:52:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1650354731; x=1681890731; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7yEGglKynMcyHWuUSkM7xE+cnhYCihGyLD9i03cdWOI=; b=C923aVZHazZt1VbmGDV5zXNljBqwXpHb9nCbdY/HmyPTgdMTjNtgiOSe yL9zja1nC20qls+SUZ42tnLXT+peRj79bVTu10eqZ+XMW1JiNYWJFEEbu t/mduc+jGImdtwGxziEc7slR/8ICh5t0cOBXIXgCISXdwZuWeL0Tf0fAG obtdE7NDoC1OzqCNpZLicjnyLAkt2ktyLAt0h+pxyrh+sfpPi4nRAWD6C cJjNmx38s8/pK4WZsT5dlhpvxafVyed9QfyNASpAj+A2AOAlOMlOOrlMi UTRIGsSGL7ck4Afh99q/3ltXDsTpsNQ8XNQY5SOkZXw8WMaMl9Eevvxxv w==; X-IronPort-AV: E=Sophos;i="5.90,272,1643670000"; d="scan'208";a="23348527" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Apr 2022 09:52:10 +0200 Received: from localhost.localdomain (SCHIFFERM-M2.tq-net.de [10.121.49.14]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id 8CCFE280070; Tue, 19 Apr 2022 09:52:10 +0200 (CEST) From: Matthias Schiffer To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: [PATCH v2] arm64: dts: ti: k3-am64-mcu: remove incorrect UART base clock rates Date: Tue, 19 Apr 2022 09:51:57 +0200 Message-Id: <20220419075157.189347-1-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_005218_765425_A09332F2 X-CRM114-Status: GOOD ( 12.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We found that (at least some versions of) the sci-fw set the base clock rate for UARTs in the MCU domain to 96 MHz instead of the expected 48 MHz, leading to incorrect baud rates when used from Linux. As the 8250_omap driver will query the actual clock rate from the clk driver when clock-frequency is unset, removing the incorrect property is sufficient to fix the baud rate. Fixes: 8abae9389bdb ("arm64: dts: ti: Add support for AM642 SoC") Signed-off-by: Matthias Schiffer Reviewed-by: Vignesh Raghavendra --- v2: remove incorrect clock-frequency instead of using assigned-clock-rates to modify the base clock arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi index 2bb5c9ff172c..02d4285acbb8 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi @@ -10,7 +10,6 @@ mcu_uart0: serial@4a00000 { compatible = "ti,am64-uart", "ti,am654-uart"; reg = <0x00 0x04a00000 0x00 0x100>; interrupts = ; - clock-frequency = <48000000>; current-speed = <115200>; power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>; clocks = <&k3_clks 149 0>; @@ -21,7 +20,6 @@ mcu_uart1: serial@4a10000 { compatible = "ti,am64-uart", "ti,am654-uart"; reg = <0x00 0x04a10000 0x00 0x100>; interrupts = ; - clock-frequency = <48000000>; current-speed = <115200>; power-domains = <&k3_pds 160 TI_SCI_PD_EXCLUSIVE>; clocks = <&k3_clks 160 0>;