* [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
2025-05-08 18:31 [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK Biju Das
@ 2025-05-08 18:31 ` Biju Das
2025-05-09 8:42 ` kernel test robot
2025-05-21 9:41 ` Geert Uytterhoeven
2025-05-08 18:31 ` [PATCH 2/2] arm64: dts: renesas: rzg3e-smarc-som: Enable serial nor flash Biju Das
2025-05-08 18:37 ` [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK Biju Das
2 siblings, 2 replies; 9+ messages in thread
From: Biju Das @ 2025-05-08 18:31 UTC (permalink / raw)
To: Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Biju Das, linux-renesas-soc, devicetree, Prabhakar Mahadev Lad,
Biju Das
Add xspi node to RZ/G3E ("R9A09G047") SoC DTSI.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
arch/arm64/boot/dts/renesas/r9a09g047.dtsi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r9a09g047.dtsi b/arch/arm64/boot/dts/renesas/r9a09g047.dtsi
index 876f70fed433..3d3aa371dad8 100644
--- a/arch/arm64/boot/dts/renesas/r9a09g047.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a09g047.dtsi
@@ -280,6 +280,27 @@ sys: system-controller@10430000 {
resets = <&cpg 0x30>;
};
+ xspi: spi@11030000 {
+ compatible = "renesas,r9a09g047-xspi";
+ reg = <0 0x11030000 0 0x10000>,
+ <0 0x20000000 0 0x10000000>;
+ reg-names = "regs", "dirmap";
+ interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 229 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "pulse", "err_pulse";
+ clocks = <&cpg CPG_MOD 0x9f>,
+ <&cpg CPG_MOD 0xa0>,
+ <&cpg CPG_CORE R9A09G047_SPI_CLK_SPI>,
+ <&cpg CPG_MOD 0xa1>;
+ clock-names = "ahb", "axi", "spi", "spix2";
+ resets = <&cpg 0xa3>, <&cpg 0xa4>;
+ reset-names = "hresetn", "aresetn";
+ power-domains = <&cpg>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
scif0: serial@11c01400 {
compatible = "renesas,scif-r9a09g047", "renesas,scif-r9a09g057";
reg = <0 0x11c01400 0 0x400>;
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
2025-05-08 18:31 ` [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node Biju Das
@ 2025-05-09 8:42 ` kernel test robot
2025-05-09 8:57 ` Biju Das
2025-05-21 9:41 ` Geert Uytterhoeven
1 sibling, 1 reply; 9+ messages in thread
From: kernel test robot @ 2025-05-09 8:42 UTC (permalink / raw)
To: Biju Das, Geert Uytterhoeven, Magnus Damm, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: oe-kbuild-all, Biju Das, linux-renesas-soc, devicetree,
Prabhakar Mahadev Lad
Hi Biju,
kernel test robot noticed the following build errors:
[auto build test ERROR on geert-renesas-devel/next]
[also build test ERROR on linus/master v6.15-rc5 next-20250508]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Biju-Das/arm64-dts-renesas-r9a09g047-Add-XSPI-node/20250509-023503
base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git next
patch link: https://lore.kernel.org/r/20250508183109.137721-2-biju.das.jz%40bp.renesas.com
patch subject: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
config: arm64-randconfig-001-20250509 (https://download.01.org/0day-ci/archive/20250509/202505091649.PuAhqb0T-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250509/202505091649.PuAhqb0T-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505091649.PuAhqb0T-lkp@intel.com/
All errors (new ones prefixed by >>):
>> Error: arch/arm64/boot/dts/renesas/r9a09g047.dtsi:293.14-15 syntax error
FATAL ERROR: Unable to parse input tree
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
2025-05-09 8:42 ` kernel test robot
@ 2025-05-09 8:57 ` Biju Das
2025-05-09 12:07 ` Philip Li
0 siblings, 1 reply; 9+ messages in thread
From: Biju Das @ 2025-05-09 8:57 UTC (permalink / raw)
To: kernel test robot, Geert Uytterhoeven, Magnus Damm, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: oe-kbuild-all@lists.linux.dev, linux-renesas-soc@vger.kernel.org,
devicetree@vger.kernel.org, Prabhakar Mahadev Lad
Hi kernel test robot,
> -----Original Message-----
> From: kernel test robot <lkp@intel.com>
> Sent: 09 May 2025 09:43
> To: Biju Das <biju.das.jz@bp.renesas.com>; Geert Uytterhoeven <geert+renesas@glider.be>; Magnus Damm
> <magnus.damm@gmail.com>; Rob Herring <robh@kernel.org>; Krzysztof Kozlowski <krzk@kernel.org>; Conor
> Dooley <conor+dt@kernel.org>
> Cc: oe-kbuild-all@lists.linux.dev; Biju Das <biju.das.jz@bp.renesas.com>; linux-renesas-
> soc@vger.kernel.org; devicetree@vger.kernel.org; Prabhakar Mahadev Lad <prabhakar.mahadev-
> lad.rj@bp.renesas.com>
> Subject: Re: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
>
> Hi Biju,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on geert-renesas-devel/next] [also build test ERROR on linus/master v6.15-rc5
> next-20250508] [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-
> format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Biju-Das/arm64-dts-renesas-r9a09g047-Add-XSPI-
> node/20250509-023503
> base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git next
> patch link: https://lore.kernel.org/r/20250508183109.137721-2-biju.das.jz%40bp.renesas.com
> patch subject: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
> config: arm64-randconfig-001-20250509 (https://download.01.org/0day-
> ci/archive/20250509/202505091649.PuAhqb0T-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 7.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-
> ci/archive/20250509/202505091649.PuAhqb0T-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of the same
> patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes:
> | https://lore.kernel.org/oe-kbuild-all/202505091649.PuAhqb0T-lkp@intel.
> | com/
>
> All errors (new ones prefixed by >>):
>
> >> Error: arch/arm64/boot/dts/renesas/r9a09g047.dtsi:293.14-15 syntax
> >> error
> FATAL ERROR: Unable to parse input tree
This patch has dependency on [1]
[1] https://lore.kernel.org/all/CAMuHMdWhTirA+WYxNxHwAgaH6RDfWbhKaji22T_hhiJYUkFjKw@mail.gmail.com/
Cheers,
Biju
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
2025-05-09 8:57 ` Biju Das
@ 2025-05-09 12:07 ` Philip Li
0 siblings, 0 replies; 9+ messages in thread
From: Philip Li @ 2025-05-09 12:07 UTC (permalink / raw)
To: Biju Das
Cc: kernel test robot, Geert Uytterhoeven, Magnus Damm, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, oe-kbuild-all@lists.linux.dev,
linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
Prabhakar Mahadev Lad
On Fri, May 09, 2025 at 08:57:32AM +0000, Biju Das wrote:
> Hi kernel test robot,
>
> > -----Original Message-----
> > From: kernel test robot <lkp@intel.com>
> > Sent: 09 May 2025 09:43
> > To: Biju Das <biju.das.jz@bp.renesas.com>; Geert Uytterhoeven <geert+renesas@glider.be>; Magnus Damm
> > <magnus.damm@gmail.com>; Rob Herring <robh@kernel.org>; Krzysztof Kozlowski <krzk@kernel.org>; Conor
> > Dooley <conor+dt@kernel.org>
> > Cc: oe-kbuild-all@lists.linux.dev; Biju Das <biju.das.jz@bp.renesas.com>; linux-renesas-
> > soc@vger.kernel.org; devicetree@vger.kernel.org; Prabhakar Mahadev Lad <prabhakar.mahadev-
> > lad.rj@bp.renesas.com>
> > Subject: Re: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
> >
> > Hi Biju,
> >
> > kernel test robot noticed the following build errors:
> >
> > [auto build test ERROR on geert-renesas-devel/next] [also build test ERROR on linus/master v6.15-rc5
> > next-20250508] [If your patch is applied to the wrong git tree, kindly drop us a note.
> > And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-
> > format-patch#_base_tree_information]
> >
> > url: https://github.com/intel-lab-lkp/linux/commits/Biju-Das/arm64-dts-renesas-r9a09g047-Add-XSPI-
> > node/20250509-023503
> > base: https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel.git next
> > patch link: https://lore.kernel.org/r/20250508183109.137721-2-biju.das.jz%40bp.renesas.com
> > patch subject: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
> > config: arm64-randconfig-001-20250509 (https://download.01.org/0day-
> > ci/archive/20250509/202505091649.PuAhqb0T-lkp@intel.com/config)
> > compiler: aarch64-linux-gcc (GCC) 7.5.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-
> > ci/archive/20250509/202505091649.PuAhqb0T-lkp@intel.com/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of the same
> > patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes:
> > | https://lore.kernel.org/oe-kbuild-all/202505091649.PuAhqb0T-lkp@intel.
> > | com/
> >
> > All errors (new ones prefixed by >>):
> >
> > >> Error: arch/arm64/boot/dts/renesas/r9a09g047.dtsi:293.14-15 syntax
> > >> error
> > FATAL ERROR: Unable to parse input tree
>
> This patch has dependency on [1]
Got it, thanks for info. Sorry for the false positive that the bot currently
can't handle the dependency nicely for such case. I will consider to not report
out this type of dtcheck issue directly if not on next or mainline (to align
with other dtcheck issue).
>
> [1] https://lore.kernel.org/all/CAMuHMdWhTirA+WYxNxHwAgaH6RDfWbhKaji22T_hhiJYUkFjKw@mail.gmail.com/
>
> Cheers,
> Biju
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node
2025-05-08 18:31 ` [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node Biju Das
2025-05-09 8:42 ` kernel test robot
@ 2025-05-21 9:41 ` Geert Uytterhoeven
1 sibling, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2025-05-21 9:41 UTC (permalink / raw)
To: Biju Das
Cc: Magnus Damm, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-renesas-soc, devicetree, Prabhakar Mahadev Lad, Biju Das
On Thu, 8 May 2025 at 20:31, Biju Das <biju.das.jz@bp.renesas.com> wrote:
> Add xspi node to RZ/G3E ("R9A09G047") SoC DTSI.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.17.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] arm64: dts: renesas: rzg3e-smarc-som: Enable serial nor flash
2025-05-08 18:31 [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK Biju Das
2025-05-08 18:31 ` [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node Biju Das
@ 2025-05-08 18:31 ` Biju Das
2025-05-21 9:43 ` Geert Uytterhoeven
2025-05-08 18:37 ` [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK Biju Das
2 siblings, 1 reply; 9+ messages in thread
From: Biju Das @ 2025-05-08 18:31 UTC (permalink / raw)
To: Geert Uytterhoeven, Magnus Damm, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Biju Das, linux-renesas-soc, devicetree, Prabhakar Mahadev Lad,
Biju Das
Enable Renesas at25ql128a flash connected to XSPI.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
.../boot/dts/renesas/rzg3e-smarc-som.dtsi | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi
index 43d79158d81a..db128388dcb6 100644
--- a/arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi
+++ b/arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi
@@ -182,6 +182,15 @@ sd2-pwen {
pinmux = <RZG3E_PORT_PINMUX(K, 2, 1)>; /* SD2PWEN */
};
};
+
+ xspi_pins: xspi0 {
+ pinmux = <RZG3E_PORT_PINMUX(M, 0, 0)>, /* XSPI0_IO0 */
+ <RZG3E_PORT_PINMUX(M, 1, 0)>, /* XSPI0_IO1 */
+ <RZG3E_PORT_PINMUX(M, 2, 0)>, /* XSPI0_IO2 */
+ <RZG3E_PORT_PINMUX(M, 3, 0)>, /* XSPI0_IO3 */
+ <RZG3E_PORT_PINMUX(L, 0, 0)>, /* XSPI0_CKP */
+ <RZG3E_PORT_PINMUX(L, 1, 0)>; /* XSPI0_CS0 */
+ };
};
&qextal_clk {
@@ -245,3 +254,40 @@ &sdhi2_vqmmc {
&wdt1 {
status = "okay";
};
+
+&xspi {
+ pinctrl-0 = <&xspi_pins>;
+ pinctrl-names = "default";
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ vcc-supply = <®_1p8v>;
+ m25p,fast-read;
+ spi-max-frequency = <50000000>;
+ spi-tx-bus-width = <4>;
+ spi-rx-bus-width = <4>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "bl2";
+ reg = <0x00000000 0x00060000>;
+ };
+
+ partition@60000 {
+ label = "fip";
+ reg = <0x00060000 0x007a0000>;
+ };
+
+ partition@800000 {
+ label = "user";
+ reg = <0x800000 0x800000>;
+ };
+ };
+ };
+};
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 2/2] arm64: dts: renesas: rzg3e-smarc-som: Enable serial nor flash
2025-05-08 18:31 ` [PATCH 2/2] arm64: dts: renesas: rzg3e-smarc-som: Enable serial nor flash Biju Das
@ 2025-05-21 9:43 ` Geert Uytterhoeven
0 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2025-05-21 9:43 UTC (permalink / raw)
To: Biju Das
Cc: Magnus Damm, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-renesas-soc, devicetree, Prabhakar Mahadev Lad, Biju Das
On Thu, 8 May 2025 at 20:31, Biju Das <biju.das.jz@bp.renesas.com> wrote:
> Enable Renesas at25ql128a flash connected to XSPI.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.17.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK
2025-05-08 18:31 [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK Biju Das
2025-05-08 18:31 ` [PATCH 1/2] arm64: dts: renesas: r9a09g047: Add XSPI node Biju Das
2025-05-08 18:31 ` [PATCH 2/2] arm64: dts: renesas: rzg3e-smarc-som: Enable serial nor flash Biju Das
@ 2025-05-08 18:37 ` Biju Das
2 siblings, 0 replies; 9+ messages in thread
From: Biju Das @ 2025-05-08 18:37 UTC (permalink / raw)
To: Biju Das, Geert Uytterhoeven, Magnus Damm, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Mark Brown
Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
Prabhakar Mahadev Lad, biju.das.au
Hi All,
> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: 08 May 2025 19:31
> Subject: [PATCH 0/2] Enable serial NOR flash on RZ/G3E SMARC EVK
>
> This patch series aims to enable serial NOR flash on RZ/G3E SMARC EVK.
>
> We can flash bootloaders in Linux by executing the below commands:
> flash_erase /dev/mtd0 0 0
> flash_erase /dev/mtd1 0 0
> mtd_debug write /dev/mtd0 0 ${BL2_FILE_SIZE} ${BL2_IMAGE} mtd_debug write /dev/mtd1 0 ${FIP_FILE_SIZE}
> ${FIP_IMAGE}
This patch has functional dependency on [1]
[1] https://lore.kernel.org/all/20250424090000.136804-8-biju.das.jz@bp.renesas.com/
Cheers,
Biju
>
> Biju Das (2):
> arm64: dts: renesas: r9a09g047: Add XSPI node
> arm64: dts: renesas: rzg3e-smarc-som: Enable serial nor flash
>
> arch/arm64/boot/dts/renesas/r9a09g047.dtsi | 21 +++++++++
> .../boot/dts/renesas/rzg3e-smarc-som.dtsi | 46 +++++++++++++++++++
> 2 files changed, 67 insertions(+)
>
> --
> 2.43.0
^ permalink raw reply [flat|nested] 9+ messages in thread