From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F9A5341045 for ; Wed, 17 Dec 2025 08:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958939; cv=none; b=NCQSvWVVVbEfhKOKQGyrnjiM11bt0ui8UfoE2TdmPzdkOaQS9BAoDAdjl75M4UoKAfuHDlMVWXfNAK4d7n9NO3X54d2XsmtiF5+B5dB2EthRmgagPwDOJq+bBxogZDMR2IK+oETZVkA0L4Fnz3soIyMMdbOLv5FpKC7jxy6DWyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958939; c=relaxed/simple; bh=9GXdb++mBgfHhLSUuUJeimiIv2M7AqOK8vxaB/ra2Wk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cbuGqvFk6/ZMlqoR85r0eIQALbUfiBM272/AAmJc/JgDRH4Blf3bz/GDUGxhLXIFL9Njyc+AmgKs5/xxKVYl+7aR99vBWacK9Na/NrtH+vtE0671n78VERqSuMFznomgmh8zBR1LvYO5WYIJmWIcO53xJ3tjl269bFdzowCMa7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BqqTLza6; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BqqTLza6" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-477a1c28778so59533035e9.3 for ; Wed, 17 Dec 2025 00:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765958936; x=1766563736; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hntdZ0AL8tO1hGhDChLTEPbwkSJczkq/EoSmNVJXeRg=; b=BqqTLza6ztLY18aJBPkB3hDFzJ/KXe6DDK5liAaLhINwod+DGT5AWprCuMjUE3GBia v6DysndOdjt4ngUmz2kWT121Y/J9p3VGVwMW9qwHa41xylnTF1lKslvAohxW/33tZa7v NY5GxGEXLkpbiU73TBdXZ9/o77MqCi/9UoDXxTeeJ3Rn2tkkLVDeoXHmPz37T13W/eZn 8/GrnohLB3+L5iI9JieKWLoioVZxJJUpBPom82VeUODmILb8iGHq0BGyoEllysuAOT8p +wtlzjlpyr4FYvSBWHA8IgzzPP0vhacWoe3l1l35INvdroXVPGktAgFzHCa+97sdPFcX 0c1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765958936; x=1766563736; 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=hntdZ0AL8tO1hGhDChLTEPbwkSJczkq/EoSmNVJXeRg=; b=s9jTQ8H2X74UlIbld/OIHdq4lPBzAom2oAP2cn2FrrbT6b5JTnzVG+pvbHBbGDHMd0 jZ5esb5jwxorN6qXYvGgzoEl5/9dhiOXlGhuz3zCO9RC5f/xC36vArH+Yn81DkkVS0MC zPIbuqfspYng5SJX4ME8HVQ6cqUat53v4GpwgyUH063jhBhcU9S96bYk/O7Yxgfm9ami nUECCHdkpE9rWHIHCnIIfRAdjSBh4kDXH+q6CfKpIrX1Qf55i5CoadIiK3OObeuBbhUt UZUMKjuM6k/R1C4IVgJePCFs+lcm39/lXhWoGonX3PVHtkeDHVxgJ4BM7GrWRUAP+8dY 9SzA== X-Gm-Message-State: AOJu0YzwxeP5JH63zoU8l6g16Y9L8AKvpk6DtsHB4HPTJV7ETUU+YK9J 3FNqTYZGdv1+5yLu5k52t8QKNw0vuMdD1WIygxuj4Wc+A9e5C/eIMCjxpDJ09Q== X-Gm-Gg: AY/fxX5r5fZ9iHl0c+gtV7Cy3dVnKk+cVeWARfwOeYnA8+9thi0RvvnjQYP9HxqEnrT ivqEodNR4T3tuN0rMMgDeQfmDgVREIi2mUDMU4U7fu5iEApBBT+CECKjRJomrC9lUojcJvynkXQ ZaLyd55DpbPs8N2WxzfLC4hZV+dZCII/0vieSE55aX4SIAYDQgCMTMAzcco7LYk+n1wBFzGYfDN 12KEKweIzEL7rVqxuG9tZIBRti9Pp+VYe1sGKIw/DRudEKLJ39bSqqS9ZfLqB0UwMsbVGJTjhp/ 6MrajMWhMDLNS3k2bb2w3o20Yk41TN8vHSXnXlxnygSKlY7m1qAxAdngrwnw1mQQFs7v2XWvIyX Gvn9EwLk9MOK7fipyaqO9tRU3gN+M6lWCF+5Bc7iEWwW1fZx+VDXqi1/+SlO4SMcfGG3dYmPG49 iXIh05gD4T7ZmAklO4gy6JuRZY6sfDggECCSGkqrwoeIFIMlzFHi8xQKpEbJEwe/AL X-Google-Smtp-Source: AGHT+IE/5kg9Z7TJzGr9ROwS9N/sQVlEOaOtbT81QFu/K3RyKQMmCm7uAXHr92A0/nHohCFvGWHNMA== X-Received: by 2002:a05:6000:22c5:b0:430:f454:84ae with SMTP id ffacd0b85a97d-430f45486b4mr13043951f8f.63.1765958935417; Wed, 17 Dec 2025 00:08:55 -0800 (PST) Received: from localhost (brnt-04-b2-v4wan-170138-cust2432.vm7.cable.virginm.net. [94.175.9.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4310ade7bf9sm3417220f8f.24.2025.12.17.00.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Dec 2025 00:08:54 -0800 (PST) From: Stafford Horne To: LKML Cc: Linux OpenRISC , Stafford Horne Subject: [PATCH v2 0/5] OpenRISC de0 nano single and multicore boards Date: Wed, 17 Dec 2025 08:08:26 +0000 Message-ID: <20251217080843.70621-1-shorne@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since v1: - Use proper schema in gpio-mmio suggsted by Conor Dooley - Remove 0 clock-frequency definitions in dtsi file The patches add support for OpenRISC systems running on the De0 Nano FPGA development board. We have two SoCs which are available here: - https://github.com/olofk/de0_nano - Single core - https://github.com/stffrdhrn/de0_nano-multicore - Multicore As I work on tutorials to help other get started with OpenRISC I would like to have these defconfig and devicetree definitions in the upstream kernel to avoid losing them. When I was working on resurrecting these old setup's I found a major bug in OpenRISC SMP which is fixed in this series as well. Link: https://openrisc.io/tutorials/ Stafford Horne (5): dt-bindings: Add compatible string opencores,gpio to gpio-mmio openrisc: dts: Add de0 nano config and devicetree openrisc: Fix IPIs on simple multicore systems openrisc: dts: Split simple smp dts to dts and dtsi openrisc: dts: Add de0 nano multicore config and devicetree .../devicetree/bindings/gpio/gpio-mmio.yaml | 15 ++- arch/openrisc/boot/dts/de0-nano-common.dtsi | 41 +++++++++ arch/openrisc/boot/dts/de0-nano-multicore.dts | 25 +++++ arch/openrisc/boot/dts/de0-nano.dts | 54 +++++++++++ arch/openrisc/boot/dts/simple-smp.dts | 25 +++++ .../dts/{simple_smp.dts => simple-smp.dtsi} | 9 +- arch/openrisc/configs/de0_nano_defconfig | 79 ++++++++++++++++ .../configs/de0_nano_multicore_defconfig | 92 +++++++++++++++++++ arch/openrisc/configs/simple_smp_defconfig | 2 +- arch/openrisc/include/asm/smp.h | 3 +- arch/openrisc/kernel/smp.c | 22 ++++- drivers/irqchip/irq-ompic.c | 15 ++- drivers/irqchip/irq-or1k-pic.c | 27 +++++- 13 files changed, 390 insertions(+), 19 deletions(-) create mode 100644 arch/openrisc/boot/dts/de0-nano-common.dtsi create mode 100644 arch/openrisc/boot/dts/de0-nano-multicore.dts create mode 100644 arch/openrisc/boot/dts/de0-nano.dts create mode 100644 arch/openrisc/boot/dts/simple-smp.dts rename arch/openrisc/boot/dts/{simple_smp.dts => simple-smp.dtsi} (90%) create mode 100644 arch/openrisc/configs/de0_nano_defconfig create mode 100644 arch/openrisc/configs/de0_nano_multicore_defconfig -- 2.51.0