12-19-2017 10:07 PM
Hi all,
I am trying to setup the device tree for MAX30102 I2c slave device. The i2c communications works OK but the interrupt pin of MAX30102 is connected to the GPIO MIO 53. I am want to be able to read this interrupt but I am unable to. It is a active low interrupt pin.
I tried to add this to my device tree but am unable to see it being detected in the cat /proc/interrupts.
Can anybody provide any insight?
here is my device tree :
gpio0: gpio@e000a000 {
compatible = "xlnx,zynq-gpio-1.0";
#gpio-cells = <0x2>;
clocks = <0x1 0x2a>;
gpio-controller;
interrupt-controller;
#interrupt-cells = <0x2>;
interrupt-parent = <0x3>;
interrupts = <0x0 0x14 0x4>;
reg = <0xe000a000 0x1000>;
emio-gpio-width = <0x40>;
gpio-mask-high = <0x0>;
gpio-mask-low = <0x5600>;
linux,phandle = <0x5>;
phandle = <0x5>;
};
i2c@e0004000 {
compatible = "cdns,i2c-r1p10";
status = "okay";
clocks = <0x1 0x26>;
interrupt-parent = <0x3>;
interrupts = <0x0 0x19 0x4>;
reg = <0xe0004000 0x1000>;
#address-cells = <0x1>;
#size-cells = <0x0>;
clock-frequency = <0x61a80>;
max30100@57 {
compatible = "maxim,max30102";
reg = <0x57>;
maxim,red-led-current-microamp = <7000>;
maxim,ir-led-current-microamp = <7000>;
interrupt-parent = <&gpio0>;
interrupts = <53 8>;
};
};
Thanks in advance.
12-22-2017 04:10 PM
bumping it .. any comments