Hello
System will use ADXL345 LINUX driver and needs to program interrupt source to INT1 pin. I'm wondering "devicetree" could support it, but not sure.
Q1. Could you tell if INT1/INT2 selection can be set by devicetree or not? in case devicetree support it, could you tell the sample parameter to program INT1 pin as interrupt source?
Q2: In case devicetree doesn't support it, is "changing driver code" needed to program INT1 as interrupt source?
Hi,
toshiyuki.muranaka@analog.com said:Q1. Could you tell if INT1/INT2 selection can be set by devicetree or not? in case devicetree support it, could you tell the sample parameter to program INT1 pin…
toshiyuki.muranaka@analog.com said:Q1. Could you tell if INT1/INT2 selection can be set by devicetree or not? in case devicetree support it, could you tell the sample parameter to program INT1 pin as interrupt source?
It seems that the driver does not have the feature to change between interrupt sources, or to enable different interrupts. This has to be added to the driver.
toshiyuki.muranaka@analog.com said:Q2: In case devicetree doesn't support it, is "changing driver code" needed to program INT1 as interrupt source?
Yes the driver code will have to be updated with this feature.
Regards,
Mircea