Other Parts Discussed in Thread: SK-AM68, AM68, TDA4VM, SYSCONFIG, SK-TDA4VM
Hello,
I tried to configure the SPI device interface(spidev) on our own board according to below guidance from TI experts.
But, the spidev was not present.
So, I also tried to configure the SPI device interface(spidev) on SK-AM68 and the lastest SDK.
But I also could find a spidev on /dev.
Please check my problem.
Below is what I tried.
- Checked in my side
-
root@am68a-sk:/sys/class# ls -l spi*
spi_master:
total 0
lrwxrwxrwx 1 root root 0 Apr 28 2022 spi5 -> ../../devices/platform/bus@100000/2150000.spi/spi_master/spi5spidev:
root@am68a-sk:/dev# ls -l spi*
total 0
root@am68a-sk:/sys/class#
ls: cannot access 'spi*': No such file or directory
-
- Setup Information
- EVK : TI SK-AM68
- SDK version : tti-processor-sdk-linux-edgeai-j721s2-evm-09_01_00_06-Linux-x86-Install.bin
- SDK Image : tisdk-edgeai-image-j721s2-evm.wic.xz (Prebuilt EdgeAI Image) + custom kernel what i built (6.1.46-dirty)
- What I tried
- changed the kernel configuration (arch/arm64/configs/defconfig)
CONFIG_SPI_SPIDEV=y
CONFIG_SPI_OMAP24XX=y
-
changed device tree files
k3-am68-sk-base-board.dtb (I disabled pinmux settings of dss_vout0_pins_default and rpi_header_gpio0_pins_default for spidev.)
#include <dt-bindings/mux/ti-serdes.h> / { compatible = "ti,am68-sk", "ti,j721s2"; model = "Texas Instruments AM68 SK"; chosen { stdout-path = "serial2:115200n8"; }; aliases { serial2 = &main_uart8; mmc1 = &main_sdhci1; spi5 = &main_spi5; }; ....................... ....................... &main_pmx0 { ....................... spi5_pins_default: spi5-pins-default { pinctrl-single,pins = < J721S2_IOPAD(0x07C, PIN_INPUT, 8) /* (T27) MCASP0_AXR3.SPI5_CLK */ J721S2_IOPAD(0x070, PIN_INPUT, 8) /* (R27) MCAN1_RX.SPI5_D0 */ J721S2_IOPAD(0x088, PIN_INPUT, 11) /* (AD27) MCAN4_RX.SPI5_D1 */ J721S2_IOPAD(0x068, PIN_INPUT, 8) /* (U28) MCAN0_RX.SPI5_CS0 */ J721S2_IOPAD(0x064, PIN_INPUT, 8) /* (W28) MCAN0_TX.SPI5_CS1 */ J721S2_IOPAD(0x054, PIN_INPUT, 8) /* (Y27) MCASP2_ACLKX.SPI5_CS2 */ J721S2_IOPAD(0x058, PIN_INPUT, 8) /* (AA27) MCASP2_AFSX.SPI5_CS3 */ >; }; ....................... &main_spi5 { pinctrl-names = "default"; pinctrl-0 = <&spi5_pins_default>; status = "okay"; spidev@0 { spi-max-frequency = <2000000>; reg = <0>; compatible = "linux,spidev"; }; }; .......................
- changed the kernel configuration (arch/arm64/configs/defconfig)
Tnanks,
Jang