Part Number: BEAGLEBK
Hi,
I have to read and write to EEPROM using /dev/i2c...nodes.
I read at below site that eeprom is accessbile through i2c-1. But i2c is disabled.
Please assist me to enable i2c-1 in sdk.
Best Regards,
Vikas
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: BEAGLEBK
Hi,
I have to read and write to EEPROM using /dev/i2c...nodes.
I read at below site that eeprom is accessbile through i2c-1. But i2c is disabled.
Please assist me to enable i2c-1 in sdk.
Best Regards,
Vikas
Hi Kemal,
The i2c is already enabled in dts file.
pinmux_i2c0_pins {
pinctrl-single,pins = <0x188 0x30 0x18c 0x30>;
linux,phandle = <0x34>;
phandle = <0x34>;
};
pinmux_i2c2_pins {
pinctrl-single,pins = <0x178 0x33 0x17c 0x33>;
linux,phandle = <0x38>;
phandle = <0x38>;
};
I am able to read i2cget -y -f 0 0x50 0x00 eeprom.
but when I write i2cset -y -f 0 0x50 0x00 0x00 to eeprom, value is not reflected.
Kindly help me.
Bet regards,
Vikas
Use eeprog command to program your EEPROM. i2cset cannot be used because of its absence of 16-bit address mode choice.
root@am335x-evm:~# echo -n -e '\x69' | eeprog -f -16 /dev/i2c-0 0x50 -w 0x30
root@am335x-evm:~# eeprog -xf -16 /dev/i2c-0 0x50 -r 48:1