Hi everybody,
Recently I transplanted an i2c device to FreeBSD on Raspberry 3b+, and needed to use a GPIO interrupt function. When using the gpio_alloc_intr_resource () function, it always returned NULL. I don’t know what went wrong.
And attach DTS configuration :
Recently I transplanted an i2c device to FreeBSD on Raspberry 3b+, and needed to use a GPIO interrupt function. When using the gpio_alloc_intr_resource () function, it always returned NULL. I don’t know what went wrong.
And attach DTS configuration :
Code:
touchscreen@5d {
compatible = "goodix,gt9886";
reg = <0x5d>;
interrupt-parent = <&gpio>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
goodix,irq-gpio = <&gpio 6 GPIO_ACTIVE_HIGH>;
};