Hi KevinFFF,
Thanks a lot for your response, the link that you shared is very useful.
Are you using the devkit or custom board for AGX Orin?
- Answer: I think so, the model type is P3701-0000 for orin, P3737-0000 for the carrier board.
BTW, I checked the dtb file on my target device which showed that the FDT is FDT /boot/dtb/kernel_tegra234-p3737-0000+p3701-0000-nv.dtb
. As I understood, P37xx means the different product model of Jetson Orin. the example in the Jetson/L4T/peripheral/ - eLinux.org modified the file tegra234-p3768-0000+p3767-xxxx-nv-common.dtsi
which used to build tegra234-p3768-0000+p3767-0000-nv.dtb
.
The descriptions above means we used the different model of Jetson AGX orin?
As what I understood, I need to modify the tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi
file at my side and use the file tegra234-p3701-0000+p3737-0000-nv.dtb
to replace on the target? Is it correct?
tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi
and tegra234-p3768-0000+p3767-xxxx-nv-common.dtsi
has a lot of differences. And I did not find the code below at part bus@0
. I just copy the code below from tegra234-p3768-0000+p3767-xxxx-nv-common.dtsi
to tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi
?
/* SPI1, 40pin header, Pin 19(MOSI), Pin 21(MISO), Pin 23(CLK), Pin 24(CS) */
spi@3210000{
status = "okay";
spi@0 {
compatible = "microchip,mcp2518fd";
reg = <0x0>;
spi-max-frequency = <2000000>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA234_MAIN_GPIO(Q, 5) IRQ_TYPE_LEVEL_LOW>;
clocks = <&can_clock>;
nvidia,enable-hw-based-cs;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
spi@1 {
compatible = "tegra-spidev";
reg = <0x1>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};
/* SPI3, 40pin header, Pin 37(MOSI), Pin 22(MISO), Pin 13(CLK), Pin 18(CS) */
spi@3230000{
status = "okay";
spi@0 {
compatible = "tegra-spidev";
reg = <0x0>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
spi@1 {
compatible = "tegra-spidev";
reg = <0x1>;
spi-max-frequency = <50000000>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x0>;
};
};
};
Sorry for the standard question.
Best regrads,
Feng