Skip to content

Commit 6b7642e

Browse files
frank-wAngeloGioacchino Del Regno
authored andcommitted
arm64: dts: mediatek: mt7988a-bpi-r4: configure spi-nodes
Configure and enable SPI nodes on Bananapi R4 board. Signed-off-by: Frank Wunderlich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
1 parent 0f63e96 commit 6b7642e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,38 @@
401401
status = "okay";
402402
};
403403

404+
&spi0 {
405+
pinctrl-names = "default";
406+
pinctrl-0 = <&spi0_flash_pins>;
407+
status = "okay";
408+
409+
spi_nand: flash@0 {
410+
compatible = "spi-nand";
411+
reg = <0>;
412+
spi-max-frequency = <52000000>;
413+
spi-tx-bus-width = <4>;
414+
spi-rx-bus-width = <4>;
415+
};
416+
};
417+
418+
&spi1 {
419+
status = "okay";
420+
};
421+
422+
&spi_nand {
423+
partitions {
424+
compatible = "fixed-partitions";
425+
#address-cells = <1>;
426+
#size-cells = <1>;
427+
428+
partition@0 {
429+
label = "bl2";
430+
reg = <0x0 0x200000>;
431+
read-only;
432+
};
433+
};
434+
};
435+
404436
&ssusb1 {
405437
status = "okay";
406438
};

0 commit comments

Comments
 (0)