petalinux spidev
zynq linux 开发spidev 驱动其实十分简单。自己参考这个文章顺风顺水。MicroZed Chronicles: Using SPIDev in PetaLinux - Hackster.io结果自己linux 启动之后死活找不到对应设备。最后官网一个文章里面一个小角落才发现xilinx 把驱动的compatiable 属性改了。The following device tree changes illustrate using the spidev driver with the first SPI Controller and making the second SPI Controller a slave. Note the compatible string for the spidev driver no longer works with “spidev” as it once did such that any compatible device from the spidev driver, such as “lwn,bk4”, can be used in the device tree.更换设备树compatible lwn,bk4;petalinux 重新编译。build boot ok结束。