AnsweredAssumed Answered

Activating interrupt in device tree

Question asked by Ari Savolainen on Apr 8, 2016
Latest reply on Apr 11, 2016 by Ari Savolainen

We have attached ar1021 i2c touch controller to our product which uses Kontron SMARC Soc. How can I define it in device tree?

 

ar1021 i2c touch controller's interrupt line is connected to the pin P109 which is defined in 'SMARC sMAX6i' manual as

 

Pin
Signal
Direction
Termination
Type/tol
Controller
Controller PIn name
Port dl
Port solo
iomux instance
P109GPIO1 / CAM1_PWR#Bi-DirPU-470kCMOS / VDD_IOiMX6EIM_DA1GPIO3_IO01GPIO3_IO01ALT5 / ALT5

 

 

I have tried define ar1021 in device tree as below. Driver loads proberly but interrupt callback function is never called.

 

 

&i2c3

{

  

status = "okay";

 

 

 

 

ar1021@4D {

compatible = "microchip,ar1021-i2c";

reg = <0x4D>;

interrupt-parent = <&gpio3>;

interrupts = <1 IRQ_TYPE_EDGE_FALLING>;

wakeup-gpios = <&gpio3 1 IRQ_TYPE_LEVEL_HIGH>;

      

};

 

};

 

 

Problem seems to be that interrupt for PIN P109 is not defined correctly. Any ideas?

Outcomes