Tool/software:
Hi sir
Iam working on am62x processor. I am facing issues with SPI devices not appearing in /dev on the AM62x processor. After using the ls /dev
command, I cannot see any SPI devices listed. I have already changed the kernel configuration according to the documentation, but the issue
persists. Other peripherals, such as UART, Ethernet, WiFi, and audio, are working fine.
Could this issue be related to hardware, such as improper soldering of the BGA package? If the soldering wasn't done properly, could it prevent
spidev from appearing in /dev?
I have also modified the device tree files, but the issue remains unresolved. Could you please suggest some steps or solutions to resolve
this problem and help me ensure proper SPI detection?
am62xx-evm login: root
[ 36.552134] audit: type=1006 audit(42.660:27): pid=1007 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=7 res=1
[ 36.564091] audit: type=1300 audit(42.660:27): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffe7c018d8 a2=1 a3=1 items=0 ppid=1 pid=1007 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" key=(null)
[ 36.590048] audit: type=1327 audit(42.660:27): proctitle="(systemd)"
[ 36.596463] audit: type=1334 audit(42.676:28): prog-id=21 op=LOAD
[ 36.602614] audit: type=1300 audit(42.676:28): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=fffffe332bd8 a2=90 a3=0 items=0 ppid=1 pid=1007 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7 comm="systemd" exe="/usr/lib/systemd/systemd" key=(null)
[ 36.627819] audit: type=1327 audit(42.676:28): proctitle="(systemd)"
[ 36.634253] audit: type=1334 audit(42.700:29): prog-id=21 op=UNLOAD
[ 36.640592] audit: type=1300 audit(42.700:29): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=ffffa39b5c60 items=0 ppid=1 pid=1007 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=7 comm="systemd" exe="/usr/lib/systemd/systemd" key=(null)
[ 36.665560] audit: type=1327 audit(42.700:29): proctitle="(systemd)"
[ 36.672247] audit: type=1334 audit(42.700:30): prog-id=22 op=LOAD
root@am62xx-evm:~# dmesg | grep spi
[ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=spi-nand0:512k(ospi_nand.tiboot3),2m(ospi_nand.tispl),4m(ospi_nand.u-boot),256k(ospi_nand.env),256k(ospi_nand.env.backup),98048k@32m(ospi_nand.rootfs),256k@130816k(ospi_nand.phypattern) root=PARTUUID=85e7ce5c-02 rw rootfstype=ext4 rootwait
[ 1.217219] spi-nor spi0.0: s28hs512t (65536 Kbytes)
[ 1.222352] 7 fixed-partitions partitions found on MTD device fc40000.spi.0
[ 1.229318] Creating 7 MTD partitions on "fc40000.spi.0":
[ 1.234714] 0x000000000000-0x000000080000 : "ospi.tiboot3"
[ 1.241524] 0x000000080000-0x000000280000 : "ospi.tispl"
[ 1.247995] 0x000000280000-0x000000680000 : "ospi.u-boot"
[ 1.254519] 0x000000680000-0x0000006c0000 : "ospi.env"
[ 1.260741] 0x0000006c0000-0x000000700000 : "ospi.env.backup"
[ 1.267535] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
[ 1.274110] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
root@am62xx-evm:~#
root@am62xx-evm:~# lsmod | grep spi
root@am62xx-evm:~# modprobe spidev
root@am62xx-evm:~# lsmod | grep spidev
spidev 16384 0
root@am62xx-evm:~# dmesg | grep spidev
root@am62xx-evm:~# ls /sys/class/spi_
spi_master/ spi_slave/
root@am62xx-evm:~# ls /sys/class/spi_master/spi0/
device of_node power spi0.0 statistics subsystem uevent
root@am62xx-evm:~# ls /sys/class/spi_master/spi0/spi0.0/
driver driver_override modalias mtd of_node power spi-nor statistics subsystem uevent
root@am62xx-evm:~# ls /dev
autofs gpiochip0 loop2 mqueue mtd6ro ptyp0 ptypf snd tty16 tty3 tty43 tty57 ttyS2 ttyp7 vcs3 vcsu2
block gpiochip1 loop3 mtd mtdblock0 ptyp1 random stderr tty17 tty30 tty44 tty58 ttyS3 ttyp8 vcs4 vcsu3
btrfs-control gpiochip2 loop4 mtd0 mtdblock1 ptyp2 remoteproc0 stdin tty18 tty31 tty45 tty59 ttyS4 ttyp9 vcs5 vcsu4
bus hugepages loop5 mtd0ro mtdblock2 ptyp3 remoteproc1 stdout tty19 tty32 tty46 tty6 ttyS5 ttypa vcs6 vcsu5
char hwrng loop6 mtd1 mtdblock3 ptyp4 remoteproc2 tee0 tty2 tty33 tty47 tty60 ttyS6 ttypb vcs7 vcsu6
console i2c-0 loop7 mtd1ro mtdblock4 ptyp5 remoteproc3 teepriv0 tty20 tty34 tty48 tty61 ttyS7 ttypc vcsa vcsu7
cpu_dma_latency i2c-1 mapper mtd2 mtdblock5 ptyp6 rfkill tty tty21 tty35 tty49 tty62 ttyS8 ttypd vcsa1 vfio
crypto i2c-2 mem mtd2ro mtdblock6 ptyp7 rpmsg0 tty0 tty22 tty36 tty5 tty63 ttyS9 ttype vcsa2 vga_arbiter
cuse i2c-3 mmcblk0 mtd3 net ptyp8 rpmsg1 tty1 tty23 tty37 tty50 tty7 ttyp0 ttypf vcsa3 watchdog
disk initctl mmcblk0boot0 mtd3ro null ptyp9 rpmsg_ctrl0 tty10 tty24 tty38 tty51 tty8 ttyp1 ubi_ctrl vcsa4 watchdog0
dma_heap kmsg mmcblk0boot1 mtd4 port ptypa rpmsg_ctrl1 tty11 tty25 tty39 tty52 tty9 ttyp2 udev_network_queue vcsa5 watchdog1
dri log mmcblk0rpmb mtd4ro pps0 ptypb rtc tty12 tty26 tty4 tty53 ttyS0 ttyp3 urandom vcsa6 watchdog2
fd loop-control mmcblk1 mtd5 ptmx ptypc rtc0 tty13 tty27 tty40 tty54 ttyS1 ttyp4 vcs vcsa7 watchdog3
full loop0 mmcblk1p1 mtd5ro ptp0 ptypd shm tty14 tty28 tty41 tty55 ttyS10 ttyp5 vcs1 vcsu watchdog4
fuse loop1 mmcblk1p2 mtd6 pts ptype snapshot tty15 tty29 tty42 tty56 ttyS11 ttyp6 vcs2 vcsu1 zero
root@am62xx-evm:~#