UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor sbansal
Visitor
751 Views
Registered: ‎10-11-2017

MIO 53 as interrupt for I2c slave device MAX30102

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.

0 Kudos
1 Reply
Visitor sbansal
Visitor
688 Views
Registered: ‎10-11-2017

Re: MIO 53 as interrupt for I2c slave device MAX30102

bumping it .. any comments

0 Kudos