From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796224906; b=4F8qLdAfb/+p3lcgx48wI+HM0WgdSLmV1Tqvs+FHEKvMSvQrJKlzq5IdkJ6H6PoOTh3W tX/RhU2JL8tjzj0svlUn3Es9O3MWOr6knPMb0+1KrTkeQydzm5FcoM/+cojljpQw1fo6F hH1Qf4bWBpyThZyqFkonVmnCsWzcoZ4TNj6H5jyTXf49obdH1QEnV1+iFicsjYY2sMRas wcMytxDQTj/TZGmRJVX2WxR/y+qh17k+2cOobFkD+KZns2nRWo8DsRdHqgOSRp1dP0KZj EWJEm9WSjHxOKOXHVbw4Ds1427A277TfGDAZtxdr6NTavErH5LjJbL+Yg2QmeKyKhvg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796224906; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=9pmRnF/5H9QObQjlGWMLzEuZVOXDF4BYalqPcJrIKCE=; b=HM40gY4OUOcN2KUtsQsMgYUq0Bkd2vjq+apLBdQGa5LP1resgHMZbtJQmwANu5QtP5bV iD5NytTqcV+wAEmd0fyysfj9ENyf8aRIOxkiloXCejQukHxSOdQf6zs7z08i/xSnDXWDS /HVqOH0K6HNHINZeDyQotDuNNDAuM5Uw7hVmIkTEtAYs7AGO+k5cATj/mo+65V4bnvFRU bqKu2U4Mgdoka/CUrVt8xbaBnHMOs6GEJDILlQUM42vDjpTaa5y3oQ53ppS86ktoaMpPS h3MLuE/F4o3mmQQifCXFk/phDqxdkjS1SuBB2aU/FjXqojBskkpCGS2ZUt+l8DufR2Q== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n63E+aZD; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0B9E606A695; Wed, 2 Dec 2026 15:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n63E+aZD Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796224904; b=wPxP/6vpssls5xMC9d4pqgp2vfh/qWEfCWHbx/R0X7jNwm4p21rX4pgFo2eq6pg+wI4b uj1POUHn214OnmCOUIiB6oIYQlFC3vNetOyGXsRvxYrHAgshal8o3GaDkeg8G6iJSOUk+ gFHzU8mf/BIz++7f7GqBf3nUoIOwmZS4Hzmb67vuAhJHxMJklHe2heE+3/Wx1ZSXHiQyY zlyuv6aBxNCGt/cGoBk6NcVdubF9I99HD3CCSTcOlyQq2ePDmL5o5NpQDUhLhfN6F+MmV hIxOUwvqEQ49zsUB9Wz6kwJS6UpnLnpLEzKRHkDDhRHNLS1cffBXWfwip0WfAkOgYkA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796224904; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=9pmRnF/5H9QObQjlGWMLzEuZVOXDF4BYalqPcJrIKCE=; b=A9DJJVKM4Cz8nb49uXI3la8BiGajZCLYXi7LGVgJUPu3rxURL+p0ecBlOno5GDOMsOb7 Od5ts4SpSZjSb/si3KmSWtaykK41IckKgqfdgxzYPUwu5Kzp3bUdPpjPysqVLX+zlTfw/ 1n+7N0EZx62j8LqQIr+7/vtzyGfT3NkZEtUM0kU45XGj/clIT2b8bRSSywYeY7z4tskgD woRqWDRHxdOHd3Yg1P8cNlqJXKf2sHTeJuFiPsRoC/N2QjIm3Tqttvamycgv77TUMv0O5 s3Rd4tis5mLnn7nX3OL3I17JLAR0K+FV1YGszVRSRkfm46NU2Qvun5f6TvraQmWJ+6g== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id A15DA1F000C1; Wed, 2 Dec 2026 15:21:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796224904; bh=9pmRnF/5H9QObQjlGWMLzEuZVOXDF4BYalqPcJrIKCE=; h=From:Subject:Date:To:Cc:Reply-To; b=n63E+aZDF8paDbmH+nEKL+iL7hyBcfdM81O4mF22sJoq761rAdQXLakYdbwIBxBXy z3T7Pok3aZicSMLvrmRwIkOLQRspWolorwWDgiRdS7mjAb936Zokc4etZMUVJ89oAi 1NbCD4F26st27tHMvMdlWBB9cpkBYnspPCJIDIPTIbuuAU5mrFJo2dxTmMsOzU1gWI ALWPLStLa3wDWOTmPFB21yOdSwmtj7VGpZh4jyQO/ApFaQGDPg4rwsKmzfbbGt8CWq OMGXbcx1wAhU7LY3DVD39DJagoq7lvSqPamA3X3Y0FM8OfqTsfDgeS1/dfcwOGUS9e tEd+R/VcgQsoQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id EF19A4F4B1; Wed, 2 Dec 2026 15:21:31 +0000 (UTC) From: Aleksa Paunovic via B4 Relay Subject: [PATCH v5 0/8] Add support for MIPS P8700 Date: Wed, 02 Dec 2026 16:21:20 +0100 Message-Id: <20261202-p8700-dts-v5-0-9d8829ef4841@htecgroup.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHA3EGsC/23OQQ7CIBCF4asY1mKYgZbWlfcwLgodLAttA7XRN L27VBOD0eUjfD/MLFLwFNl+M7NAk4++v6ZRbDfMds31TNy3aTMUWAqJBR8qLQRvx8gV6KpyAhS iZun+EMj5+6t1PKXd+Tj24fFKT7Cevis1qKwyARdcYqkdKDKW4NCNZM+hvw0721/YWprwowGEz DWuurFFq2qHVup/WmYaylzLpGnFRrcka/dPq0zj19sq6VIYo42rGt38/HxZlidpHJPzYAEAAA= = X-Change-ID: 20260325-p8700-dts-41788f014227 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Djordje Todorovic , Anup Patel , Thomas Gleixner , Radu Rendec , Inochi Amaoto , Daniel Lezcano Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Conor Dooley , linux-riscv@lists.infradead.org, Vladimir Kondratiev , Paul Walmsley , Palmer Dabbelt , Chao-Ying Fu , Aleksa Paunovic , Conor Dooley X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796224891; l=5193; i=aleksa.paunovic@htecgroup.com; s=20250806; h=from:subject:message-id; bh=umNISbPq672joTXl6Y+wBiqr91d8ESI0C/hwjq+otfU=; b=BRTCQA0NDjnP6qAwDTNIbew3U7D1IIWnqDHMt7xP+yki7xKlG6QTLqCz80XVdmUeAnO9Qgfgl Dvo6G0ZoYsgDCvkOSDAd20qGOnAkKR0n7zrsO4xFkN6FFueks/oPAxB X-Developer-Key: i=aleksa.paunovic@htecgroup.com; a=ed25519; pk=Dn4KMnDdgyhlXJNspQQrlHJ04i7/irG29p2H27Avd+8= X-Endpoint-Received: by B4 Relay for aleksa.paunovic@htecgroup.com/20250806 with auth_id=476 X-Original-From: Aleksa Paunovic Reply-To: aleksa.paunovic@htecgroup.com The MIPS P8700 is a multi-core RISC-V microprocessor system, supporting both single-cluster and multi-cluster configurations. [1] This series adds full description of the platform, including the Boston FPGA board configured with a P8700 bitfile. The P8700 cores support the RV64GCZba_Zbb (G = IMAFD) Standard ISA, with a caveat: the A extension is only partially supported, and all ZAAMO extension instructions are emulated on the SBI level. The device tree intentionally does not reflect this fact. Vladimir Kondratiev's series improves performance by directly substituting AMO instructions with LR/SC. [4] The two patchsets do not depend on one another. The board itself is the same board as 'img,boston', configured with a different bitfile [3]. The Boston board has been supported since commit 6e62a888029b ("MIPS: generic: Support MIPS Boston development boards") (thanks to Maciej for finding the ref). I tested this series both on QEMU and a Boston board configured with a single P8700 CPU, after applying the necessary U-Boot changes. We are planning on upstreaming these as well. Following the discussion in [2], I decided to drop the 'gf' prefix for all compatibles and to rework the aclint-mtimer binding. I plan to apply the whole series to the tree in the MAINTAINERS entry. Links: [1] https://mips.com/wp-content/uploads/2025/11/P8700-F_Programmers_Reference_Manual-TM.pdf [2] https://lore.kernel.org/linux-riscv/20261109051050.105623-5-joel@jms.id.au/ [3] https://training.mips.com/cps_mips/Examples/MD00901_Boot-MIPS_Example_Boot_Code_for_MIPS_Cores.pdf [4] https://lore.kernel.org/all/20261026-lrsc-only-v3-0-ec29c8190fb1@mobileye.com/ Signed-off-by: Aleksa Paunovic --- Changes in v5: - dts: fixed the mismatch between bus-range and memory-mapped ECAM size. Already upstream img,boston still uses the old PCI layout. Added device_type and ranges for PCI bridges. Drop the underscore-separated names from all PCI devices. - Link to v4: https://lore.kernel.org/r/20261123-p8700-dts-v4-0-60bb7bf8a7a1@htecgroup.com Changes in v4: - Add git tree link to the MAINTAINERS entry. - Require the names of mtimer registers to be 'mtime' and 'mtimecmp', as suggested by Sashiko. Update the commit message to reflect the reasoning for changes in v3, suggested by Conor. - Link to v3: https://lore.kernel.org/r/20261116-p8700-dts-v3-0-ec5d4b7de39f@htecgroup.com Changes in v3: - Drop the 'gf' vendor prefix patch. The prefix isn't used anywhere. - Replace 'gf,mips-p8700-*' compatibles with 'mips,p8700-*' to match those already present in OpenSBI. Other compatibles are also renamed for consistency. Match the directory structure and binding names, by replacing 'gf' with 'mips' everywhere. - Add a MAINTAINERS entry. - Change the `aclint-mtimer` binding, reversing the decision made in v2 and putting 'mtime' first when both 'mtime' and 'mtimecmp' are present. - Link to v2: https://lore.kernel.org/r/20261103-p8700-dts-v2-0-3ac5d49f2c37@htecgroup.com Changes in v2: - Patch 1: Replace "MIPS Technology" with "MIPS Technologies". - Patch 3: Name the FPGA used and add the versioned bitfile compatible. - Patch 5: Drop hart indexes from MSWI. - Patch 6: Swap mtimecmp and mtime, require reg-names both for mtime and mtimecmp on P8700. - Original patch 7: Dropped. - Patch 7 (previously 8): Remove additional harts that are not present in the bitfile I have. Reflect changes made in patches 3, 5 and 6. Remove riscv,cbom-block-size. Drop undocumented compatibles. Other minor changes. - Link to v1: https://lore.kernel.org/r/20260914-p8700-dts-v1-0-3267f14ebce1@htecgroup.com --- Aleksa Paunovic (8): dt-bindings: riscv: cpus: add mips,p8700 dt-bindings: riscv: Add MIPS Boston board compatible dt-bindings: interrupt-controller: Add MIPS P8700 APLIC dt-bindings: interrupt-controller: Add MIPS P8700 ACLINT MSWI dt-bindings: timer: Add MIPS P8700 ACLINT MTIMER riscv: dts: mips: Initial support for the P8700 Boston board MAINTAINERS: Add entry for MIPS RISC-V SoC support riscv: defconfig: Enable MIPS SoCs .../bindings/interrupt-controller/riscv,aplic.yaml | 1 + .../thead,c900-aclint-mswi.yaml | 11 ++ Documentation/devicetree/bindings/riscv/cpus.yaml | 1 + Documentation/devicetree/bindings/riscv/mips.yaml | 33 +++++ .../bindings/timer/thead,c900-aclint-mtimer.yaml | 39 ++++++ MAINTAINERS | 8 ++ arch/riscv/Kconfig.socs | 6 + arch/riscv/boot/dts/Makefile | 1 + arch/riscv/boot/dts/mips/Makefile | 2 + arch/riscv/boot/dts/mips/p8700-boston.dts | 141 +++++++++++++++++++++ arch/riscv/boot/dts/mips/p8700.dtsi | 82 ++++++++++++ arch/riscv/configs/defconfig | 1 + 12 files changed, 326 insertions(+) --- base-commit: fd73f4a6659897191fa0d40695fe370925dd3780 change-id: 20260325-p8700-dts-41788f014227 Best regards, -- Aleksa Paunovic