From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (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 A15E3C43458 for ; Wed, 1 Jul 2026 22:48:20 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wf3ie-0001gO-M5; Wed, 01 Jul 2026 18:47:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wf3id-0001fD-DG for qemu-arm@nongnu.org; Wed, 01 Jul 2026 18:47:47 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wf3ia-0002Zo-W9 for qemu-arm@nongnu.org; Wed, 01 Jul 2026 18:47:47 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-476a130c138so1110593f8f.0 for ; Wed, 01 Jul 2026 15:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782946062; x=1783550862; darn=nongnu.org; h=content-transfer-encoding:mime-version:content-type:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=CF6aqiLW//pEasDlZ1FiMneWrrUaakDRnwqxP1YKszk=; b=L8Upn7qkGR7SwmiLPA8F8tEQ4qaShpq/JkiVtfeMotG3qFcrT+vaTsX5sq1/PwLnid XogDVTzWHEbo6d3jTNZjaI2q1dyO1ZVThzg6m1O4N5YLaty5WxfE3hwXIfSaRR6m+ogG z9F/3GK+S7hm4AeUlsSLjm5DprW7JK02tpZXKdx6d67vBp3LL3fwZWkh7gULVPNiMXJC QZUXFXRAwcPqWqtOwvXofzg/N8jGEMjKaOpa6CueKd5iGJPlmGIKnRy0xnjaPbBm3+kK 5YUkNLQHDRd2kLLAbOQHZr4u/gBEqCFpP72xx6qd6U/rxc8rQ3HZMNo9REBONVjl3MTv 3c6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782946062; x=1783550862; h=content-transfer-encoding:mime-version:content-type:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=CF6aqiLW//pEasDlZ1FiMneWrrUaakDRnwqxP1YKszk=; b=rkZpzIY2eH26bjNGdMpScIDLlvgwINv7ZdESrx2/66qjQcdpm1QOR/LV2PNsN3rR6G PP6/1gYihdgxXjuBiDgEjYXXT4WY/Wf7B/D0VnBgDOpYRsPChkj0ycINdbPQ9Ab6fUEF 8FEoSbo+fZdibjkRp3T5mZLfyxNqn1jo599IkFBarmPWgEtiO7MiT+EDjFx6jhJ7MoHa Bu0nYcs+vx3h4bS8KBTSLTnDXblGLfkGBtYiAINxjpBQ5KL7xVuVn/0HtHIkz1W91Hd+ uRmVC6tl4QIYYWwdFXSrIru7vVmi5cS1ZKoEtmyC0iA93vuLnO6hbjH/aR71k9oAqy51 XPzA== X-Forwarded-Encrypted: i=1; AHgh+Rog7JU9OpszEiv9HagDQDPzQyYjjiOYuecdfTOHGsllsLw31GB6xxMyLameJkOaW/Hqd5bvL0jZGQ==@nongnu.org X-Gm-Message-State: AOJu0Yxibu/rqYAX6xnabxp2SaAZ0nAPW0DP653jTPSuHR1hagDUmzKd AasFfPg7Gu75jdUGStnKQ6fKFy7/6yMcmTorhLkg3DG7KiVs07qScVaG X-Gm-Gg: AfdE7ckK5YryTO5z7BiHc6MAM8Kb4KzZd/nuKESmODPZalO1XuLympVGhokyrQzl7uA x4UppXVzDafSVlSx5JSGxmqcdzeYff2f8lsI9pRaOo4/xGSe1j4HRlrwndkeYIxDWjaK3dVC5zb uG/tV+PFfVLWldjKne3QhQASUC2ObDvECYYwXUvgSGIIDwWOg0N6jwkgmwv9ZJ4sPMXYQPPIsiJ sBkc09rs7fS1i1JdPUG1HWJQn3b2eJiAckZLXVtmFUozaymlElJKlR4KyGQekuuPMSnNEvDo74q CZaG/qaVqhb5keTq47WcaOT+VN07IFAbTTSaNMjy4e4+U6/LNKoCGkehzA3UaQUIXDqZzn1r6CC eQ4/E5Ezq2sYDnjyVS97w9fTakm+CufuEHBWNYAk7On1DAglwe7/tzkHA+jH7TOIHyp7DjlTKYo wW6xWCDFYEclE+Cb99mjnFS8mfPYza46NfeiEaZ58w7mYjxEv0fNtLdzCrHbuxyYzH0L2N0iko8 6SIZctw0UYRPyjd0naaRycnT9wtoup5li5Q X-Received: by 2002:a5d:5f56:0:b0:470:390c:1e73 with SMTP id ffacd0b85a97d-477b39839cbmr4078896f8f.18.1782946062264; Wed, 01 Jul 2026 15:47:42 -0700 (PDT) Received: from Provence.localdomain (dynamic-2a02-3100-2d44-b300-0219-99ff-feb2-2458.310.pool.telefonica.de. [2a02:3100:2d44:b300:219:99ff:feb2:2458]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-477db3dba0esm3178614f8f.7.2026.07.01.15.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2026 15:47:41 -0700 (PDT) From: Bernhard Beschow To: qemu-devel@nongnu.org Cc: Gaurav Sharma , Bernhard Beschow , Pavel Pisa , Jason Wang , Francisco Iglesias , Peter Maydell , qemu-arm@nongnu.org, Matyas Bobek , Jean-Christophe Dubois , Vikram Garhwal , Paolo Bonzini , Pierrick Bouvier Subject: [PATCH 0/4] hw/arm/fsl-imx8mp: Add inital FlexCAN support Date: Thu, 2 Jul 2026 00:46:08 +0200 Message-ID: <20260701224612.48342-1-shentey@gmail.com> X-Mailer: git-send-email 2.54.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=shentey@gmail.com; helo=mail-wr1-x433.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Now that FlexCAN emulation is on its way into master [1], let's add it to imx8mp-evk as well. While the real i.MX8M Plus supports CAN FD which isn't emulated yet, the non-FD mode works well under Linux: It is possible to use `cangen` and `candump` either way on the host and on the guest, as described in docs/system/devices/can.rst. This series consists of four patches where the first three are preparations. The last patch integrates FlexCAN into the i.MX8M Plus SoC and EVK board. It would be nice if this series could make it into 11.1. Based-on: cover.1782140438.git.matyas.bobek@gmail.com [1] https://lore.kernel.org/qemu-devel/20260629120032.1645265-35-peter. maydell@linaro.org/ Bernhard Beschow (4): hw/net/can/flexcan: Subclass TYPE_CAN_FLEXCAN hw/arm/imx8mp-evk: Open code DEFINE_MACHINE_AARCH64 hw/arm/imx8mp-evk: Introduce FslImx8mpEvkState hw/arm: Add basic FlexCAN3 support to TYPE_FSL_IMX8MP and imx8mp-evk docs/system/arm/imx8m.rst | 1 + include/hw/arm/fsl-imx8mp.h | 8 +++++ include/hw/net/flexcan.h | 4 ++- hw/arm/fsl-imx6.c | 2 +- hw/arm/fsl-imx8mp.c | 37 +++++++++++++++++++++ hw/arm/imx8mp-evk.c | 64 ++++++++++++++++++++++++++++++------- hw/misc/imx8mp_ccm.c | 3 ++ hw/net/can/flexcan.c | 61 +++++++++++++++++++++++++++-------- hw/arm/Kconfig | 1 + 9 files changed, 154 insertions(+), 27 deletions(-) -- 2.54.0