Hi,
I am trying to enable GPIO pps as out signal for agx orin.
in order to verify peripheral equitment’s time sync, GPIO pps is one method.
on our developed board with agx orin, I have already done:
1、download the source code of pps-gen-gpio for GitHub - damon-kwok/pps-gen-gpio: Linux kernel PPS generator using GPIO pins;
2、modify the config file of tegra_defconfig;
3、modify the dts of tegra234-p3701-0004-p3737-0000.dts;
the gpio pin is GPIO35_PWM1;
4、during device boot, dmesg is include the error log:
Cannot get PPS GPIO [-517: 0xfffffdfb].
It’s an error to request GPIO pin.
how to debug this issue,
can you provide some attempt directions for it?
there is one difference between the conf file and device sysfs.
PH.00 is configured as gpio-output-low, but the device sysfs is shown as out hi.
I don’t know why yet.
PH.00 is already configured as outpin,
It should not make this mistake of dmesg log.
How did you flash the device? Maybe the device tree is not updated correctly.
Please decompile the device tree located at /boot/dtb/ and make sure the change is there.
You should also make sure PH.00 is set as Drive 0, low voltage by default, so it matches the device tree setting.
for the change to take effect, I have tried two methods, but no use.
1、replace two files of device directly
copy the new Image to /boot
copy the new dtb file tegra234-p3701-0004-p3737-0000.dtb to /boot/dtb/kernel_tegra234-p3701-0004-p3737-0000.dtb
2、flash device by sdkmanager flash.sh
the flash cmd is:sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1
by decompile dts file of device, the pps-gen change is already there.
but how can check that PH.00 is set as Drive 0,I don’t know the way.
on this topic, It is relevant to nvpps.ko because pps is configed input in GPIO mode.
but in the default defconfig, CONFIG_NVPPS=m, nvpps.ko is not loaded for device system.
so far, I don’t know how to debug gpio pps for output signal.