Can we config pinmux in the dts file?

I want to config the spi pinmux in the dts file, I have seen the csi overlay config in the dtsi followed below,so can I config the spi pinmux in the dtsi(I do not want to config it bootloader cfg file)? and how to config spi pinmux in the dtsi?

///////////////////////////////////////////////////////////////////////////
fragment@0 {
target = <&pinmux>;
overlay {
pinctrl-names = “default”;
pinctrl-0 = <&jetson_io_pinmux>;
jetson_io_pinmux: exp-header-pinmux {
csi-pin75 {
nvidia,pins = “cam_i2c_scl_pp2”;
};
csi-pin76a {
nvidia,pins = “spi5_cs0_pac3”;
nvidia,function = “i2s3”;
nvidia,pin-label = “i2s3_fs”;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};

Hi jasonGrave,

Are you using the devkit or custom board for AGX Orin?
What’s your Jetpack version in use?

Do you mean that you want to use different dtb files for bootloader(UEFI) and kernel?

For pinmux, we would suggest using pinmux spreadsheet to generate dtsi files.

custom board for AGX Orin,bsp linux r35.1.I want to config pinmux in the tegra234-p3701-0000-p3737-0000.dts,how to config it?

Please refer to the following instruction step-by-step to configuring custom pinmux for AGX Orin.
Jetson AGX Orin Platform Adaptation and Bring-Up — Changing the Pinmux

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.