Quad-SPI接口(QUADSPI外设)用于将处理器与串行NOR闪存和串行NAND闪存接口。
特性:

  • Single,dual或quad SPI闪存

  • dual-flash模式,允许将两个闪存聚合为虚拟单个闪存

  • 双数据速率和内存映射模式。

 

DomainPeripheralRuntime allocationComment   
InstanceCortex-A7
secure
(OP-TEE)
Cortex-A7
non-secure
(Linux)
Cortex-M4
(STM32Cube)
   
Mass storageQUADSPIQUADSPIAssignment (single choice)

A7使用QSPI

&qspi {
	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
	pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
	reg = <0x58003000 0x1000>, <0x70000000 0x4000000>;
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	flash0: mx25l25635f@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-rx-bus-width = <4>;
		spi-max-frequency = <108000000>;
		#address-cells = <1>;
		#size-cells = <1>;
	};
};

CM4使用QSPI

&qspi {
	status = "disabled";
};

&m4_qspi {
	pinctrl-names = "rproc_default";
	pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;
	status = "okay";
};
作者:SteveChen  创建时间:2024-09-18 14:43
最后编辑:SteveChen  更新时间:2024-09-18 14:44
上一篇:
下一篇: