]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: dts: sophgo: Enable SPI NOR node for SG2042_EVB_V2
authorZixian Zeng <sycamoremoon376@gmail.com>
Tue, 16 Sep 2025 13:22:53 +0000 (21:22 +0800)
committerInochi Amaoto <inochiama@gmail.com>
Tue, 18 Nov 2025 01:17:55 +0000 (09:17 +0800)
Enable SPI NOR node for SG2042_EVB_V2 device tree

According to SG2042_EVB_V2 schematic, SPI-NOR Flash cannot support QSPI
due to hardware design. Thus spi-(tx|rx)-bus-width must be set to 1.

Signed-off-by: Han Gao <rabenda.cn@gmail.com>
Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com>
Link: https://lore.kernel.org/r/20250916-sfg-spidts-v2-4-b5d9024fe1c8@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
arch/riscv/boot/dts/sophgo/sg2042-evb-v2.dts

index 0cd0dc0f537c14245540e5c398c2a04d221bb846..b2ceae2d8829ec16c99c2ea2b040c433b819093e 100644 (file)
        status = "okay";
 };
 
+&spifmc1 {
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <50000000>;
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <1>;
+       };
+};
+
 &uart0 {
        pinctrl-0 = <&uart0_cfg>;
        pinctrl-names = "default";