From patchwork Mon Jan 9 13:35:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13093603 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 90779C5479D for ; Mon, 9 Jan 2023 13:53:43 +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=Ah9pXTS5HW6UePPB/nTso8hU3HkC+Xt8UoTJaGOnTO0=; b=Y8YKgHUbP0TV8U kIsSBC4KcwehgtO72uI8JCRaqSBykJ+1jsE+SRug2lgFGaccv3aMSICZZlEnD5WFBU3Ju2xxsZqRj q2fyvtSRx98dXYUGRJ8FhsMfJ/10arJV/qzqwzc95HxmZr8RPr6CQRU7IC25tKVbJQplNbrT76/iL E6WInSeuwQKtbQ8SWfvbVw5P3mgdug/ELAVoKP1UgZUey83P4wNl4k1PRujvN/0PfSEww/BHPWumt MAUuI5c1JnarhFZtJ40GmnXNmGz4B12KdHpu0eCmFbZUuJZy1mY5eNKWi3nZrUVjSTZoUVdC4keB+ CBVxyYcKVXNKzh++2eFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEsZY-001jvr-3e; Mon, 09 Jan 2023 13:52:21 +0000 Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEsJn-001djX-Ss for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 13:36:10 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed10:c32c:cc7a:25f1:127a]) by albert.telenet-ops.be with bizsmtp id 6dbq2900K2RK3VH06dbqam; Mon, 09 Jan 2023 14:35:52 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1pEsJY-001Lky-BH; Mon, 09 Jan 2023 14:35:50 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1pEsJa-00EOnj-56; Mon, 09 Jan 2023 14:35:50 +0100 From: Geert Uytterhoeven To: Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH] arm64: dts: renesas: eagle: Add SCIF_CLK support Date: Mon, 9 Jan 2023 14:35:48 +0100 Message-Id: <7dddaa362945118deab534ccfddfc0870abe8526.1673271243.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_053604_293206_E54FBCC0 X-CRM114-Status: GOOD ( 10.08 ) 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 Describe the external SCIF clock crystal, which can be used as a clock source for the (High Speed) Serial Communication Interfaces with FIFO. This improves serial console accuracy from 115200-257 bps to 115200+0 bps. Signed-off-by: Geert Uytterhoeven --- Tested with a remote Eagle. To be queued in renesas-devel for v6.3. --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts index 004a5eacd460da95..405404c0843d9747 100644 --- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts @@ -287,6 +287,9 @@ lvds0_out: endpoint { }; &pfc { + pinctrl-0 = <&scif_clk_pins>; + pinctrl-names = "default"; + avb_pins: avb0 { groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk"; function = "avb0"; @@ -316,6 +319,11 @@ scif0_pins: scif0 { groups = "scif0_data"; function = "scif0"; }; + + scif_clk_pins: scif_clk { + groups = "scif_clk_b"; + function = "scif_clk"; + }; }; &rpc { @@ -391,3 +399,7 @@ &scif0 { status = "okay"; }; + +&scif_clk { + clock-frequency = <14745600>; +};