linux 添加spi 驱动,Linux 设备树添加spi设备

Linux:4.6

应用开发板:zynq系列 zc706、zedboard

文件系统:ubuntu12

参考帖子:https://stackoverflow.com/questions/53634892/linux-spidev-why-it-shouldnt-be-directly-in-devicetree

之前实验过spi控制器下面挂载spi设备,当时,关于spi设备树的节点描述如下:

spi@e0007000 {

compatible = "xlnx,zynq-spi-r1p6";

reg = <0xe0007000 0x1000>;

status = "okay";

interrupt-parent = <0x3>;

interrupts = <0x0 0x31 0x4>;

clocks = <0x1 0x1a 0x1 0x23>;

clock-names = "ref_clk", "pclk";

#address-cells = <0x1>;

#size-cells = <0x0>;

num-cs = <0x1>;

device@0{

compatible = "spidev";

reg = <0x0>;

spi-max-frequency = <0x100000>;

};

};

你可能感兴趣的:(linux,添加spi,驱动)