Hi.
This time, I want to ask about how to and which file should be change for enable SPI on AGX.
Thanks to @ShaneCCC, I understand how to download L4T source and build it.
So I think my next step is set
- PINMUX
- configure kernel for SPI
- set device tree.
first, let 3rd step off…I want to ask about 1st and 2nd step.
1. PINMUX
State:
Change PINMUX is easy because NVIDIA provide ‘Jetson_AGX_Series_DevKit_Pinmux_Configuration_Template.xlsm’.
So I just make several clicks. and I can make changed PINMUX file.
Question:
After make changed pinmux file, where should I place this files? which folder.
2. configure kernel
State:
I show that I need to change configuration file to use SPI.
So, I follow the direction from ‘Jetson/TX2 SPI - eLinux.org’.
(I know it can not directly applied to AGX board, but just for start point.)
This document suggest to edit the tegra18_defconfig
file:
I think the file is in the path below in my case.
/home/jhai/L4T_Source/Linux_for_Tegra/source/public/kernel/kernel-4.9/arch/arm64/configs
Question:
Which file should I need to change and how to change?
Because there are several files which include about SPI.
I’ll list below.
file name : defconfig
CONFIG_SPI=y
CONFIG_SPI_MESON_SPIFC=m
CONFIG_SPI_ORION=y
CONFIG_SPI_PL022=y
CONFIG_SPI_QUP=y
CONFIG_SPI_SPIDEV=m
CONFIG_SPI_S3C64XX=y
file name : tegra_android_defconfig
CONFIG_SPI=y
CONFIG_SPI_TEGRA114=y
CONFIG_SPI_TEGRA124_SLAVE=y
CONFIG_QSPI_TEGRA210=y
CONFIG_SPI_IM501=m
CONFIG_SPI_SPIDEV=m
file name : trgra_defconfig
CONFIG_SPI=y
CONFIG_SPI_CADENCE=m
CONFIG_SPI_PXA2XX=m
CONFIG_SPI_SC18IS602=m
CONFIG_SPI_TEGRA114=y
CONFIG_SPI_TEGRA124_SLAVE=y
CONFIG_QSPI_TEGRA210=y
CONFIG_SPI_XCOMM=m
CONFIG_SPI_ZYNQMP_GQSPI=m
CONFIG_SPI_SPIDEV=m
CONFIG_SPI_TLE62X0=m
file name: tegra_gnu_linux_defconfig
CONFIG_SPI=y
CONFIG_SPI_TEGRA114=m
CONFIG_SPI_TEGRA124_SLAVE=y
CONFIG_QSPI_TEGRA210=m
CONFIG_SPI_SPIDEV=m
CONFIG_SPI_AURIX_TEGRA=y
Please give me the insight about this.
Thanks!