From patchwork Fri Oct 15 12:48:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12561411 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29B90C433FE for ; Fri, 15 Oct 2021 12:52:24 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E27C260F56 for ; Fri, 15 Oct 2021 12:52:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E27C260F56 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=fris.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:References:In-Reply-To: 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: List-Owner; bh=jcrbGBFm6fKnizdON2Xs6VYM1LyFxOxwqkgoswExPj4=; b=MF7UK+i/JnkYfH V3mkWS0110RILXFYVwbv6jOu8kwOHXYk+J/N9HgCZ+aqQZXghERgX0B8vyMsB1/RRSpjw77KbJg9t /bvDYdqEXBGBgS9ALlrjbBGF7jS9hPVycDzizKT7BGl+q7sjElTF5M8yU5XyS1ZAThiqScjwgPJBU zitSOLCdS+uJEsNKLxP3Hz83vh1jHsndvWu/LZt+8qeYTrvfjChE5Y97XyyH+yY9FRgTJqAfv832A ha5IikInrNWK6fA4E4KW9LgTohhnC98tSTBXQauLHu6xDp3xHMZXNEWuphCqd4FRgPKz+bZKPny6r 3nm/HnheL5iCSHlaZ3Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMfa-0070kb-Aj; Fri, 15 Oct 2021 12:50:42 +0000 Received: from mail.fris.de ([2a01:4f8:c2c:390b::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbMeS-0070Ei-3w for linux-arm-kernel@lists.infradead.org; Fri, 15 Oct 2021 12:49:33 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 240C1BFB10; Fri, 15 Oct 2021 14:49:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1634302169; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=vtolzEmWYzx1NYsPin3VsKIQZeb2yk9gnCRf2QcYdHc=; b=dxCOAg6i7fFuDQ2K7rIcl6+RRwIPhGldD4ZkCjH8LvtGq3a0ycC3ZW8N9xu5hXMZukU41V cxvwLKJ11bEHPGT5/l2hw3cq/yJ+mSiO2iisFe+9O7UovYJg4xrVFTH035V4F0quEyviWv 8VtD+4JtAKvRM0SyEvHWoBpS4nRMYNF5pger1ZAwMsSa7PbeU5Ck55DKxF4bI8MYNzS4pn cAaVIURO32+s4OfE3stm84Mo9tXosV9vhlgvb1w+uQ5Sq+cT1MxyU43yPimsofultE+1vs U8JIYvCjWkMW6KsTiQM9kFFEPgfXiaw6JHwzjTju93Q/SsCXO5Ow5jYkB4+t2Q== From: Frieder Schrempf To: devicetree@vger.kernel.org, Frieder Schrempf , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: stable@vger.kernel.org, Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH v2 5/6] arm64: dts: imx8mm-kontron: Fix CAN SPI clock frequency Date: Fri, 15 Oct 2021 14:48:39 +0200 Message-Id: <20211015124841.28226-6-frieder@fris.de> In-Reply-To: <20211015124841.28226-1-frieder@fris.de> References: <20211015124841.28226-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_054932_364527_D767251A X-CRM114-Status: GOOD ( 12.70 ) 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 From: Frieder Schrempf The MCP2515 can be used with an SPI clock of up to 10 MHz. Set the limit accordingly to prevent any performance issues caused by the really low clock speed of 100 kHz. This removes the arbitrarily low limit on the SPI frequency, that was caused by a typo in the original dts. Without this change, receiving CAN messages on the board beyond a certain bitrate will cause overrun errors (see 'ip -det -stat link show can0'). With this fix, receiving messages on the bus works without any overrun errors for bitrates up to 1 MBit. Fixes: 8668d8b2e67f ("arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards") Cc: stable@vger.kernel.org Signed-off-by: Frieder Schrempf --- Changes in v2: * Fix the commit ref in the Fixes tag * Improve commit message --- arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts index a192a047f264..14263cd40daf 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-s.dts @@ -97,7 +97,7 @@ can0: can@0 { clocks = <&osc_can>; interrupt-parent = <&gpio4>; interrupts = <28 IRQ_TYPE_EDGE_FALLING>; - spi-max-frequency = <100000>; + spi-max-frequency = <10000000>; vdd-supply = <®_vdd_3v3>; xceiver-supply = <®_vdd_5v>; };