by
Kyra » Sun Dec 13, 2020 4:09 pm
Ah, I've SPI flash working just fine now. Apparently DMA support (ARM PL330) is essential for correct (well, any) operation of the Rockchip SPI driver. Whoops! I haven't tried booting off of it yet.
For anyone curious, here's what my devtree entry looks like:
Code: Select all
&spi0 {
spiflash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q128fv", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
};
status = "okay";
};
From there you'll get an mtd0 device which you can use with flashrom (--programmer linux_mtd).