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 B6EECCD4F24 for ; Wed, 13 May 2026 10:56:41 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wN7G5-0003HZ-CO; Wed, 13 May 2026 06:56:11 -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 1wN7FS-000311-Tr for qemu-arm@nongnu.org; Wed, 13 May 2026 06:55:37 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wN7FO-0001MS-Hx for qemu-arm@nongnu.org; Wed, 13 May 2026 06:55:30 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-488b0046078so54693685e9.1 for ; Wed, 13 May 2026 03:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778669719; x=1779274519; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EqXB20e2lB1n4B/l+2XeP0j/2vhshqy0w7MeGRh9Fl8=; b=tNXIj1EFjbLiZ8zNWPk4lj+ndKh0HS+aur48Fbz5jdWmA8f0eoe1OwSzeH1fOs+sgF FWOp0hEBQuMEg84IL7kVUOmPZAl/hRlRqty/8kyM7VUoPCU50DBE3dEZ6OpMm4JOpDc8 gFeFFgSjcFEaWeg2hvU2bLs6gBKO2OsXjTCJSxJxZf+hL4GBo0MLnUI85UheNwtf4N/D hxnhnXDcc4PLmXXCRn25+XI1xhhlaiSr/PeSkub3+XYzTGOp50bhFXzDUEzSzJAH5cTY kkBb2NOnfh+fxP/zglmdSySAMWNNG4sUeaNMUz/QC3aG136826y7+tMzRHtnhmqS3aoy v2QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778669719; x=1779274519; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=EqXB20e2lB1n4B/l+2XeP0j/2vhshqy0w7MeGRh9Fl8=; b=cHt5VcHx0izF79WjJc9smQ9IgPmhKKEOo9xkrA6o7SKuR1yKogFLD3iUhBIvd7WGzf oK+0puXjaFt3ihNOTp6TGik6YTqooyBz/Ba24sYUf4H34WlI2LxgoufaGz9tFsGbLsf5 s7Z2NOMJxwQ4MtCBPrYdmaE0plAuB/hWCxuLucYjFGa7sGzZdjudVDnLnC3xf3Tt0/4H Q2+h1DpiYJcKZIq4aMOE68m2+DKnSf8rqKnT/tj3t2fTCaLHqOIhhkuLM3zankeFyURZ bnB1dha8yS3PagMYQf1llW//ppMekGnMfx9c88bwV+X4n/7fmcorJxGUh51ml0W5aP/c w61g== X-Forwarded-Encrypted: i=1; AFNElJ99Wzr2JYGsmfgdsnNrbmU7LIALxvPquKxJA9WuFCejiRIzKz4roooPiuvfCvvaSgwQkNOJcmM65w==@nongnu.org X-Gm-Message-State: AOJu0YxN0j4EPivgoFoqyBwCSnloDAKKbRYRb7mAJ+Iy6pFXfMCDFwGq rmvJ9edK9rIFpk0oXGN2zDp576NTx5hn1vpq/2rzSt+tjvLb8a55VTDR X-Gm-Gg: Acq92OE2dDbiILGn2vTe7axXZ618GXT5UTkG5K1WeS6MthMKvYXibMqNWxMh6HEMsjc WWamvR6t2Bq25P08/d5RkZBQUm/87tdVItts/LBJiB6NFsKC7KWIR6W5edTukrYCsRiA5fqkDHM 7k3sBmEAnyRd9/rk8LW2J4GSPGf/VAXU5Det4xk5i6rgRVL0sg/NataXNNPTm3RVJN9Sr89WAsF bsUhr+wnTM2YDkPU0CzqD2YJsINqni3majBxl5UgyiBHsOPEPfpMRPy2nwKBVL5jPemXjX9YYwN ursI6EQj12Vb3lrxzRHBLyBj+JSb/PG4OEHuTpTi4BUYgrkL5DRCUw/o6OhLydaPQNBzEnu4Mny qIpQgyeCj5ztYpUwmbk3aYqPaCsM2FAFCWeeG/rJ5Q9gtP3VKoUC70IcR6vF3sVrpVKgIsCaX8r cdBEiKlfKEhfcrY88NM6EC9wtb/51RkRsf5lAZbiPMvwAs X-Received: by 2002:a05:600c:8210:b0:489:ad:7b5b with SMTP id 5b1f17b1804b1-48fc9a46ff0mr33761355e9.24.1778669719471; Wed, 13 May 2026 03:55:19 -0700 (PDT) Received: from PC-DA2D10.beckhoff.com ([195.226.174.196]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e8f410d9fsm56062295e9.6.2026.05.13.03.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2026 03:55:18 -0700 (PDT) From: =?UTF-8?q?Corvin=20K=C3=B6hne?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Hanna Reitz , Kevin Wolf , qemu-arm@nongnu.org, =?UTF-8?q?Corvin=20K=C3=B6hne?= , Peter Maydell , Paolo Bonzini , Pierrick Bouvier , =?UTF-8?q?Yannick=20Vo=C3=9Fen?= , Alistair Francis , "Edgar E. Iglesias" Subject: [PATCH v6 00/15] hw/arm: add Beckhoff CX7200 board Date: Wed, 13 May 2026 12:55:02 +0200 Message-ID: <20260513105517.146706-1-corvin.koehne@gmail.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=corvin.koehne@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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 From: Corvin Köhne Hi, Beckhoff has build a board, called CX7200, based on the Xilinx Zynq A9 platform. This commit series adds the Beckhoff CX7200 as new board variant to QEMU. The emulation is able to successfully boot an CX7200 image. The image includes some self tests executed on every boot. Only the cache self test fails due to QEMU emulating the cache as always being coherent. The self tests include f.e.: * Network * Flash * CCAT DMA + EEPROM [1] * TwinCAT (Beckhoff's automation control software [2]) [1] https://github.com/beckhoff/ccat [2] https://www.beckhoff.com/en-us/products/automation/ YannickV (15): hw/timer: Make frequency configurable hw/timer: Make PERIPHCLK divider configurable hw/dma/zynq-devcfg: Handle bitstream loading via DMA to 0xffffffff hw/arm/zynq-devcfg: Prevent unintended unlock during initialization hw/dma/zynq: Ensure PCFG_DONE bit remains set to indicate PL is in user mode hw/dma/zynq-devcfg: Simulate dummy PL reset hw/dma/zynq-devcfg: Indicate power-up status of PL hw/misc: Add dummy ZYNQ DDR controller hw/misc/zynq_slcr: Add logic for DCI configuration hw/misc: Add Beckhoff CCAT device hw/block/m25p80: Add HAS_SR_TB flag for is25lp016d hw/arm/xilinx_zynq: Split xilinx_zynq into header and implementation files hw/arm/xilinx_zynq: Add flash-type property hw/arm: Add new machine based on xilinx-zynq-a9 for Beckhoff CX7200 docs/system/arm: Add support for Beckhoff CX7200 docs/system/arm/beckhoff-cx7200.rst | 57 ++++ docs/system/target-arm.rst | 1 + hw/arm/Kconfig | 7 + hw/arm/beckhoff_CX7200.c | 104 +++++++ hw/arm/meson.build | 1 + hw/arm/xilinx_zynq.c | 54 ++-- hw/block/m25p80.c | 3 +- hw/dma/xlnx-zynq-devcfg.c | 27 +- hw/misc/Kconfig | 6 + hw/misc/beckhoff_ccat.c | 339 +++++++++++++++++++++++ hw/misc/meson.build | 2 + hw/misc/xlnx-zynq-ddrc.c | 413 ++++++++++++++++++++++++++++ hw/misc/zynq_slcr.c | 31 +++ hw/timer/a9gtimer.c | 26 +- hw/timer/arm_mptimer.c | 32 ++- include/hw/arm/xilinx_zynq.h | 37 +++ include/hw/misc/xlnx-zynq-ddrc.h | 148 ++++++++++ include/hw/timer/a9gtimer.h | 2 + include/hw/timer/arm_mptimer.h | 4 + 19 files changed, 1263 insertions(+), 31 deletions(-) create mode 100644 docs/system/arm/beckhoff-cx7200.rst create mode 100644 hw/arm/beckhoff_CX7200.c create mode 100644 hw/misc/beckhoff_ccat.c create mode 100644 hw/misc/xlnx-zynq-ddrc.c create mode 100644 include/hw/arm/xilinx_zynq.h create mode 100644 include/hw/misc/xlnx-zynq-ddrc.h -- 2.47.3