From: Eugen Hristev <eugen.hristev@collabora.com>
To: Alexander Dahl <post@lespocky.de>
Cc: Alexander Dahl <ada@thorsis.com>,
Durai Manickam KR <durai.manickamkr@microchip.com>,
u-boot@lists.denx.de, Hari.PrasathGE@microchip.com
Subject: Re: [PATCH 2/5] ARM: dts: at91: sam9x60-curiosity: Fix EEPROM type
Date: Thu, 6 Jul 2023 11:12:50 +0300 [thread overview]
Message-ID: <ade937de-49f0-0bb0-9cda-8df6194ff02c@collabora.com> (raw)
In-Reply-To: <d8cfc012-42b5-139e-c69d-d87d5617128d@collabora.com>
On 7/6/23 11:06, Eugen Hristev wrote:
> On 7/5/23 23:16, Alexander Dahl wrote:
>> From: Alexander Dahl <ada@thorsis.com>
>>
>> The user guide says it's a Microchip 24AA025E48 serial EEPROM, which is
>> a 2-Kbit I2C Serial EEPROM with EUI-48™ Identity. This is the chip
>> actually populated on board EV40E67A rev 4.
>>
>> Signed-off-by: Alexander Dahl <ada@thorsis.com>
>> ---
>>
>> Notes:
>> Sadly this did not fix the problem, that I could not access that
>> eeprom through I²C.
>>
>> arch/arm/dts/at91-sam9x60_curiosity.dts | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/dts/at91-sam9x60_curiosity.dts
>> b/arch/arm/dts/at91-sam9x60_curiosity.dts
>> index d6ae3d648d..da5e19b66b 100644
>> --- a/arch/arm/dts/at91-sam9x60_curiosity.dts
>> +++ b/arch/arm/dts/at91-sam9x60_curiosity.dts
>> @@ -31,7 +31,7 @@
>> status = "okay";
>> eeprom@53 {
>> - compatible = "atmel,24c32";
>> + compatible = "atmel,24c02";
>> reg = <0x53>;
>> pagesize = <16>;
>> };
>
> Hello Alexander,
>
> Thank you for the patch.
>
> I remember I tested this a while back and I remember that the 24c32
> compatible is not correct for this eeprom.
>
> I have this commit that fixed it for sam9x60ek board:
>
> commit 5ae89b3cfe842ecbb5153a95e2e3ac404abe543c
> Author: Eugen Hristev <eugen.hristev@collabora.com>
> Date: Thu May 26 17:04:56 2022 +0300
>
> ARM: dts: at91: sam9x60ek: fix eeprom compatible
>
>
>
> 24c32 should be 32K and 24c02 is 2K .
>
> I remember that with 24c32 it works, but when you read , the offset
> changes, and then you read the same data multiple times, as if the 2K is
> multiplied to have the 32K the driver thinks it has.
>
> Do you have any reasoning for wanting to change the compatible to 24c32 ?
> I am trying to understand how you found that 24c32 is better.
>
> Eugen
>
I am sorry, I misread your patch. You are doing the exact opposite,
which appears to be correct ! Ignore the noise.
next prev parent reply other threads:[~2023-07-06 8:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-05 20:16 [PATCH 0/5] ARM: dts: at91: Improve sam9x60-curiosity Alexander Dahl
2023-07-05 20:16 ` [PATCH 1/5] ARM: dts: at91: sam9x60: Better align with upstream dtsi Alexander Dahl
2023-07-05 20:16 ` [PATCH 2/5] ARM: dts: at91: sam9x60-curiosity: Fix EEPROM type Alexander Dahl
2023-07-06 8:06 ` Eugen Hristev
2023-07-06 8:12 ` Eugen Hristev [this message]
2023-07-06 8:30 ` Durai.ManickamKR
2023-07-06 9:08 ` Durai.ManickamKR
2023-07-05 20:16 ` [PATCH 3/5] ARM: dts: at91: sam9x60: Change i2c compatible Alexander Dahl
2023-07-06 8:32 ` Durai.ManickamKR
2023-07-06 8:59 ` Alexander Dahl
2023-07-06 9:09 ` Durai.ManickamKR
2023-07-05 20:17 ` [PATCH 4/5] ARM: dts: at91: sam9x60-curiosity: Improve alignment with upstream Alexander Dahl
2023-07-05 20:17 ` [PATCH 5/5] ARM: dts: at91: sam9x60-curiosity: Add raw NAND flash Alexander Dahl
2023-08-02 7:29 ` [PATCH 0/5] ARM: dts: at91: Improve sam9x60-curiosity Eugen Hristev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ade937de-49f0-0bb0-9cda-8df6194ff02c@collabora.com \
--to=eugen.hristev@collabora.com \
--cc=Hari.PrasathGE@microchip.com \
--cc=ada@thorsis.com \
--cc=durai.manickamkr@microchip.com \
--cc=post@lespocky.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox