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>;
};
};
这次在在上述板子上,依然按照上面的方法忽然就不行了,报错信息如下:
spidev spi32766.0: buggy DT: spidev listed directly in DT
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:719 spidev_probe+0x16c/0x1a0
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0 #21
Hardware name: Xilinx Zynq Platform
[<c0015930>] (unwind_backtrace) from [<c0012648>] (show_stack+0x10/0x14)
[<c0012648>] (show_stack) from [<c01ae354>] (dump_stack&#