Skip to content

Commit

Permalink
ipq806x: Askey RT4230W REV6: enable onboard spi flash
Browse files Browse the repository at this point in the history
There is a mr25h256 spi flash on this machine. From the mtd backup
of the stock firmware, this spi flash is empty.

[    3.652745] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16,
fifo:64
[    3.653925] spi-nor spi0.0: mr25h256 (32 Kbytes)

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
  • Loading branch information
aiamadeus authored and hauke committed Apr 16, 2022
1 parent 6f1efb2 commit eee41e3
Showing 1 changed file with 29 additions and 0 deletions.
Expand Up @@ -96,6 +96,35 @@
input-disable;
};
};

spi_pins: spi_pins {
cs {
pins = "gpio20";
drive-strength = <12>;
};
};
};

&gsbi5 {
qcom,mode = <GSBI_PROT_SPI>;
status = "okay";

spi@1a280000 {
status = "okay";

pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";

cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;

flash@0 {
compatible = "everspin,mr25h256";
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <40000000>;
reg = <0>;
};
};
};

&nand {
Expand Down

0 comments on commit eee41e3

Please sign in to comment.