[PATCH v2 0/5] OpenRISC de0 nano single and multicore boards

Stafford Horne posted 5 patches 1 month, 3 weeks ago
There is a newer version of this series
.../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
[PATCH v2 0/5] OpenRISC de0 nano single and multicore boards
Posted by Stafford Horne 1 month, 3 weeks ago
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
Re: (subset) [PATCH v2 0/5] OpenRISC de0 nano single and multicore boards
Posted by Bartosz Golaszewski 1 month, 3 weeks ago
On Wed, 17 Dec 2025 08:08:26 +0000, Stafford Horne wrote:
> 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:
> 
> [...]

Tweaked the commit message a bit and applied, thanks!

[1/5] dt-bindings: Add compatible string opencores,gpio to gpio-mmio
      commit: f48b5e8bc2e1344f588cc730082aed6ccc5a6b3e

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Re: (subset) [PATCH v2 0/5] OpenRISC de0 nano single and multicore boards
Posted by Stafford Horne 3 weeks, 6 days ago
On Thu, Dec 18, 2025 at 02:46:48PM +0100, Bartosz Golaszewski wrote:
> 
> On Wed, 17 Dec 2025 08:08:26 +0000, Stafford Horne wrote:
> > 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:
> > 
> > [...]
> 
> Tweaked the commit message a bit and applied, thanks!
> 
> [1/5] dt-bindings: Add compatible string opencores,gpio to gpio-mmio
>       commit: f48b5e8bc2e1344f588cc730082aed6ccc5a6b3e

Hi Bartosz,

After discussion [1] with Linus W and Geert U on this patch we agreed it would be
best to drop this old patch and replace with a patch to add "opencores,gpio" to
the binding and the driver.

I have sent two new patches for that.  Can you please consider dropping this
original patch from your queue and replacing with the new?

If you prefer me to post these in a different way I can do that too.

[1] https://lore.kernel.org/lkml/CAD++jLm1u9ChqsftwvbOptiG3Qo2KWxPjqN2snOVuZDYuVST5Q@mail.gmail.com/

-Stafford