Hi,
Release used is 32.6.1, with jetpack 4.9.
Device tree settings are as follow:
- First, I attach the changes made by the jetson-io.py (refer to my first post to check the full steps I followed to configure the interface)
pinmux@2430000 {
pinctrl-0 = <0x17f>;
pinctrl-names = "default";
compatible = "nvidia,tegra194-pinmux";
reg = <0x0 0x2430000 0x0 0x17000 0x0 0xc300000 0x0 0x4000>;
#gpio-range-cells = <0x3>;
status = "okay";
linux,phandle = <0xb0>;
phandle = <0xb0>;
exp-header-pinmux {
phandle = <0x17f>;
linux,phandle = <0x17f>;
hdr40-pin26 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x2>;
nvidia,function = "spi1";
nvidia,pins = "spi1_cs1_pz7";
};
hdr40-pin24 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x2>;
nvidia,function = "spi1";
nvidia,pins = "spi1_cs0_pz6";
};
hdr40-pin23 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x1>;
nvidia,function = "spi1";
nvidia,pins = "spi1_sck_pz3";
};
hdr40-pin21 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x1>;
nvidia,function = "spi1";
nvidia,pins = "spi1_miso_pz4";
};
hdr40-pin19 {
nvidia,lpdr = <0x0>;
nvidia,enable-input = <0x1>;
nvidia,tristate = <0x0>;
nvidia,pull = <0x1>;
nvidia,function = "spi1";
nvidia,pins = "spi1_mosi_pz5";
};
};
- Device tree configuration for SPI0
spi@3210000 {
compatible = "nvidia,tegra124-spi-slave";
reg = <0x0 0x3210000 0x0 0x10000>;
interrupts = <0x0 0x24 0x4>;
#address-cells = <0x1>;
#size-cells = <0x0>;
iommus = <0x2 0x20>;
dma-coherent;
dmas = <0x1b 0xf 0x1b 0xf>;
dma-names = "rx", "tx";
nvidia,dma-request-selector = <0x1b 0xf>;
spi-max-frequency = <0x3dfd240>;
nvidia,clk-parents = "pll_p", "clk_m";
clocks = <0x4 0x87 0x4 0x66 0x4 0xe>;
clock-names = "spi", "pll_p", "clk_m";
resets = <0x5 0x5b>;
reset-names = "spi";
status = "okay";
nvidia,clock-always-on;
linux,phandle = <0xf7>;
phandle = <0xf7>;
spi@0 {
compatible = "tegra-spidev";
reg = <0x0>;
spi-max-frequency = <0x3dfd240>;
controller-data {
nvidia,slave-ready-gpio = <0x13 0x9b 0x0>;
nvidia,enable-hw-based-cs;
status = "okay";
};
};
};
Current pinmux setting read with devmem2 is as follows:
CSO0 ā 0x448
MISO ā 0x444
CLK ā 0x444
MOSI ā 0x444
Thanks