linux SPI驱动程序(/drivers/spi/spi-altera.c)是否适用于QSYS软SPI IP(3线串行)?-Altera-Intel社区-FPGA CPLD-ChipDebug

linux SPI驱动程序(/drivers/spi/spi-altera.c)是否适用于QSYS软SPI IP(3线串行)?

是。 linux SPI驱动程序(/drivers/spi/spi-altera.c)适用于Qsys软SPI IP(3线串行)。

解决/修复方法

您可以通过参考以下内容将SPI(3线串行)IP连接到h2f_lw网桥并创建器件树:

spi_0:spi @ 0x100020000 {
compatible =“altr,spi-15.1”,“altr,spi-1.0”;
reg = <0x00000001 0x00020000 0x00000020>;
interrupt-parent = <&hps_0_arm_gic_0>;
中断= <0 42 4>;
clocks = <&clk_0>;
#address-cells = <1>;
#size-cells = <0>;
bus-num = <0>;
num-chipselect = <1>;
status =“好的”;

spidev0_fpga:spidev @ 0 {
compatible =“rohm,dh2228fv”; / *来自boardinfo * /
reg = <0>; / *来自boardinfo * /
spi-max-frequency = <2500000>; / *来自boardinfo * /
}; //结束spidev @ 0
}; // end spi @ 0x100020000(spi_0)

请登录后发表评论

    没有回复内容