Enable ARM PL330 DMA engine and Cadence Quad SPI flash controller on

Intel Arria 10 SoC boards.

Tested on Intel Arria 10 SoC Development Kit.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2018-04-23 12:23:05 +00:00
parent 849eeaa592
commit 05439eb571
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332887
2 changed files with 40 additions and 0 deletions

View File

@ -47,6 +47,10 @@ options INTRNG
# ARM MPCore timer
device mpcore_timer
# DMA support
device xdma
device pl330
# MMC/SD/SDIO Card slot support
device mmc # mmc/sd bus
device mmcsd # mmc/sd flash cards
@ -80,6 +84,8 @@ device iicbus
# SPI
device spibus
device cqspi
device n25q
# Ethernet
device ether

View File

@ -84,3 +84,37 @@
&usb0 {
dr_mode = "host";
};
&qspi {
status = "okay";
dmas = <&pdma 24>, <&pdma 25>;
dma-names = "tx", "rx";
flash0: n25q00@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "n25q00aa";
reg = <0>;
spi-max-frequency = <100000000>;
m25p,fast-read;
cdns,page-size = <256>;
cdns,block-size = <16>;
cdns,read-delay = <4>;
cdns,tshsl-ns = <50>;
cdns,tsd2d-ns = <50>;
cdns,tchsh-ns = <4>;
cdns,tslch-ns = <4>;
partition@qspi-boot {
label = "boot";
reg = <0x0 0x2720000>;
};
partition@qspi-rootfs {
label = "rootfs";
reg = <0x2720000 0x58E0000>;
};
};
};