On my DTS file i am able to see one can0 nod, which seems confusing to me. As it should be one of SPI node instead of separate can0 node. It would be helpful if you can explain if it is okay or not!
spi@7000d400 {
compatible = "nvidia,tegra210-spi";
clocks = <0x26 0x29 0x26 0xf3 0x26 0xe9>;
resets = <0x26 0x29>;
clock-names = "spi", "pll_p", "clk_m";
nvidia,clk-parents = "pll_p", "clk_m";
status = "okay";
#address-cells = <0x1>;
interrupts = <0x0 0x3b 0x4>;
#size-cells = <0x0>;
dma-names = "rx", "tx";
nvidia,always-hw-cs;
phandle = <0x110>;
reg = <0x0 0x7000d400 0x0 0x200>;
iommus = <0x30 0xe>;
pinctrl-0 = <0x13a>;
dmas = <0x51 0xf 0x51 0xf>;
reset-names = "spi";
linux,phandle = <0x110>;
pinctrl-names = "default";
prod-settings {
#prod-cells = <0x3>;
prod_c_flash {
prod = <0x4 0x3f 0x7>;
status = "disabled";
};
prod {
prod = <0x4 0xfff 0x0>;
};
prod_c_loop {
prod = <0x4 0xfff 0x44b>;
status = "disabled";
};
};
spi@1 {
compatible = "spidev";
status = "okay";
reg = <0x1>;
spi-max-frequency = <0x1f78a40>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x7>;
};
};
can@0 {
compatible = "microchip,mcp2515";
clocks = <0x13b>;
status = "okay";
interrupt-parent = <0x5b>;
interrupts = <0xd 0x8>;
phandle = <0x13c>;
reg = <0x0>;
spi-max-frequency = <0x989680>;
controller-data {
nvidia,tx-clk-tap-delay = <0x0>;
nvidia,enable-hw-based-cs;
nvidia,cs-hold-clk-count = <0x1e>;
nvidia,cs-setup-clk-count = <0x1e>;
nvidia,rx-clk-tap-delay = <0x1f>;
};
};
spi@0 {
compatible = "spidev";
reg = <0x0>;
spi-max-frequency = <0x1f78a40>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x7>;
};
};
};
Edit : This might be some reference
header-40pin-spi0-pinmux {
phandle = <0x13a>;
pin19 {
nvidia,enable-input = <0x1>;
nvidia,pins = "spi1_mosi_pc0";
nvidia,tristate = <0x0>;
nvidia,function = "spi1";
nvidia,pull = <0x1>;
};
pin23 {
nvidia,enable-input = <0x1>;
nvidia,pins = "spi1_sck_pc2";
nvidia,tristate = <0x0>;
nvidia,function = "spi1";
nvidia,pull = <0x1>;
};
pin21 {
nvidia,enable-input = <0x1>;
nvidia,pins = "spi1_miso_pc1";
nvidia,tristate = <0x0>;
nvidia,function = "spi1";
nvidia,pull = <0x1>;
};
pin24 {
nvidia,enable-input = <0x1>;
nvidia,pins = "spi1_cs0_pc3";
nvidia,tristate = <0x0>;
nvidia,function = "spi1";
nvidia,pull = <0x2>;
};
pin22 {
nvidia,enable-input = <0x1>;
nvidia,pins = "spi2_miso_pb5";
nvidia,tristate = <0x0>;
nvidia,function = "rsvd2";
nvidia,pull = <0x2>;
};
};