Skip to content

OpenRISC de0 nano single and multicore boards

Stafford Horne linux-devicetree linux-gpio lkml openrisc 6 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 6 repliesApplied
  2. v56 patches 4 repliesSuperseded
  3. v46 patches 6 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches11 repliesSuperseded
v25 patches21 repliesSuperseded
v15 patches7 repliesSuperseded

Changes in v6 from the cover letter

- Adjust dt-binding patch based on suggestions from Geert and Krzysztof.
- Add reviewed-by's on the dt-binding patch.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/6dt-bindings: gpio-mmio: Correct opencores GPIODocumentation/devicetree/bindings/gpio/gpio-mmio.yaml+6 -101 reply
2/6gpio: mmio: Add compatible for opencores GPIOdrivers/gpio/gpio-mmio.c+1 -00 replies
3/6openrisc: dts: Add de0 nano config and devicetreearch/openrisc/boot/dts/de0-nano-common.dtsi arch/openrisc/boot/dts/de0-nano.dts arch/openrisc/configs/de0_nano_defconfig+175 -00 replies
4/6openrisc: Fix IPIs on simple multicore systemsarch/openrisc/include/asm/smp.h arch/openrisc/kernel/smp.c drivers/irqchip/irq-ompic.c +1 more+60 -70 replies
5/6openrisc: dts: Split simple smp dts to dts and dtsiarch/openrisc/boot/dts/simple-smp.dts arch/openrisc/boot/dts/simple-smp.dtsi arch/openrisc/configs/simple_smp_defconfig+31 -70 replies
6/6openrisc: dts: Add de0 nano multicore config and devicetreearch/openrisc/boot/dts/de0-nano-multicore.dts arch/openrisc/configs/de0_nano_multicore_defconfig+117 -00 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenKrzysztof KozlowskiLinus WalleijThomas Gleixner
1/6R-b R-b R-b
2/6R-b R-b
3/6
4/6A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/6] OpenRISC de0 nano single and multicore boards

Since v5:
- Adjust dt-binding patch based on suggestions from Geert and Krzysztof.
- Add reviewed-by's on the dt-binding patch.
Since v4:
- Rebased the series on linux-next to allow patches to be incremental.
- Rewrote the dt-bindings patch as an incremental patch, Due to this I dropped reviewed-by's.
- Added acked-by to the IPI fix patch.
Since v3:
- Switch order of gpio-mmio driver and bindings patches to patch binding first before driver. Suggested by Krzysztof.
- Removed example form binding suggested by Krzysztof.
- Added Reviewed-by's from Geert and Linus W.
Since v2:
- Fixup (replace) gpio-mmio patch to update driver compatible list and just add opencores,gpio to mmio-gpio bindings. Discussed with Geert and Linus W because the 8-bit opencores,gpio is not the same as the 32-bit broadcom chip. [1].
- Update new device trees to use proper ordering, remove debug options, remove unneeded "status" properties. Suggested by Geert.
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 [2] 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.

[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://openrisc.io/tutorials/

Stafford Horne (6):
dt-bindings: gpio-mmio: Correct opencores GPIO
gpio: mmio: Add compatible for opencores GPIO
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   | 16 ++--
 arch/openrisc/boot/dts/de0-nano-common.dtsi   | 42 +++++++++
 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}   | 11 +--
 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/gpio/gpio-mmio.c                      |  1 +
 drivers/irqchip/irq-ompic.c                   | 15 ++-
 drivers/irqchip/irq-or1k-pic.c                | 27 +++++-
 14 files changed, 390 insertions(+), 24 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
Signature · 1 line
2.51.0