Hi all,
I am trying to set the can gpio as output-high, once it was powed on.
I have tried to configure the pin through pinmux spreadsheets and re-flashing the board with new *.cfg file.
Then both can gpio can set to out-put high after 400ms.
My question:
How to set the can pins to out-put high at the beginning?
I read the AGX boot related documents.
It said the boot sequence: SOC bootroom–>MB1—>MB2—>CBOOT—>Kernel.
The pin related setting through the cfg file should be in MB1 step. Then it has passed 400ms.
We have several other CAN boards together. As a standard, we require all the CAN boards set GPIO with output-high. Even it delayed 4ms, it will impact other board. So it must be set with output-high, once it was pow on.
By default, can0 was set as low level output.
So I modified the tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg
pinmux.0x0c303000 = 0x0000c059; # can1_dout_paa0: rsvd1, pull-up, tristate-enable, input-enable
pinmux.0x0c303008 = 0x0000c059;
Then it worked. It was the same behavior.
Because can0 was set pull down by xml file.
However,
From the picture, we can find that there was low level output for both can0 and can1 for about 400ms from power on.