Hey,
I’ve tried to enable spi0 in the driver and then create a pinmux phandle generated from the excel spreadsheet but it doesn’t acctualy link the pins to the driver.
kernel_tegra234-p3767-0003-super-p3768-0000-a0 - Copy.txt (433.6 KB)
kernel_tegra234-p3767-0003-super-p3768-0000-a0-excel.txt (433.5 KB)
I’ve uploaded my dtb from the jetson orin that I modified, as well as the one that is generated from the excel sheet. I’ve combined the spi0 pins into two groups as such: “spi1_pins_pz: spi1_pins_pz {
nvidia,pins = “spi1_sck_pz3”,
“spi1_miso_pz4”,
“spi1_mosi_pz5”;
nvidia,function = “spi1”;
/* common settings for SCK/MISO/MOSI */
nvidia,pull = <0x01>; // pull-up (or 0x00 = none if you prefer)
nvidia,tristate = <0x00>; // drive enabled
nvidia,enable-input = <0x01>; // needed for MISO, harmless for others
nvidia,io-high-voltage = <0x00>;
nvidia,lpdr = <0x00>;
};
spi1_cs0_pz: spi1_cs0_pz {
nvidia,pins = "spi1_cs0_pz6";
nvidia,function = "spi1";
/* special settings for chip-select */
nvidia,pull = <0x02>; // whatever you were using for CS
nvidia,tristate = <0x00>;
nvidia,enable-input = <0x00>; // usually output-only
nvidia,io-high-voltage = <0x00>;
nvidia,lpdr = <0x00>;
};
“. I referenced them to the spi0 driver which is acctualy labeled spi1 in the driver as follows: “ spi@3210000 {
compatible = "nvidia,tegra186-spi";
reg = <0x00 0x3210000 0x00 0x10000>;
interrupts = <0x00 0x24 0x04>;
#address-cells = <0x01>;
#size-cells = <0x00>;
iommus = <0x06 0x04>;
dma-coherent;
dmas = <0x3f 0x0f 0x3f 0x0f>;
dma-names = "rx\\0tx";
spi-max-frequency = <0x3dfd240>;
nvidia,clk-parents = "pll_p\\0clk_m";
clocks = <0x02 0x87 0x02 0x66 0x02 0x0e>;
clock-names = "spi\\0pll_p\\0clk_m";
resets = <0x02 0x5b>;
reset-names = "spi";
status = "okay";
phandle = <0x312>;
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins_pz &spi1_cs0_pz>;
prod-settings {
#prod-cells = <0x04>;
prod {
prod = <0x00 0x194 0x80000000 0x00>;
};
};
spi@0 {
compatible = "tegra-spidev";
reg = <0x00>;
spi-max-frequency = <0x2faf080>;
status = "okay";
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x00>;
};
};
spi@1 {
compatible = "tegra-spidev";
reg = <0x01>;
spi-max-frequency = <0x2faf080>;
controller-data {
nvidia,enable-hw-based-cs;
nvidia,rx-clk-tap-delay = <0x10>;
nvidia,tx-clk-tap-delay = <0x00>;
};
};
};” using pinctrl-0.
It’s not assigning it confirmed usign this command: “g_nano@ubuntu:/proc/device-tree$ hexdump -C spi@3210000/pinctrl-0
00000000 00 00 04 9c 00 00 04 9d |…|
00000008”.
Please help…

