]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: renesas: r9a06g032-rzn1d400-db: Add QSPI node including NOR flash
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 5 Mar 2026 21:54:04 +0000 (22:54 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Mar 2026 10:55:21 +0000 (11:55 +0100)
Enable the QSPI controller to access the connected SPI NOR flash. The
NOR datasheet may suggest faster tuning parameters but those did not
work on my board.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20260305220023.28257-2-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-db.dts

index 4a72aa7663f252cfadf3ad02498e76d70a283dfe..b720c001e77680a9c5310719c509e375a6b104b1 100644 (file)
                pinmux = <RZN1_PINMUX(152, RZN1_FUNC_MDIO1_SWITCH)>,
                         <RZN1_PINMUX(153, RZN1_FUNC_MDIO1_SWITCH)>;
        };
+
+       pins_qspi0: pins-qspi0 {
+               pinmux = <RZN1_PINMUX(74, RZN1_FUNC_QSPI)>,
+                        <RZN1_PINMUX(75, RZN1_FUNC_QSPI)>,
+                        <RZN1_PINMUX(76, RZN1_FUNC_QSPI)>,
+                        <RZN1_PINMUX(77, RZN1_FUNC_QSPI)>,
+                        <RZN1_PINMUX(78, RZN1_FUNC_QSPI)>,
+                        <RZN1_PINMUX(79, RZN1_FUNC_QSPI)>;
+               bias-disable;
+       };
+};
+
+&qspi0 {
+       pinctrl-0 = <&pins_qspi0>;
+       pinctrl-names = "default";
+       status = "okay";
+       bootph-all;
+
+       flash@0 {
+               reg = <0>;
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <62500000>;
+               spi-rx-bus-width = <4>;
+               spi-tx-bus-width = <4>;
+               cdns,read-delay = <1>;
+               cdns,tshsl-ns = <200>;
+               cdns,tsd2d-ns = <255>;
+               cdns,tchsh-ns = <20>;
+               cdns,tslch-ns = <20>;
+               bootph-all;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               /* 64KiB */
+                               label = "spl";
+                               reg = <0x0000000 0x00010000>;
+                       };
+                       partition@10000 {
+                               /* 64KiB */
+                               label = "pkgt";
+                               reg = <0x0010000 0x00010000>;
+                       };
+                       partition@20000 {
+                               /* 512KiB */
+                               label = "u-boot";
+                               reg = <0x0020000 0x00080000>;
+                       };
+                       partition@a0000 {
+                               /* 64KiB */
+                               label = "env";
+                               reg = <0x00a0000 0x00010000>;
+                       };
+                       partition@b0000 {
+                               /* 128KiB */
+                               label = "dtb";
+                               reg = <0x00b0000 0x00020000>;
+                       };
+                       partition@d0000 {
+                               /* 1MiB */
+                               label = "cm3";
+                               reg = <0x00d0000 0x00100000>;
+                       };
+                       partition@1d0000 {
+                               /* 6MiB */
+                               label = "kernel";
+                               reg = <0x01d0000 0x00600000>;
+                       };
+                       partition@7d0000 {
+                               /* Remaining */
+                               label = "data";
+                               reg = <0x07d0000 0x1830000>;
+                       };
+               };
+       };
 };
 
 &rtc0 {