]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: rzg3e-smarc-som: Enable serial NOR FLASH
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 8 May 2025 18:31:04 +0000 (19:31 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Jun 2025 07:58:34 +0000 (09:58 +0200)
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>
Link: https://lore.kernel.org/20250508183109.137721-3-biju.das.jz@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg3e-smarc-som.dtsi

index ecea29a76b144ef6869e8a92a1b395e09cc8ac83..f99a09d04ddd41f876397a4c7214549850f0cadf 100644 (file)
                        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 {
 &wdt1 {
        status = "okay";
 };
+
+&xspi {
+       pinctrl-0 = <&xspi_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               vcc-supply = <&reg_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>;
+                       };
+               };
+       };
+};