boards: riscv: hifive: disable spi0 and flash0 by default
When flash connected to spi0 is used as ROM Flash, it can't be instantiated. spi0 is in fact disabled now with CONFIG_SIFIVE_SPI_0_ROM, which defaults to y. However, the child flash device is not. This causes issues with tests relying on `jedec,spi-nor` because they can't find a parent device. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
1e2dbf075d
commit
aa1988f0ca
|
@ -50,12 +50,12 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
/* disabled (used by Flash ROM by default) */
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
|
||||
flash0: flash@0 {
|
||||
compatible = "issi,is25lp128", "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
size = <134217728>;
|
||||
label = "FLASH0";
|
||||
jedec-id = [96 60 18];
|
||||
|
|
|
@ -92,12 +92,12 @@
|
|||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
/* disabled (used by Flash ROM by default) */
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
reg = <0x10014000 0x1000 0x20010000 0x3c0900>;
|
||||
flash0: flash@0 {
|
||||
compatible = "issi,is25lp128", "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
size = <134217728>;
|
||||
label = "FLASH0";
|
||||
jedec-id = [96 60 18];
|
||||
|
|
|
@ -46,12 +46,12 @@
|
|||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
/* disabled (used by Flash ROM by default) */
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
reg = <0x10040000 0x1000 0x20000000 0x2000000>;
|
||||
flash0: flash@0 {
|
||||
compatible = "issi,is25wp256d", "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
size = <33554432>;
|
||||
label = "FLASH0";
|
||||
jedec-id = [96 60 18];
|
||||
|
|
|
@ -27,12 +27,12 @@
|
|||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
/* disabled (used by Flash ROM by default) */
|
||||
&spi0 {
|
||||
status = "okay";
|
||||
|
||||
reg = <0x10040000 0x1000 0x20000000 0x2000000>;
|
||||
flash0: flash@0 {
|
||||
compatible = "issi,is25wp256d", "jedec,spi-nor";
|
||||
status = "disabled";
|
||||
size = <33554432>;
|
||||
label = "FLASH0";
|
||||
jedec-id = [96 60 18];
|
||||
|
|
Loading…
Reference in a new issue