Tool/software: Code Composer Studio
Hi,
How can I read BOARD-ID from eeprom in am5728 evm ?
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.
Tool/software: Code Composer Studio
Hi,
How can I read BOARD-ID from eeprom in am5728 evm ?
Hi Vishal,
I could read the first 16 bytes that give the Board name version in u-boot:
Beagle - x15
=> i2c dev 0
Setting bus to 0
=> i2c md 0x50 0x0
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
=> i2c md 0x50 0x0
0000: aa 55 33 ee 41 4d 35 37 32 50 4d 5f 41 2e 33 30 .U3.AM572PM_A.30
AM574-IDK:
=> i2c dev 0
Setting bus to 0
=> i2c md 0x50 0x0
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
=> i2c md 0x50 0x0
0000: aa 55 33 ee 41 4d 35 37 34 49 44 4b 31 2e 30 43 .U3.AM574IDK1.0C
=>
Let me know if you can try the same above on your board and if the above works for you.
Best Regards,
Keerthy
Hi, the reading from u-boot is fine. Thanks for that.
But, I needed a utility from kernel boot prompt. I am not able to read the eeprom Board ID! Please help in reading Board ID from a command line utility after kernel has booted up. Thanks!!
Hi Vishal,
In kenerl the i2cdump utility is not detecting the registers and shows all xx.
i2cdump -f -y 0x0 0x50 will give you all ff.
So the only other option is you have go through the driver for that part by adding the node:
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
index 09f123c939..72fb3bbad8 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
@@ -230,6 +230,12 @@
status = "okay";
clock-frequency = <400000>;
+ at24@50 {
+ compatible = "atmel,24c256";
+ pagesize = <64>;
+ reg = <0x50>;
+ };
+
Once you boot kernel you can read using below:
cat /sys/bus/i2c/devices/0-0050/0-00500/nvmem
U3�AM574IDK1.0C09204P770045
Hope you can resolve the issue.
Besy Regards,
Keerthy
Vishal,
Please resolve the thread when you are done testing.
Best Regards,
Keerthy
Hi I tried the command from u-boot as follows. Actually I had written into the eeprom using eeprog application and so my contents are showing out to be different then default. Please see below:-
i2c md 0x50 0x0
0000: 00 65 6c 6c 6f 20 77 6f 72 6c 64 73 61 64 66 73 .ello worldsadfs
Can you help me so that the default contents are written to eeprom ?
Hi Vishal,
Not sure about this. Could you use the same eeprog application to write back the default values?
I have never used eeprog application.
Regards,
Keerthy
Hi Vishal,
It is right above in this thread:
2c md 0x50 0x0
0000: aa 55 33 ee 41 4d 35 37 32 50 4d 5f 41 2e 33 30 .U3.AM572PM_A.30
Best Regards,
Keerthy