In our design,we connect the CANFD mcp2518fd device to the aon spi port(pin-106,pin-108,pin-104,pin-110),and I config the dts like this
clock {
/* external 20M oscillator of mcp2518fd on SPI0.0 */
mcp2518fd_osc: mcp2518fd_osc {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <20000000>;
clock-accuracy = <100>;
};
};
aon_spi@c260000 {
status = "okay";
mcp2518fdcan0: can@0 {
status = "okay";
compatible = "microchip,mcp2518fd";
reg = <0>;
spi-max-frequency = <20000000>;
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x7>;
nvidia,clk-parents = "osc";
clocks = <&mcp2518fd_osc>;
interrupt-parent = <&gpio_tca9539>;
interrupts =<&gpio_tca9539 5 IRQ_TYPE_LEVEL_LOW>;
controller-data {
nvidia,cs-setup-clk-count = <0x1e>;
nvidia,cs-hold-clk-count = <0x1e>;
nvidia,rx-clk-tap-delay = <0x1f>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};
After build the kernel and flash the dtb to the board,the aon spi boot failed as below log
[ 0.963393] tegra-aon-spi aon_spi@c260000: can't get mailbox channel (-517)
[ 0.963400] tegra-aon-spi aon_spi@c260000: tegra_aon_spi_driver_probe() FAILED
[ 8.265367] tegra-aon-spi aon_spi@c260000: Timeout waiting for ipc response
[ 8.272431] tegra-aon-spi aon_spi@c260000: Error in transfer
[ 8.278159] spi_master spi4: failed to transfer one message from queue
[ 13.385359] tegra-aon-spi aon_spi@c260000: Timeout waiting for ipc response
[ 13.392424] tegra-aon-spi aon_spi@c260000: Error in transfer
[ 13.400135] spi_master spi4: failed to transfer one message from queue
[ 13.407141] mcp25xxfd spi4.0: interrupts enabled failed!
[ 13.628387] tegra-aon-spi aon_spi@c260000: mbox_send_message() failed with -62
[ 13.635683] tegra-aon-spi aon_spi@c260000: Error in transfer
[ 13.642449] spi_master spi4: failed to transfer one message from queue
[ 13.649180] mcp25xxfd spi4.0: Probe failed, err=5
[ 13.654153] mcp25xxfd: probe of spi4.0 failed with error -5
My Board: Jetson TX2-NX
Soft version: L4T R32.5.1
Can anyone help me out?