rockchip64-6.12: add spi flash overlay for NanoPi M6

This commit is contained in:
Muhammed Efe Cetin
2025-02-16 21:20:56 +03:00
committed by Igor
parent 3a1b8b4553
commit 8e825e7f9d
2 changed files with 32 additions and 1 deletions

View File

@@ -90,7 +90,8 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-rk3588-uart6-m1.dtbo \
rockchip-rk3588-uart7-m2.dtbo \
rockchip-rk3588-uart8-m1.dtbo \
rockchip-rk3588-rkvenc-overlay.dtbo
rockchip-rk3588-rkvenc-overlay.dtbo \
rockchip-rk3588-nanopi-m6-spi-nor-flash.dtbo
scr-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-fixup.scr

View File

@@ -0,0 +1,30 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&sdhci>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&sfc>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&fspim0_pins>;
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-max-frequency = <50000000>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <1>;
};
};
};
};