I want to use SPI2 which is on CSI connector of AGX Orin (pins 84, 103, 106, 117).
I have done the device tree modifications and compiled the dtb, but I’m unable to see the clock on the scope (I’m probing TP51 on the carrier board)
Can anyone guide me to the correct steps?
I’m using the devkit itself. (We have a custom board which interfaces with CSI connector of dev board, but I have not connected it yet since I’m not getting the SPI signals on testpoints itself)
It seems you didn’t enable it in device tree, please update it as following:
spi@c260000 {
compatible = "nvidia,tegra186-spi";
reg = <0x00 0xc260000 0x00 0x10000>;
interrupts = <0x00 0x25 0x04>;
#address-cells = <0x01>;
#size-cells = <0x00>;
iommus = <0x02 0x04>;
dma-coherent;
dmas = <0x03 0x10 0x03 0x10>;
dma-names = "rx\0tx";
spi-max-frequency = <0x3dfd240>;
nvidia,clk-parents = "pll_p\0osc";
clocks = <0x04 0x88 0x04 0x5e 0x04 0x5b>;
clock-names = "spi\0pll_p\0osc";
resets = <0x04 0x5c>;
reset-names = "spi";
- status = "disabled";
+ status = "okay";

