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>;
            };
        };

这次在在上述板子上,依然按照上面的方法忽然就不行了,报错信息如下:

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&#

  • 4
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值