diff --git a/arch/arm64/boot/dts/rockchip/overlay/Makefile b/arch/arm64/boot/dts/rockchip/overlay/Makefile index 71e8b4fea688..f017a7d9dd5c 100644 --- a/arch/arm64/boot/dts/rockchip/overlay/Makefile +++ b/arch/arm64/boot/dts/rockchip/overlay/Makefile @@ -88,6 +88,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \ khadas-edge2-cam3.dtbo \ nanopi-m6-display-dsi0-yx35.dtbo \ nanopi-m6-display-dsi1-yx35.dtbo \ + nanopi-m6-spi-nor-flash.dtbo \ rockchip-rk3588-opp-oc-24ghz.dtbo \ rockchip-rk3588-panthor-gpu.dtbo \ rk3566-roc-pc-sata2.dtbo \ diff --git a/arch/arm64/boot/dts/rockchip/overlay/nanopi-m6-spi-nor-flash.dts b/arch/arm64/boot/dts/rockchip/overlay/nanopi-m6-spi-nor-flash.dts new file mode 100755 index 000000000000..eb1220bf0448 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/overlay/nanopi-m6-spi-nor-flash.dts @@ -0,0 +1,47 @@ +/dts-v1/; +/plugin/; + +/ { + fragment@0 { + target = <&sdhci>; + + __overlay__ { + status = "disabled"; + }; + }; + + fragment@1 { + target = <&sfc>; + + __overlay__ { + max-freq = <50000000>; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&fspim0_pins>; + status = "okay"; + + spi_flash: spi-flash@0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-max-frequency = <50000000>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <4>; + status = "okay"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + loader@0 { + label = "loader"; + reg = <0x0 0x1000000>; + }; + }; + }; + }; + }; +}; \ No newline at end of file