TX2 TCA9539 GPIO Interrupt

Hi, kind NVIDIA and everyone!
Please tell me how could I process the GPIO input interrupt from TCA9539(U28 of Jetson-TX2 kit)'s P01 input pin at my custom .so program.

Q1: I think that I have to make DTB as below:

//gen7_i2c: i2c@31c0000
i2c@31c0000 {
	gpio_i2c_6_74: gpio@74 {
		compatible = "ti,tca9539";
		reg = <0x74>;
		gpio-controller;
		#gpio-cells = <2>;
		vcc-supply = <&battery_reg>;
			
		interrupt-parent = <&gpio0>;
		interrupts = <99 IRQ_TYPE_EDGE_BOTH>;
		#interrupt-cells = <2>;
		interrupt-controller;
	};

But, I don’t know how write the “interrupt-parent” and “interrupts”
Q2: As above without “interrupt”, I could test GPIO input using gpio-fs.
But at this time, the “gpio240/edge” file was not generated.
Please tell me the reason and my mistake.
Q3: After I make DTB successfully, how can I get the interrupt signal at my .so program?

Thanks,
Regards, aither.

hello 3273977271,

please refer to Tegra Linux Driver Package TX1 Adaptation Guide, check page.12 for the GPIO interrupt reference.
thanks