External EEPROM node


I am using AT24C02C EEPROM in my custom made carrier board. It is connected to i2c0 bus at 0x55.
Xavier NX is the SOM board used.
Driver file used is sources/kernel/kernel-4.9/drivers/misc/eeprom/at24.c.
Also made following changes in sources/kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig
In Linux_for_Tegra/sources/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3668-common.dtsi
i2c@3160000 {
eeprom@55 {
compatible = “24c04”;
reg = <0x55>;
status = “okay”;
In dmesg got ;
"[ 18.287430] at24_probe:606- Inside Probe function
[ 18.287439] AT24 Magic = 8201
[ 18.288571] at24 0-0055: 512 byte 24c04 EEPROM, writable, 1 bytes/write

But I didn’t find a EEPROM node in board for reading and writing into it.
Can you please help on it?

hello user14225 ,

you’ve configure it as kernel modules, CONFIG_EEPROM_AT24=m, had you execute modprobe to load *.ko?


root@localhost:/lib/modules/4.9.253-tegra/kernel/drivers/misc/eeprom# ls
at24.ko eeprom_93cx6.ko

root@localhost:/lib/modules/4.9.253-tegra/kernel/drivers/misc/eeprom# insmod at24.ko
insmod: ERROR: could not insert module at24.ko: File exists

Following is the result in the board

root@localhost:/sys/module/at24# ls
coresize drivers holders initsize initstate notes refcnt sections taint uevent

Command lsmod results shows at24 in the list

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

hello user14225,

please have a try to dump the values after you probe the kernel module,
i.e. $ sudo i2cdump -f -y 0 0x55

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