From: m18063 <Claudiu.Beznea@microchip.com>
To: Nicolas Ferre <nicolas.ferre@microchip.com>,
<alexandre.belloni@free-electrons.com>, <robh+dt@kernel.org>,
<mark.rutland@arm.com>, <linux@armlinux.org.uk>, <sza@esh.hu>,
<devicetree@vger.kernel.org>, <cristian.birsan@microchip.com>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 4/5] ARM: dts: at91: at91-sama5d27_som1: add sama5d27 SoM1 support
Date: Thu, 6 Jul 2017 10:31:04 +0300 [thread overview]
Message-ID: <947abe4f-af3a-78de-c800-728b56c53c6b@microchip.com> (raw)
In-Reply-To: <a74f9110-ced4-5412-8ed2-f57f65557f7e@microchip.com>
On 05.07.2017 18:29, Nicolas Ferre wrote:
> On 05/07/2017 at 17:23, Ludovic Desroches wrote:
>> On Mon, Jul 03, 2017 at 03:56:11PM +0300, Claudiu Beznea wrote:
>>> Add specific DTS file and bindings for sama5d27 SoM1 board.
>>>
>>> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
>>> Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
>>> ---
>>> arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 178 ++++++++++++++++++++++++++++++
>>> 1 file changed, 178 insertions(+)
>>> create mode 100644 arch/arm/boot/dts/at91-sama5d27_som1.dtsi
>>>
>>> diff --git a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi
>>> new file mode 100644
>>> index 0000000..c3a1dc8
>>> --- /dev/null
>>> +++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi
>>
>> [...]
>>
>>> +
>>> + i2c0: i2c@f8028000 {
>>> + dmas = <0>, <0>;
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&pinctrl_i2c0_default>;
>>> + i2c-sda-hold-time-ns = <350>;
>>> + status = "disabled";
>>> +
>>> + 24aa@50 {
>>> + compatible = "24mac602";
>>> + reg = <0x50>;
>>> + pagesize = <8>;
>>> + start-offset = /bits/ 8 <0xf8>;
>>
>> Are you sure about the offset? I thought it was 0xfa but maybe I am
>> wrong.
Indeed, it is 0xfa. I chose 0xf8 because at24 driver will truncate the
eeprom size at something that is power of 2 (I don't know the reason behind
this, maybe it is something historical, maybe it is something I don't get
it for the moment). If I would use 24mac402 (which EEPROM size should be
6 bytes but due to the truncation it will become of 4 bytes) and 0xfa as
starting offset I could read only 4 octets. Due to this I chose to use
24mac602 which length is 8 = 2^3 bytes, the reading will start from 0xf8
but the first 2 bytes will not be of interest.
Sorry that I forgot to mention this in the cover letter.
>
> Moreover, as the binding for this is not yet accepted I would advice to
> remove this part for now. It will be easier for synchronization with i2c
> eeprom.
Yes, I will remove this part form in the 3rd version.
Thanks,
Claudiu
>
> Best regards,
>
next prev parent reply other threads:[~2017-07-06 7:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-03 12:56 [PATCH v2 0/5] Add " Claudiu Beznea
2017-07-03 12:56 ` [PATCH v2 1/5] ARM: dts: at91: sama5d2: add QSPI nodes Claudiu Beznea
2017-07-03 12:56 ` [PATCH v2 2/5] ARM: dts: at91: sama5d2: add isc node Claudiu Beznea
2017-07-03 12:56 ` [PATCH v2 3/5] drivers: soc: atmel: Add basic support for new sama5d2 SiPs Claudiu Beznea
2017-07-03 12:56 ` [PATCH v2 4/5] ARM: dts: at91: at91-sama5d27_som1: add sama5d27 SoM1 support Claudiu Beznea
2017-07-05 15:23 ` Ludovic Desroches
2017-07-05 15:29 ` Nicolas Ferre
2017-07-06 7:31 ` m18063 [this message]
2017-07-03 12:56 ` [PATCH v2 5/5] ARM: dts: sama5d27_som1_ek: Add sama5d27 SoM1 EK support Claudiu Beznea
2017-07-05 6:17 ` [PATCH v2 0/5] Add SoM1 support Ludovic Desroches
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=947abe4f-af3a-78de-c800-728b56c53c6b@microchip.com \
--to=claudiu.beznea@microchip.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=cristian.birsan@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=nicolas.ferre@microchip.com \
--cc=robh+dt@kernel.org \
--cc=sza@esh.hu \
/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
all inboxes | Powered by JetHome®