Other Parts Discussed in Thread: TMDS64EVM
Tool/software:
Hi Team,
I am using TMDS64EVM board to access the SPI interface with the EEPROM 93LC46B. But i can't able to access through RT-LINUX with A53 core_1. I suspect driver missing and tried in multiples way to add it.
How to add a driver for that EEPROM 93LC46B to access through SPI interface?
1) While checking in board power up and Kernel in rootfs side to detect the EEPROM chip is active are not ?
root@am64xx-evm:~# dmesg | grep -i 93
[ 1.039359] NFS: Registering the id_resolver key type
[ 1.149304] usbcore: registered new interface driver usbhid
[ 1.149316] usbhid: USB HID core driver
[ 4.293660] systemd[1]: Queued start job for default target Graphical Interface.
[ 4.687093] systemd[1]: Mounting POSIX Message Queue File System...
[ 4.930293] systemd[1]: Starting Journal Service...
[ 5.093390] systemd-journald[123]: Collecting audit messages is enabled.
[ 5.141093] systemd[1]: Started RPC Bind.
[ 9.693915] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fc9100
[ 10.316066] remoteproc remoteproc3: Booting fw image am64-main-r5f1_0-fw, size 93260
[ 10.931855] gpio-mux mux-controller: 2-way mux-controller registered
[ 4078.249384] audit: type=1006 audit(1736364651.829:2): pid=1834 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
2) Checking EEPROM driver in SPI side in kernel it's not showing?
root@am64xx-evm:~# ls /sys/bus/spi/devices/
spi0.0 spi1.0
root@am64xx-evm:~# ls /sys/bus/spi/devices/spi0.0
driver driver_override modalias mtd of_node power spi-nor statistics subsystem uevent
4) Checking EEPROM driver in NVMEM side in kernel it's not showing?
root@am64xx-evm:~# ls /sys/bus/nvmem/devices/
0-00507 mtd0 mtd1 mtd2 mtd3 mtd4 mtd5 mtd6
5) For accessing it tried in multiple ways
- Device driver - MISC device - EEPROM support - Microware EEPROM 93xx46 support <M> enable.
- Device driver - NVMEM - Microware EEPROM 93xx46 support <M> enable (option is not their changed in kconfig, Makefile also but no use option is disable only)
6) How to access the EEPROM 93LC46B with SPI0, explain with steps?