工具/软件:Linux
Hallo、
我已将器件配置为使用中断、请您验证我的配置。 我是这方面的新手。
在电路板原理图 I 中、要使用的 GPIO 是 GP6[20]。 那么、我认为这个 GPIO 是6x32+20 = 212、对吧?
Devcie 树:(器件的节点)
qca7000@0{ compatible ="QCA、qca7000"; reg =<0>; interrupt-parent =<&GPIO6>; interrupts =<20 1>; spi-cpha; SPI-cpol; SPI-max-frequency =<8000000>; local-mac-address =[ FA DB 12 79 8C 9D ]; /* QCA、legace-mode;*/ };
该器件位于 SPI1的 CS0上。 SPI1正常工作。 我通过连接 MISO 和 MOSI 使用 spidev_test 对此进行了测试。
器件树中的中断配置是否正确?
CAT /proc/interrupts:(eth2是上述器件)
223: 876 0 4805d000.GPIO 20边缘 ETH2
这是 GPIO 组:
GPIO6:GPIO@4805d000{ compatible ="ti、OMAP4-GPIO"; reg =<0x4805d000 0x200>; interrupts = ; ti、hwmods ="gpio6"; gpio-controller; #gpio-cells =<2>; 中断控制器; #interrupt-cells =<2>; };
所以。 在我看来、中断配置正确、对吧?
谢谢。