Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp847412pxb; Fri, 15 Oct 2021 18:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEKZaULdjcBY6u4SKzc1pA2/y9J2yPUzlSH8LVwSalECmQ9C4fbvngno09PmIuVm4eHU9E X-Received: by 2002:a17:90b:3ecd:: with SMTP id rm13mr17228013pjb.189.1634346147300; Fri, 15 Oct 2021 18:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634346147; cv=none; d=google.com; s=arc-20160816; b=gS4E+DdVhK+F0+MZUVbLMxmqRiH7mwYuZE07qQXIvNau6bL7U6ZYjBWjM0tT9V8k/5 6l1u0oedwCzKGYzXkLshJg42CY+UvMOZzttTUOXjILC+yyxok6LkqU01H+wWusQUNCPL pzeoKgGnl8yidwb3hYf18VGt4l9j4LT/ajDckmyAR9PpalgfsS1/osaR0Z+iGNcGB1Cs pm8cGvHJnSNc92Ppyq3qoD142WAiY02L+AKQc4aNH0YF/WoPSIOZoCx+2udEF+dn562e BsGoMqiuuOcCMYqgWwZlR6olHksGP4Xmou/MUCI/RNgs2TA39hgrlsmmSJ0jy5R3rYed r50Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vtolzEmWYzx1NYsPin3VsKIQZeb2yk9gnCRf2QcYdHc=; b=bXW/Dt/28lmBdMBrj+s+L4/lNPRouwSSvN7vy7K3iR4x7TY2Gm+As2V35qCXcRayjV KBCHXu+p3AaRnKITDZL31PvasXb+p0pS4yLj/jDI+HB+FWsv10czzzxzs0aJX9nHH9WZ tG8dsm3KGcRyZcLc6qIFKJ/8ab+9uLZLqN/NrMs8vK6/ZjYakT9pWkbxZEbM2vUkILKT rVQffz0Tbo4o+N7Nfyz9EQixa5Y2m6pz/3OJ8bDkstobt66qeyj7+xjsNdXLXVpjkEZ9 XM2zHF2T37GImmCY3R/mA3X+KFpuw+HQiN0TiU8BC2xxqonwZpMJXsoD1WWwmHZhEIxm DYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=dxCOAg6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i31si9698337pgm.9.2021.10.15.18.02.15; Fri, 15 Oct 2021 18:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=dxCOAg6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239050AbhJOMvo (ORCPT + 99 others); Fri, 15 Oct 2021 08:51:44 -0400 Received: from mail.fris.de ([116.203.77.234]:38838 "EHLO mail.fris.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239100AbhJOMvj (ORCPT ); Fri, 15 Oct 2021 08:51:39 -0400 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 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; }; -- 2.33.0