I’m back,
I had time for a little trial&error, mostly error :(
/dts-v1/;
/plugin/;
/ {
overlay-name = “PPS Overlay”;
jetson-header-name = “Jetson 40pin Header”;
compatible = “nvidia,p3768-0000+p3767-0005-super”, “nvidia,p3767-0005”, “nvidia,tegra234”;
fragment@0 {
target-path = "/chosen";
__overlay__ {
pps {
compatible = "pps-gpio";
gpios = <&tegra_main_gpio 134 0x0>;
status = "okay";
};
};
};
};
Also I tried this but didn’t even compile, so I went back to “&tegra_main_gpio”
/dts-v1/;
/plugin/;
/ {
overlay-name = “PPS Overlay”;
jetson-header-name = “Jetson 40pin Header”;
compatible = “nvidia,p3768-0000+p3767-0005-super”, “nvidia,p3767-0005”, “nvidia,tegra234”;
fragment@0 {
target-path = "/chosen";
__overlay__ {
pps {
compatible = "pps-gpio";
gpios = <0xf3 134 0x0>;
status = "okay";
};
};
};
};
Either way, boot failed had to revert.
phandle
&0xf3
hexdump -e ‘1/4 “0x%08x\n”’ /sys/firmware/devicetree/base/bus@0/gpio@2200000/phandle
…returned 0xf3000000
”Due to an endianness difference between how the device tree stores the value (big-endian) and how the system reads it (little-endian), this output confirms that the correct phandle is 0xf3"
**Pin number 134 for pin31. **
On the Jetson Orin Nano developer kit carrier board, physical pin 31 is connected to the GPIO signal named PQ.06.
The numeric offset is calculated as (port_index * 8) + pin_index. For pin 31 (PQ.06), the calculation is (16 * 8) + 6 = 134.
Tem me If I do anything wrong! ;)
Thanks!