I looked at something else on the forum and did the following:
- add defconfig (tegra_defconfig)
CONFIG_EEPROM_AT24=y
CONFIG_I2C=y
CONFIG_SYSFS=y
- i2c definition in dts (file tegra210-porg-p3448-common.dtsi)
i2c@7000c500 {
status = "okey";
eeprom@51 {
compatible = "at,24c256";
reg = <0x51>;
#address-cells = <1>;
#size-cells = <1>;
cape0_data: cape_data@0 {
reg = <0 0x100>;
};
};
};
I checked after setting as above, but i2cdetect also failed.
root@linux:~# i2cdetect -y 2
Warning: Can't use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: 50 UU -- -- -- -- -- -- -- 59 -- -- -- -- -- --
60:
70:
root@linux:~#
root@linux:~# i2cset -y 2 0x51 0x10 0x55
Error: Could not set address to 0x51: Device or resource busy
Any references I can give for similar issues?