Am I missing a header file to configure these two parameters? Corresponds to the interrupt pins of the accelerometer and gyroscope, respectively. I see that the interrupt configuration of the BMI160 is as follows, can I provide some suggestions to modify it? Thank you.
But I’m using gpio15 and gpio16 as interrupt pins, so I get an error when I use (PT, 5) and (PT, 6) as pin inputs, what should be the number of these two pins in the description of the device tree?
this is incorrect, alphabet T should be omitted for using this GPIO marco.
for example, accel_irq_gpio = <&tegra_aon_gpio TEGRA194_MAIN_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
you may see-also /sys/kernel/debug/gpio for the GPIO numbers. for example, # cat /sys/kernel/debug/gpio | grep T.05
my bad… the marco should be TEGRA194_XXX_GPIO as you’re working with Xavier series.
see-also the header file for refernece, $public_sources/kernel_src/kernel/nvidia/include/dt-bindings/gpio/tegra194-gpio.h
note, I’ve revise my previous comments to avoid confusion.