Hello,
Based on the documentation there are 2 HTE driver instances, GPIO GTE and LIC (Legacy Interrupt Controller) IRQ GTE
To use LIC IRQ GTE, the kernel has this example:
* tegra_hte_test {
* compatible = "nvidia,tegra194-hte-test";
. . .
* timestamps = <&tegra_hte_aon TEGRA194_AON_GPIO(BB, 1)>,
* <&tegra_hte_lic 0x19>;
* timestamp-names = "hte-gpio", "hte-i2c-irq";
* status = "okay";
* };
Where it uses 0x19 interrupt which is i2c controller 1.
How I can know the interrupt value for other i2c buses or which are all the interrupts values available for LIC IRQ GTE?
Regards,
Hi ManuelLeiva,
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.
Thanks.
Okay, I just want to note that TEGRA194_AON_GPIO(BB, 1)
is the definition for T194 series.
Have you also referred to hte-consumer.yaml
for details?
You have to locate the HTE Instances. Please check the device tree bindings for the Tegra HTE provider.
Yes, In my case I have an example working using AA0 and AA1 for HTE AON
#define GPIO_CAN0_DOUT TEGRA234_AON_GPIO(AA, 0)
#define GPIO_CAN0_DIN TEGRA234_AON_GPIO(AA, 1)
My question now is how to use the HTE LIC, What you mean with locate HTE instances?
This is the hte_lic instance:
hte_lic: hardware-timestamp@3aa0000 {
compatible = "nvidia,tegra234-gte-lic";
reg = <0x0 0x3aa0000 0x0 0x10000>;
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
nvidia,int-threshold = <1>;
#timestamp-cells = <1>;
};
In the bindings directory (kernel-jammy-src/Documentation/devicetree/bindings/timestamp/hte-consumer.yaml) I have seen this documentation and this example:
examples:
- |
hte_tegra_consumer {
timestamps = <&tegra_hte_aon 0x9>, <&tegra_hte_lic 0x19>;
timestamp-names = "hte-gpio", "hte-i2c";
};
But the documentation doesn’t explain how the value 0x19 is computed, or what other interrupts values I can use.