Skip to content

Commit 885bf52

Browse files
prabhakarladgeertu
authored andcommitted
arm64: dts: renesas: r9a09g056n48-rzv2n-evk: Enable serial NOR FLASH
Enable MT25QU512ABB8E12 FLASH connected to XSPI. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20250704140823.163572-4-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 7449d4d commit 885bf52

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

arch/arm64/boot/dts/renesas/r9a09g056n48-rzv2n-evk.dts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,18 @@
341341
pinmux = <RZV2N_PORT_PINMUX(9, 5, 14)>; /* VBUS */
342342
};
343343
};
344+
345+
xspi_pins: xspi0 {
346+
ctrl {
347+
pins = "XSPI0_RESET0N", "XSPI0_CS0N", "XSPI0_CKP";
348+
output-enable;
349+
};
350+
351+
io {
352+
pins = "XSPI0_IO0", "XSPI0_IO1", "XSPI0_IO2", "XSPI0_IO3";
353+
renesas,output-impedance = <3>;
354+
};
355+
};
344356
};
345357

346358
&qextal_clk {
@@ -383,3 +395,46 @@
383395
&wdt1 {
384396
status = "okay";
385397
};
398+
399+
&xspi {
400+
pinctrl-0 = <&xspi_pins>;
401+
pinctrl-names = "default";
402+
/*
403+
* MT25QU512ABB8E12 flash chip is capable of running at 166MHz
404+
* clock frequency. Set the clock frequency to the maximum 133MHz
405+
* supported by the RZ/V2N SoC.
406+
*/
407+
assigned-clocks = <&cpg CPG_CORE R9A09G056_SPI_CLK_SPI>;
408+
assigned-clock-rates = <133333334>;
409+
status = "okay";
410+
411+
flash@0 {
412+
compatible = "jedec,spi-nor";
413+
reg = <0>;
414+
vcc-supply = <&reg_1p8v>;
415+
m25p,fast-read;
416+
spi-tx-bus-width = <4>;
417+
spi-rx-bus-width = <4>;
418+
419+
partitions {
420+
compatible = "fixed-partitions";
421+
#address-cells = <1>;
422+
#size-cells = <1>;
423+
424+
partition@0 {
425+
label = "bl2";
426+
reg = <0x00000000 0x00060000>;
427+
};
428+
429+
partition@60000 {
430+
label = "fip";
431+
reg = <0x00060000 0x1fa0000>;
432+
};
433+
434+
partition@2000000 {
435+
label = "user";
436+
reg = <0x2000000 0x2000000>;
437+
};
438+
};
439+
};
440+
};

0 commit comments

Comments
 (0)