* [PATCH 0/2] arm64: dts: nuvoton: Improve MA35D1 support
@ 2026-08-13 7:25 Miquel Raynal
2026-08-13 7:25 ` [PATCH 1/2] arm64: dts: nuvoton: Add QSPI0 node Miquel Raynal
2026-08-13 7:25 ` [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board Miquel Raynal
0 siblings, 2 replies; 4+ messages in thread
From: Miquel Raynal @ 2026-08-13 7:25 UTC (permalink / raw)
To: Jacky Huang, Shan-Chun Hung, Andrew Jeffery, Avi Fishman,
Tomer Maimon, Tali Perry, Patrick Venture, Nancy Yuen,
Benjamin Fair, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Thomas Petazzoni, Steam Lin, linux-arm-kernel, openbmc,
devicetree, linux-kernel, Miquel Raynal
I am in possession of an MA35D1 NuMaker board. The SPI controller has
been contributed, but:
1- it lacks a DT description
2- it does not work with current clock driver
3- it can be improved
This series is addressing #1.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Miquel Raynal (2):
arm64: dts: nuvoton: Add QSPI0 node
arm64: dts: nuvoton: Add NuMaker board
arch/arm64/boot/dts/nuvoton/Makefile | 1 +
arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts | 37 ++++++++++++++++++++++++++
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 11 ++++++++
3 files changed, 49 insertions(+)
---
base-commit: 1ec281b42ee249cfe9bad52a54149de29ed6aa78
change-id: 20260813-perso-ma35d1-upstream-dts-99f61de2c01c
Best regards,
--
Miquel Raynal <miquel.raynal@bootlin.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: nuvoton: Add QSPI0 node
2026-08-13 7:25 [PATCH 0/2] arm64: dts: nuvoton: Improve MA35D1 support Miquel Raynal
@ 2026-08-13 7:25 ` Miquel Raynal
2026-08-13 7:25 ` [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board Miquel Raynal
1 sibling, 0 replies; 4+ messages in thread
From: Miquel Raynal @ 2026-08-13 7:25 UTC (permalink / raw)
To: Jacky Huang, Shan-Chun Hung, Andrew Jeffery, Avi Fishman,
Tomer Maimon, Tali Perry, Patrick Venture, Nancy Yuen,
Benjamin Fair, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Thomas Petazzoni, Steam Lin, linux-arm-kernel, openbmc,
devicetree, linux-kernel, Miquel Raynal
Describe the quad-SPI controller available on Nuvoton MA35D1. Bindings
for it have already been contributed.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi
index 7228ad4735b5..9eec44128d28 100644
--- a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi
+++ b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi
@@ -431,5 +431,16 @@ mdio1: mdio {
#size-cells = <0>;
};
};
+
+ qspi0: spi@40680000 {
+ compatible = "nuvoton,ma35d1-qspi";
+ reg = <0x0 0x40680000 0x0 0x100>;
+ interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk QSPI0_GATE>;
+ resets = <&sys MA35D1_RESET_QSPI0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
};
};
--
2.54.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board
2026-08-13 7:25 [PATCH 0/2] arm64: dts: nuvoton: Improve MA35D1 support Miquel Raynal
2026-08-13 7:25 ` [PATCH 1/2] arm64: dts: nuvoton: Add QSPI0 node Miquel Raynal
@ 2026-08-13 7:25 ` Miquel Raynal
2026-08-13 7:32 ` sashiko-bot
1 sibling, 1 reply; 4+ messages in thread
From: Miquel Raynal @ 2026-08-13 7:25 UTC (permalink / raw)
To: Jacky Huang, Shan-Chun Hung, Andrew Jeffery, Avi Fishman,
Tomer Maimon, Tali Perry, Patrick Venture, Nancy Yuen,
Benjamin Fair, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Thomas Petazzoni, Steam Lin, linux-arm-kernel, openbmc,
devicetree, linux-kernel, Miquel Raynal
Nuvoton MA35D SoC is used on the NuMaker SoM, itself plugged onto a
carrier board labelled NuMaker. Create a DTS including the SoM
description. As a first external component, mention the SPI NAND
connected to the Quad SPI controller.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
arch/arm64/boot/dts/nuvoton/Makefile | 1 +
arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts | 37 ++++++++++++++++++++++++++
2 files changed, 38 insertions(+)
diff --git a/arch/arm64/boot/dts/nuvoton/Makefile b/arch/arm64/boot/dts/nuvoton/Makefile
index 3bc9787801a5..4c82109c885a 100644
--- a/arch/arm64/boot/dts/nuvoton/Makefile
+++ b/arch/arm64/boot/dts/nuvoton/Makefile
@@ -1,4 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_ARCH_MA35) += ma35d1-iot-512m.dtb
+dtb-$(CONFIG_ARCH_MA35) += ma35d1-numaker.dtb
dtb-$(CONFIG_ARCH_MA35) += ma35d1-som-256m.dtb
dtb-$(CONFIG_ARCH_NPCM) += nuvoton-npcm845-evb.dtb
diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts
new file mode 100644
index 000000000000..01f1f800aef8
--- /dev/null
+++ b/arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (C) 2025 Bootlin
+ * Author: Miquel Raynal <miquel.raynal@bootlin.com>
+ */
+
+/dts-v1/;
+#include "ma35d1-som-256m.dts"
+
+&pinctrl {
+ spi-grp {
+ pinctrl_qspi0: qspi0-pins {
+ nuvoton,pins = <3 0 5>,
+ <3 1 5>,
+ <3 2 5>,
+ <3 3 5>,
+ <3 4 5>,
+ <3 5 5>;
+ bias-disable;
+ power-source = <1>;
+ };
+ };
+};
+
+&qspi0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_qspi0>;
+ status = "okay";
+
+ flash: flash@0 {
+ compatible = "spi-nand";
+ reg = <0>;
+ spi-max-frequency = <30000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ };
+};
--
2.54.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board
2026-08-13 7:25 ` [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board Miquel Raynal
@ 2026-08-13 7:32 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-08-13 7:32 UTC (permalink / raw)
To: Miquel Raynal; +Cc: robh, devicetree, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The NuMaker carrier board device tree fails to define its own `model` and `compatible` properties, incorrectly inheriting them from the included SoM device tree.
--
--- Patch [2]: [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board ---
commit ebe82dc4f8c0ba0308823c13c0ed25751cfbed16
Author: Miquel Raynal <miquel.raynal@bootlin.com>
arm64: dts: nuvoton: Add NuMaker board
This patch adds device tree support for the NuMaker carrier board, which
uses the Nuvoton MA35D SoC on the NuMaker SoM. It creates a new DTS file
that includes the SoM description and adds a node for the SPI NAND connected
to the Quad SPI controller.
[ ... ]
> diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts
> new file mode 100644
> index 0000000000000..01f1f800aef8d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/nuvoton/ma35d1-numaker.dts
> @@ -0,0 +1,37 @@
> +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> +/*
> + * Copyright (C) 2025 Bootlin
> + * Author: Miquel Raynal <miquel.raynal@bootlin.com>
> + */
> +
> +/dts-v1/;
> +#include "ma35d1-som-256m.dts"
> +
[Severity: Medium]
Should this file define its own root node with model and compatible properties?
Without an overriding root node here, this compiled DTB inherits the
identity strings of the included SoM device tree. Can this cause the
bootloader or kernel to misidentify the NuMaker carrier board as the bare
SoM?
> +&pinctrl {
> + spi-grp {
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260813-perso-ma35d1-upstream-dts-v1-0-bb237fd7c3c2@bootlin.com?part=2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-13 7:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 7:25 [PATCH 0/2] arm64: dts: nuvoton: Improve MA35D1 support Miquel Raynal
2026-08-13 7:25 ` [PATCH 1/2] arm64: dts: nuvoton: Add QSPI0 node Miquel Raynal
2026-08-13 7:25 ` [PATCH 2/2] arm64: dts: nuvoton: Add NuMaker board Miquel Raynal
2026-08-13 7:32 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox