drivers: mspi: add APMemory APS Z8 pSRAM driver
The APS Z8 driver would just support APS51216BA for now. Signed-off-by: Swift Tian <swift.tian@ambiq.com>
This commit is contained in:
parent
f5b201e0d6
commit
8ef0792eec
11 changed files with 837 additions and 6 deletions
|
@ -19,4 +19,11 @@ config MSPI_INIT_PRIORITY
|
|||
|
||||
endif # MSPI
|
||||
|
||||
if MEMC
|
||||
|
||||
config MEMC_INIT_PRIORITY
|
||||
default 50
|
||||
|
||||
endif # MEMC
|
||||
|
||||
endif # BOARD_APOLLO510_EVB
|
||||
|
|
|
@ -120,6 +120,47 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&mspi0 {
|
||||
pinctrl-0 = <&mspi0_default>;
|
||||
pinctrl-1 = <&mspi0_sleep>;
|
||||
pinctrl-2 = <&mspi0_psram>;
|
||||
pinctrl-names = "default","sleep","psram";
|
||||
status = "disabled";
|
||||
zephyr,pm-device-runtime-auto;
|
||||
|
||||
ce-gpios = <&gpio192_223 7 GPIO_ACTIVE_LOW>;
|
||||
|
||||
cmdq-buffer-location = "SRAM_NO_CACHE";
|
||||
cmdq-buffer-size = <256>;
|
||||
|
||||
ambiq,apmemory;
|
||||
|
||||
dqs-support;
|
||||
|
||||
aps51216ba: aps_z8@0 {
|
||||
compatible = "ambiq,mspi-device", "mspi-aps-z8";
|
||||
size = <DT_SIZE_M(512)>;
|
||||
reg = <0>;
|
||||
status = "disabled";
|
||||
mspi-max-frequency = <125000000>;
|
||||
mspi-io-mode = "MSPI_IO_MODE_HEX_8_8_16";
|
||||
mspi-data-rate = "MSPI_DATA_RATE_S_D_D";
|
||||
mspi-hardware-ce-num = <0>;
|
||||
mspi-dqs-enable;
|
||||
read-command = <0x20>;
|
||||
write-command = <0xA0>;
|
||||
command-length = "INSTR_1_BYTE";
|
||||
address-length = "ADDR_4_BYTE";
|
||||
rx-dummy = <7>;
|
||||
tx-dummy = <8>;
|
||||
xip-config = <1 0 DT_SIZE_M(64) 0>;
|
||||
ce-break-config = <1024 4>;
|
||||
ambiq,timing-config-mask = <0x62>;
|
||||
ambiq,timing-config = <8 7 1 0 0 3 10 0>;
|
||||
zephyr,pm-device-runtime-auto;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio0_31 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue