Hi ShaneCCC,
Thank you very much for your support. Following your guide and multiple other sources, I have been able to see the /dev/spidev1.0 on the NVIDIA carrier board, but when I use our own custom carrier board, it disappears.
I noticed that I can update the device tree with the following steps:
cd /boot/dtb-
sudo dtc -I dtb -O dts -o extracted_proc.dts tegra194-p2888-0001-p2822-0000.dtb
This command decompiles thedtb, instead offsas I previously did. - Edit the file
extracted_proc.dts. We identified spi1 = “/spi@c260000” and made the following changes.
spi@c260000 {
...
status = "okay";
...
spidev@1 {
compatible = "spidev";
reg = <0>;
spi-max-frequency=<25000000>;
};
};
There is a child node related to imx204@0 which I did not edit.
- Use the
flash.shto reflash the kernel dtb.
Do you know if there are required hardware changes for the SPI2 to work on our own custom board?
EDIT: The outlined steps seem to work. I am not sure why I didn’t see the SPI before. I just rebooted the board and voila, it works!