Skip to content

Commit 145a2a9

Browse files
prabhakarladgeertu
authored andcommitted
arm64: dts: renesas: r9a09g057h44-rzv2h-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-5-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 885bf52 commit 145a2a9

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,18 @@
370370
pinmux = <RZV2H_PORT_PINMUX(6, 6, 14)>; /* VBUS */
371371
};
372372
};
373+
374+
xspi_pins: xspi0 {
375+
ctrl {
376+
pins = "XSPI0_RESET0N", "XSPI0_CS0N", "XSPI0_CKP";
377+
output-enable;
378+
};
379+
380+
io {
381+
pins = "XSPI0_IO0", "XSPI0_IO1", "XSPI0_IO2", "XSPI0_IO3";
382+
renesas,output-impedance = <3>;
383+
};
384+
};
373385
};
374386

375387
&qextal_clk {
@@ -424,3 +436,46 @@
424436
&wdt1 {
425437
status = "okay";
426438
};
439+
440+
&xspi {
441+
pinctrl-0 = <&xspi_pins>;
442+
pinctrl-names = "default";
443+
/*
444+
* MT25QU512ABB8E12 flash chip is capable of running at 166MHz
445+
* clock frequency. Set the clock frequency to the maximum 133MHz
446+
* supported by the RZ/V2H SoC.
447+
*/
448+
assigned-clocks = <&cpg CPG_CORE R9A09G057_SPI_CLK_SPI>;
449+
assigned-clock-rates = <133333334>;
450+
status = "okay";
451+
452+
flash@0 {
453+
compatible = "jedec,spi-nor";
454+
reg = <0>;
455+
vcc-supply = <&reg_1p8v>;
456+
m25p,fast-read;
457+
spi-tx-bus-width = <4>;
458+
spi-rx-bus-width = <4>;
459+
460+
partitions {
461+
compatible = "fixed-partitions";
462+
#address-cells = <1>;
463+
#size-cells = <1>;
464+
465+
partition@0 {
466+
label = "bl2";
467+
reg = <0x00000000 0x00060000>;
468+
};
469+
470+
partition@60000 {
471+
label = "fip";
472+
reg = <0x00060000 0x1fa0000>;
473+
};
474+
475+
partition@2000000 {
476+
label = "user";
477+
reg = <0x2000000 0x2000000>;
478+
};
479+
};
480+
};
481+
};

0 commit comments

Comments
 (0)