Hi Team ,
We are interfacing bmi27 into Renesas-rzg2n-yocto-sdk3.0.3-kernel-5.10.158, ported the bmi270 driver into.
driver/hwmon/bmi270 which is hocked onto i2c0 and my dts dts entries is as follows:
&i2c0 { clock-frequency = <400000>; status = "okay"; bmi2xy@69 { label = "GPIO2_04 Interrupt"; compatible = "bosch,bmi2xy"; reg = <0x69>; gpio = <&gpio2 4 GPIO_ACTIVE_LOW>; // gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>; interrupt-parent = <&gpio2>; interrupts = <4 IRQ_TYPE_EDGE_FALLING>; // interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; };};.
The pins used for Interrupts are: GPIO2_04 and GPIO2_03.
When I do the insmod I am getting the following error
root@hihope-rzg2n:~# insmod bmi270_i2c_driver.ko [ 32.801305] [ 32.801305] [I]6<BS_LOG><bmi2xy_probe><3298>bmi2xy sensor probe[ 32.808990] input: bmi2xy as /devices/virtual/input/input0[ 32.827154] [ 32.827154] [D]7<BS_LOG><bmi2xy_request_irq><3232>Interrupt mapped to GPIO Pin: 333[ 32.836434] gpio gpiochip2: (e6052000.gpio): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ[ 32.846403] gpio gpiochip2: (e6052000.gpio): unable to lock HW IRQ 4 for IRQ[ 32.853492] genirq: Failed to request resources for bmi2xy (irq 333) on irqchip gpio-rcar[ 32.861753] [ 32.861753] [E]3<BS_LOG><check_error><60>bmi2xy_request_irq: request IRQ failed with return code: -5[ 32.872477] [ 32.872477] [E]3<BS_LOG><check_error><60>bmi2xy_probe: sensor probe failed with return code: -5[ 32.882781] bmi2xy: probe of 0-0069 failed with error -5root@hihope-rzg2n:~# poweroff.
Please guide me what am I missing here and why interrupt is not getting register here.
Thanks and Regards,
Nagaraja