Skip to content

Commit

Permalink
dts: nuvoton-npcm730-gsj: add spi-max-frequency property to spi-nor node
Browse files Browse the repository at this point in the history
Without this, probing the flash chip fails with

spi_master spi0: /ahb/fiu@fb000000/spi-nor@0 has no valid 'spi-max-frequency' property (-22)
spi_master spi0: Failed to create SPI device for /ahb/fiu@fb000000/spi-nor@0

With this patch, the flash chip is probed correctly:

spi-nor spi0.0: mx25l25635e (32768 Kbytes)
7 fixed-partitions partitions found on MTD device spi0.0

Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
  • Loading branch information
hskinnemoen authored and maxdog988 committed Jun 3, 2020
1 parent f5ad3b3 commit c9185ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/nuvoton-npcm730-gsj.dts
Expand Up @@ -78,6 +78,7 @@
status = "okay";
spi-nor@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <5000000>;
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
Expand Down

0 comments on commit c9185ea

Please sign in to comment.