Request irq line conflict with tegra234-cbb

  • Basic Info:

hardware: jetson-agx-orin-devkit
JetPack : 6.2
Jetson Linux : 36.4.3

  • issue: in device driver request irq line error

Porting wk2xxx driver got error while request irq, detail error message as attach console.txt

console.txt (44.4 KB)

using H53 as irq line config as below

image

using request irq function as below

irq-gpios = <&gpio TEGRA234_MAIN_GPIO(P, 1) IRQ_TYPE_LEVEL_LOW>;

of_get_named_gpio_flags(dev->of_node, “irq-gpios”, 0,&irq_flags);

irq = gpio_to_irq(*irq_gpio);

gpio_request(*irq_gpio , “irq_gpio”))

in function request irq which may result in below error, I cann’t quite get understand, seems like the gpio can not be using as irq line or am I config wrong?

[ 24.284341] wk2xxxuart: probe of 3100000.serial failed with error -5
[ 24.454564] CPU:0, Error: cbb-fabric@0x13a00000, irq=191
[ 24.454571] **************************************
[ 24.454572] CPU:0, Error:cbb-fabric, Errmon:2
[ 24.454578] Error Code : TIMEOUT_ERR
[ 24.454579] Overflow : Multiple TIMEOUT_ERR
[ 24.454587]
[ 24.454587] Error Code : TIMEOUT_ERR
[ 24.454588] MASTER_ID : CCPLEX
[ 24.454589] Address : 0x3100098
[ 24.454590] Cache : 0x1 – Bufferable
[ 24.454591] Protection : 0x2 – Unprivileged, Non-Secure, Data Access
[ 24.454592] Access_Type : Read
[ 24.454593] Access_ID : 0x14
[ 24.454594] Fabric : cbb-fabric
[ 24.454594] Slave_Id : 0x3b
[ 24.454595] Burst_length : 0x0
[ 24.454595] Burst_type : 0x1
[ 24.454596] Beat_size : 0x2
[ 24.454596] VQC : 0x0
[ 24.454597] GRPSEC : 0x7e
[ 24.454597] FALCONSEC : 0x0
[ 24.454600] AXI2APB_9_BLOCK_TMO_STATUS : 0x20
[ 24.454602] AXI2APB_9_BLOCK5_TMO : 0x80
[ 24.454603] **************************************
[ 24.454620] WARNING: CPU: 0 PID: 0 at drivers/soc/tegra/cbb/tegra234-cbb.c:608 tegra234_cbb_isr+0x144/0x190

[ 24.284096] gpio gpiochip0: (tegra234-gpio): gpiochip_lock_as_irq: tried to flag a GPIO set as output for IRQ
[ 24.284098] gpio gpiochip0: (tegra234-gpio): unable to lock HW IRQ 93 for IRQ
[ 24.284100] genirq: Failed to request resources for 3100000.serial (irq 301) on irqchip 2200000.gpio

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, it appears that you are experiencing an issue with requesting an IRQ line on the Jetson AGX Orin device. The error message indicates that there is a problem with the GPIO configuration, specifically with using the H53 pin as an IRQ line.

After reviewing the provided information, I noticed that there are several topics related to CAN bus and GPIO configuration on the Jetson AGX Orin device. However, none of them seem to directly address the issue you are experiencing.

That being said, I can provide some general information about GPIO configuration on the Jetson AGX Orin device. The 40-pin GPIO expansion header on the Jetson AGX Orin device exposes audio I/O connections, and it can be used to connect various audio cards to the device. When choosing an audio codec to use with the Jetson AGX Orin device, it is essential to ensure that it is hardware-compatible in terms of functional pins (I2S, DMIC, etc.), GPIO, power, and clocks required to support the codec.

Regarding the IRQ line configuration, it is possible that the issue is related to the way you are requesting the IRQ line. The request_irq function is used to request an IRQ line, and it takes several parameters, including the IRQ number, the IRQ flags, and the device name.

To troubleshoot the issue, I would recommend checking the following:

  1. Ensure that the H53 pin is correctly configured as an IRQ line in the device tree.
  2. Verify that the IRQ number and flags are correctly set when calling the request_irq function.
  3. Check the kernel logs for any error messages related to IRQ configuration or GPIO setup.

If you are still experiencing issues, it may be helpful to provide more information about your setup, including the device tree configuration and the code that is calling the request_irq function.

In comparison to other topics related to CAN bus and GPIO configuration on the Jetson AGX Orin device, it appears that this issue is specific to IRQ line configuration and may not be directly related to CAN bus or GPIO setup. However, it is possible that there are some underlying issues with the GPIO configuration that are causing the problem.

In terms of known issues, there are several topics related to CAN bus and GPIO configuration on the Jetson AGX Orin device, including issues with CAN message detection, GPIO pin configuration, and CAN configuration and suspension. However, none of these topics seem to directly address the issue you are experiencing.

Overall, it appears that the issue you are experiencing is specific to IRQ line configuration on the Jetson AGX Orin device, and it may require further troubleshooting and debugging to resolve.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***