From: Alexander Stein <alexander.stein@ew.tq-group.com>
To: linux-clk@vger.kernel.org
Cc: Marek Vasut <marex@denx.de>
Subject: clk-renesas-pcie (9FGV0241) does not work
Date: Fri, 26 Aug 2022 10:50:59 +0200 [thread overview]
Message-ID: <3458883.Lt9SDvczpP@steina-w> (raw)
Hi,
CC'ing Marek as original author.
I'm trying to use the clk-renesas-pcie driver for 9FGV0241 on my board.
But apparently it doesn't work. After digging into it IMHO the i2c transfer
are not correct.
The datasheet [1] states that for reading the following sequence applies:
1. Start
2. W slave address
3. W beginning byte
4. Repeated start
5. R slave address
6. data byte count (from slave)
7. beginning byte (from slave)
...
x. Stop
So before each read there is an additional byte containing (an apparently
configurable) amount of bytes to be transferred. This is also what I see in u-
boot:
> => i2c md 0x6a 0 9
> 0000: 08 ff 06 ff 5f ff 01 02 08 ...._....
The first ff, here on offset 1, is actually the reset default register/byte 0.
01 02 (offsets 6 & 7) are the ID registers at byte 5 & 6.
The write access is quite similar, the amount of bytes to be written has to be
sent first. So the data byte count is completely ignored, IMHO which is why
this doesn't work. Am I'm missing something? How can this be fixed?
Best regards,
Alexander
[1] https://www.renesas.com/us/en/document/dst/9fgv0241-datasheet?r=37495
next reply other threads:[~2022-08-26 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-26 8:50 Alexander Stein [this message]
2022-09-10 23:26 ` clk-renesas-pcie (9FGV0241) does not work Marek Vasut
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=3458883.Lt9SDvczpP@steina-w \
--to=alexander.stein@ew.tq-group.com \
--cc=linux-clk@vger.kernel.org \
--cc=marex@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