Intel Atom板上的spidev Linux驱动程序 [英] spidev Linux driver on Intel Atom board

查看:102
本文介绍了Intel Atom板上的spidev Linux驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux上在控创基于Atom的SMARC-sXBTi板上开发SPI.

I am working on bringing up SPI on Kontron's Atom-based SMARC-sXBTi board under Linux.

控创提供了Yocto BSP,但它不包含SPI驱动程序.

Kontron provided Yocto BSP but it does not include SPI driver.

我重建了带有SPI支持的Linux.我可以在lspci和sysfs中看到SPI控制器,这些SPI PCI设备已绑定到pca2xx_spi_pci驱动程序.

I rebuilt Linux with SPI support. I can see the SPI controller in lspci and in sysfs the SPI PCI device is bound to pca2xx_spi_pci driver.

据我了解,这是一个平台驱动程序,它不公开用户模式API,我需要spidev才能通过/dev/spidev进行工作,但是当我modeprobe spidev时,我什么都没看到:没有文件添加到/dev,dmesg中没有任何内容.

As I understand this is a platform driver which does not expose user mode API and I need spidev to be able to work via /dev/spidev but when I modeprobe spidev I don't see anything happening: no file added to /dev, nothing in dmesg.

我需要配置spidev吗? BSP不包括设备树. spidev如何找到其PCI SPI控制器并与其对话?

Do I need to configure spidev? The BSP does not include device tree. How can spidev find and talk to its PCI SPI controller?

推荐答案

我发现

I found that Valley Island (Baytrail) BSP provides much better hardware support for Kontron SMARC than Kontron BSP. It comes with spidev and other drivers necessary to access Atom peripherals.

与该问题没有直接关系(仅是为了通知那些在SXBTI SMARC平台上开发的人员):需要做一些与本BSP无关的事情:以太网和eMMC闪存.前者可以通过在内核中启用Intel IGB驱动程序来添加,后者可以...我仍在设法弄清楚.

Not directly related to the question (just to inform those developing on SXBTI SMARC platform): there are couple of things required which are not part of this BSP: Ethernet and eMMC flash. The former can be added by enabling Intel IGB driver in kernel, the latter... I'm still trying to figure it out.

这篇关于Intel Atom板上的spidev Linux驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆