UIO not detecting interrupts in LX2160A

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UIO not detecting interrupts in LX2160A

1,483件の閲覧回数
SWETHA1
Contributor I

Hi,
We are using a custom board based on LX2160ARDB , 
The configs enabled as:
CONFIG_UIO=m
CONFIG_UIO_CIF=y
CONFIG_UIO_PDRV_GENIRQ=m

The device tree entry used is
/*UIO5 gpio3_5 npu_48v*/
INA237_NPU_48V@5{
compatible = "mydevice,generic-uio,ui_pdrv";
status = "okay";
interrupt-parent = <&gpio2>;
interrupts = <5 2>;
};

I am now getting the uio file as /dev/uio5 <screenshot attached>

 When tested using sample applications and also tried as:
https://yurovsky.github.io/2014/10/10/linux-uio-gpio-interrupt.html
https://www.kernel.org/doc/html/latest/driver-api/uio-howto.html#how-uio-works 
In any of the above, I am not getting alerts triggered.

But when exported as GPIO and used I can get the values triggered as I activate the alarms and disable it.

When read the register:
devmem2 0x1F70010 w 
shows 0xF77 //when no interrupt given
shows 0xF57//when interrupt was given

Could you clarify me on why I am not getting alerts notified in UIO file?

ラベル(2)
0 件の賞賛
返信
1 返信

1,412件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following update from the AE team.

This feature was not supported by LSDK. So no support provided for it.
Customer should debug it themselves.

0 件の賞賛
返信