We are trying to set the “CAN_120R_EN” Terminating Resistor Switch using GPIO. From your wiki
we see that we’re supposed to get this
# sudo cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 300-315, parent: i2c/1-0021, 1-0021, can sleep:
...
gpio-305 (bt_wake_hst )
gpio-306 (spi0_rst_3v3 |gpio_xten_pin@6 ) out lo ACTIVE LOW
gpio-307 (gpio_pin7 |gpio_xten_pin@7 ) out lo ACTIVE LOW
gpio-308 (can_120R_en )
gpio-309 (M2B_PCIe_rst )
gpio-310 (USB_HUB_rst |gpio_xten_pin@10 ) out hi
...
where the 308
pin is what we are looking for. For us however this is missing, making it difficult to figure out how this GPIO should be set. Here is our output:
# cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 300-315, parent: usb/1-2.3:1.0, cp210x, can sleep:
gpiochip1: GPIOs 316-347, parent: platform/c2f0000.gpio, tegra234-gpio-aon:
gpio-316 (PAA.00 )
gpio-317 (PAA.01 )
gpio-318 (PAA.02 )
gpio-319 (PAA.03 )
gpio-320 (PAA.04 )
...
Also it says that parent is i2c
for you, while it is usb
for us under gpiochip2
, not sure why this is. We are also missing the gpio-folder, but this is maybe because we flashed it without the gpio sysfs.
# ls /sys/class/gpio
ls: cannot access '/sys/class/gpio': No such file or directory
We are using the reComputer Industrial J4012 ORIN NX 16GB