Skip to content

Commit

Permalink
arm64: dts: rockchip: add SPI NOR flash overlay for NanoPi M6
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn authored and igorpecovnik committed Jan 4, 2025
1 parent 6693dbc commit 7b85bca
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
47 changes: 47 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlay/nanopi-m6-spi-nor-flash.dts
Original file line number Diff line number Diff line change
@@ -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>;
};
};
};
};
};
};

0 comments on commit 7b85bca

Please sign in to comment.