* Re: I2C slave support on Xilinx Zybo
[not found] ` <CAMQCnXF47Kr3x3yeqba-me+N8rQ-vDJ6ziho5107qcckDbT0mQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-06-10 14:38 ` Wolfram Sang
[not found] ` <CAMQCnXHfcgWpAS4HT=8sCt7RHA29xMK9KzAU6H0rP3RR7DLMuw@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2015-06-10 14:38 UTC (permalink / raw)
To: Tim Bakker; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 692 bytes --]
Hi,
> I am currently working on getting slave support for the Xilinx Zybo platform
> with kernel version 3.19.0.
Cool! Any code you can show for the xilinx driver?
> These are the steps I have taken so far in userspace:
>
> # echo eeprom 0x28 > /sys/bus/i2c/devices/i2c-1/new_device
> # i2c i2c-1: new_device: Instantiated device eeprom at 0x29
Ehrm, no, you need to use the slave eeprom driver here. Gosh, did I
paste the wrong shell command into the docs? How emberrasing...
> I am new to asking question within the kernel emailing list, so I hope I do not
> offend anybody and I am certainly not trying.
No worries, you came to the right place.
Wolfram
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I2C slave support on Xilinx Zybo
[not found] ` <CAMQCnXHfcgWpAS4HT=8sCt7RHA29xMK9KzAU6H0rP3RR7DLMuw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-06-13 9:49 ` Wolfram Sang
2015-06-13 10:17 ` Tim Bakker
0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2015-06-13 9:49 UTC (permalink / raw)
To: Tim Bakker; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 531 bytes --]
> I don't think necessarily there is an error in the docs, it was probably my
Nope, the docs are wrong. Try this:
echo slave-24c02 0x28 > /sys/bus/i2c/devices/i2c-1/new_device
That should be it. I am travelling at the moment, so I can't double
check, sadly. But after that, you should have a new device at 1-0028
bound to the i2c-slave-eeprom driver.
Thanks for the code! Haven't looked in detail yet, needs some polishing
to match kernel coding style. But as they say, first make it work, then
make it beautiful.
Good luck!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I2C slave support on Xilinx Zybo
2015-06-13 9:49 ` Wolfram Sang
@ 2015-06-13 10:17 ` Tim Bakker
[not found] ` <CAMQCnXGQTQdXaOL5vT0ZbV-F_0P5qJ7kSQSHrMv49fMbAy2UrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Tim Bakker @ 2015-06-13 10:17 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
I think that worked, I can see the device popup in the
/sys/bus/i2c/drivers/i2c-slave-eeprom folder, and looking at the
uevent file in the created device (1-0028) gives me:
DRIVER=i2c-slave-eeprom
MODALIAS=i2c:slave-24c02
Sorry to hackle you more but I am still getting the continuous message
(when the console log level has changed to 8):
i2c-slave-eerpom 1-0028: uevent
Should I just ignore this for now and see if I can get the slave
support to work or do you think this might be in an issue in my
implementation of the slave support in the xilinx driver.
Thanks,
Tim
On Sat, Jun 13, 2015 at 5:49 AM, Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> wrote:
>
>> I don't think necessarily there is an error in the docs, it was probably my
>
> Nope, the docs are wrong. Try this:
>
> echo slave-24c02 0x28 > /sys/bus/i2c/devices/i2c-1/new_device
>
> That should be it. I am travelling at the moment, so I can't double
> check, sadly. But after that, you should have a new device at 1-0028
> bound to the i2c-slave-eeprom driver.
>
> Thanks for the code! Haven't looked in detail yet, needs some polishing
> to match kernel coding style. But as they say, first make it work, then
> make it beautiful.
>
> Good luck!
--
Tim Bakker, PhD
Research Assistant
Virginia Commonwealth University
601 W. Main St.
Richmond, VA 23284-3068
Rm. 216
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I2C slave support on Xilinx Zybo
[not found] ` <CAMQCnXGQTQdXaOL5vT0ZbV-F_0P5qJ7kSQSHrMv49fMbAy2UrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-06-13 12:06 ` Wolfram Sang
0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2015-06-13 12:06 UTC (permalink / raw)
To: Tim Bakker; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
> Sorry to hackle you more but I am still getting the continuous message
> (when the console log level has changed to 8):
>
> i2c-slave-eerpom 1-0028: uevent
I will check that next week when I am back. I didn't use udev or
something similar when developing this framework, so I didn't notice.
> Should I just ignore this for now and see if I can get the slave
> support to work or do you think this might be in an issue in my
> implementation of the slave support in the xilinx driver.
Since I don't know and can't test anything at the moment, I'd say just
keep going :)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-13 12:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAMQCnXF47Kr3x3yeqba-me+N8rQ-vDJ6ziho5107qcckDbT0mQ@mail.gmail.com>
[not found] ` <CAMQCnXF47Kr3x3yeqba-me+N8rQ-vDJ6ziho5107qcckDbT0mQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-10 14:38 ` I2C slave support on Xilinx Zybo Wolfram Sang
[not found] ` <CAMQCnXHfcgWpAS4HT=8sCt7RHA29xMK9KzAU6H0rP3RR7DLMuw@mail.gmail.com>
[not found] ` <CAMQCnXHfcgWpAS4HT=8sCt7RHA29xMK9KzAU6H0rP3RR7DLMuw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-13 9:49 ` Wolfram Sang
2015-06-13 10:17 ` Tim Bakker
[not found] ` <CAMQCnXGQTQdXaOL5vT0ZbV-F_0P5qJ7kSQSHrMv49fMbAy2UrA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-13 12:06 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).