Is there a way to make the sysfs GPIO settings match what’s in the pinmux config?
For example, I’ve modified the pinmux such that:
# cat /sys/kernel/debug/tegra_pinctrl_reg | grep bb0 Bank: 1 Reg: 0x0c303040 Val: 0x0000c008 -> can1_stb_pbb0
Which as far as I can tell, has bit 6 set to 0 so this should not be an input pin. However,
# echo 254 > /sys/class/gpio/export # cat /sys/class/gpio/gpio254/direction in
The pin is definitely in an output mode since I can see it being raised on a scope, but I don’t understand why sysfs thinks it’s incorrect.