I checked the file: tegra210-porg-gpio-p3448-0000-b00.dtsi, and it looks like port b and c that are used for SPI aren’t there. I also checked a few others like tegra210-porg-gpio-p3448-0002-b00.dtsi because there are several of these and ports b and c also weren’t there. There was only one other one that still had ports b and C and I removed those entries, then re-compiled the kernel. Here’s tegra210-porg-gpio-p3448-0000-b00.dtsi:
#include <dt-bindings/gpio/tegra-gpio.h>
/ {
gpio: gpio@6000d000 {
gpio-init-names = “default”;
gpio-init-0 = <&gpio_default>;
gpio_default: default {
gpio-input = <
TEGRA_GPIO(BB, 0)
TEGRA_GPIO(S, 5)
TEGRA_GPIO(A, 5)
TEGRA_GPIO(X, 4)
TEGRA_GPIO(X, 5)
TEGRA_GPIO(X, 6)
TEGRA_GPIO(Y, 1)
TEGRA_GPIO(Y, 2)
TEGRA_GPIO(V, 1)
TEGRA_GPIO(Z, 0)
TEGRA_GPIO(Z, 2)
TEGRA_GPIO(J, 5)
TEGRA_GPIO(J, 6)
TEGRA_GPIO(J, 4)
TEGRA_GPIO(J, 7)
TEGRA_GPIO(G, 2)
TEGRA_GPIO(G, 3)
TEGRA_GPIO(H, 2)
TEGRA_GPIO(H, 5)
TEGRA_GPIO(H, 6)
TEGRA_GPIO(I, 1)
TEGRA_GPIO(CC, 4)
;
gpio-output-low = <
TEGRA_GPIO(S, 7)
TEGRA_GPIO(T, 0)
TEGRA_GPIO(Z, 3)
TEGRA_GPIO(H, 0)
TEGRA_GPIO(H, 3)
TEGRA_GPIO(H, 4)
TEGRA_GPIO(H, 7)
TEGRA_GPIO(I, 0)
TEGRA_GPIO(I, 2)
;
gpio-output-high = <
TEGRA_GPIO(A, 6)
TEGRA_GPIO(X, 3)
TEGRA_GPIO(CC, 7)
;
};
};
};
I ran that command again and got the same result for GPIO pins:
g_nano@tegra-ubuntu:~$ sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i spi
[sudo] password for g_nano:
Bank: 1 Reg: 0x70003050 Val: 0x0000e004 → spi1_mosi_pc0
Bank: 1 Reg: 0x70003054 Val: 0x0000e044 → spi1_miso_pc1
Bank: 1 Reg: 0x70003058 Val: 0x0000e004 → spi1_sck_pc2
Bank: 1 Reg: 0x7000305c Val: 0x0000e008 → spi1_cs0_pc3
Bank: 1 Reg: 0x70003060 Val: 0x0000e008 → spi1_cs1_pc4
Bank: 1 Reg: 0x70003064 Val: 0x00006004 → spi2_mosi_pb4
Bank: 1 Reg: 0x70003068 Val: 0x00006044 → spi2_miso_pb5
Bank: 1 Reg: 0x7000306c Val: 0x00006004 → spi2_sck_pb6
Bank: 1 Reg: 0x70003070 Val: 0x00006008 → spi2_cs0_pb7
Bank: 1 Reg: 0x70003074 Val: 0x00006008 → spi2_cs1_pdd0
Bank: 1 Reg: 0x70003078 Val: 0x0000e015 → spi4_mosi_pc7
Bank: 1 Reg: 0x7000307c Val: 0x0000e015 → spi4_miso_pd0
Bank: 1 Reg: 0x70003080 Val: 0x0000e015 → spi4_sck_pc5
Bank: 1 Reg: 0x70003084 Val: 0x0000e015 → spi4_cs0_pc6
Bank: 1 Reg: 0x70003088 Val: 0x00002040 → qspi_sck_pee0
Bank: 1 Reg: 0x7000308c Val: 0x00002000 → qspi_cs_n_pee1
Bank: 1 Reg: 0x70003090 Val: 0x00002040 → qspi_io0_pee2
Bank: 1 Reg: 0x70003094 Val: 0x00002040 → qspi_io1_pee3
Bank: 1 Reg: 0x70003098 Val: 0x00002040 → qspi_io2_pee4
Bank: 1 Reg: 0x7000309c Val: 0x00002040 → qspi_io3_pee5
Bank: 0 Reg: 0x70000b70 Val: 0x00000001 → drive_qspi_comp_control
Bank: 0 Reg: 0x70000b78 Val: 0x00000001 → drive_qspi_lpbk_control
Bank: 0 Reg: 0x70000a78 Val: 0x00808000 → drive_qspi_comp
I have all of these in my prog folder. I made a few copies to keep a backup of the ones I modified.

I’m thinking the tegra210-porg-gpio-p3448-0000-b00.dtsi one is the correct one but in the kernel build log I remember seeing some of those other ones where used, so I modified them all to be the same because I wasn’t 100% if one was overriding another.