Are you working on the devkit or custom board for AGX Orin?
What’s the Jetpack version in use?
It seems the example you are referring is for T194(Xavier series) rather than T234(Orin series).
May I know what’s your use case for Hardware Timestamp?
Sorry for the confusion. I just copy the code from hte-tegra194-test.c code description.
But this is the same driver for t194 and t234.
I am using AGX Orin devkit and R36.3.0.
I want to see what other interrupts I can monitoring, and what is the value that I have to use. For example, the documentation says 0x19 is the interrupt of i2c controller 1. So what is the value if I want to use the interrupt of the i2c controller 2 or what other interrupts I can use.
In the bindings directory (kernel-jammy-src/Documentation/devicetree/bindings/timestamp/hte-consumer.yaml) I have seen this documentation and this example:
I know 0x19 is the I2C bus 1 interrupt, but I want to know how this value is computed, or For example If I need the Interrupt value for I2C bus 2, Where i can see the value required?
Thank you for your question. I believe there’s some confusion regarding the role of 0x19. In fact, 0x19 refers to the IRQ number assigned to the I²C controller at a specific memory address (in your case, likely 3160000.i2c), not directly to I²C bus 1.
How IRQ Values Are Computed:
IRQ numbers like 0x19 are pre-assigned by the system based on the hardware configuration. These IRQ numbers are not “computed” by the user but are set by the platform’s hardware design and its device tree configuration. For example, on your system, IRQ 0x19 (which is 25 in decimal) is assigned to the I²C controller at address 3160000.i2c. This controller likely handles bus 1, but the IRQ is tied to the controller, not the bus itself.
Finding the IRQ for I²C Bus 2:
If you need to find the IRQ for another I²C controller (such as the one handling I²C bus 2), you can check your system’s device tree or /proc/interrupts. Here are a couple of methods:
Device Tree: The device tree (.dts or .dtb file) defines the hardware layout, including the I²C controllers and their IRQ assignments. Look for the section that defines the I²C controller for bus 2.Example entry:
dts
i2c@3180000 { // This could represent I²C bus 2
compatible = "some-i2c-controller";
reg = <0x03180000 0x1000>;
interrupts = <0x1A>; // This is the IRQ for this I²C controller
...
};
/proc/interrupts: You can also view the current IRQ assignments for all devices on your system by running:
bash
cat /proc/interrupts
This will list the IRQ numbers along with the corresponding device names (including the I²C controllers).
Let me know if you need further clarification on this.
Best regards,
ViziochronAI
Moreover, you may also like to check corresponding information here
Andre