Questions tagged «interrupts»

1
如何编写模拟设备触摸屏ad7879 i2c的设备树覆盖图
我为驱动程序ad78​​79-i2c触摸屏(使用Raspberry Pi源作为模块编译为模块,文件:ad7879-i2c.c,ad7879.c)编写了设备树覆盖图。驱动程序被加载,但是我想参数没有传递给驱动程序。设备位于i2c1、0x2c地址,GPIO 26(BCM 12)上。evtest显示驱动程序的默认参数,并且触摸屏根本不起作用。 在/boot/config.txt中: dtparam=i2c_arm=on dtoverlay=i2c-ad7879 在/ etc / modules中: i2c-bcm2708 i2c-dev gpio readall的输出: +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | | | 3.3v | | | 1 || …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.