* I2C Slave support - how to use it?
@ 2015-03-17 23:14 Peter Hüwe
[not found] ` <201503180014.08870.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Peter Hüwe @ 2015-03-17 23:14 UTC (permalink / raw)
To: wsa-z923LK4zBo2bacvFa/9K2g; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
Hi Wolfram,
I think the I2C slave support is an excellent feature you added to Linux
(thanks for that) but I somehow have some problems to get it working on -rc4.
What are the magical commands to get a linux slave on e.g. bus 1?
What I tried:
modprobe i2c-dev
modprobe i2c-slave-eeprom
# echo i2c_slave_eeprom 0x20 > /sys/bus/i2c/devices/i2c-1/new_device
[ 16.119] i2c i2c-1: new_device: Instantiated device i2c_slave_eeprom at 0x20
# find /sys -name '*eeprom*'
/sys/bus/i2c/drivers/i2c-slave-eeprom
/sys/module/i2c_slave_eeprom
/sys/module/i2c_slave_eeprom/drivers/i2c:i2c-slave-eeprom
# ls -lah /sys/bus/i2c/devices/1-0020/
insgesamt 0
drwxr-xr-x 3 root root 0 18. Mär 00:11 .
drwxr-xr-x 5 root root 0 18. Mär 00:11 ..
-r--r--r-- 1 root root 4,0K 18. Mär 00:11 modalias
-r--r--r-- 1 root root 4,0K 18. Mär 00:11 name
drwxr-xr-x 2 root root 0 18. Mär 00:11 power
lrwxrwxrwx 1 root root 0 18. Mär 00:11 subsystem -> ../../../../../bus/i2c
-rw-r--r-- 1 root root 4,0K 18. Mär 00:11 uevent
--> the slave-eeprom file mentioned here is not present.
https://marc.info/?l=linux-i2c&m=142616417313963&w=4
Thanks,
Peter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: I2C Slave support - how to use it?
[not found] ` <201503180014.08870.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
@ 2015-03-18 6:31 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2015-03-18 6:31 UTC (permalink / raw)
To: Peter Hüwe; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 381 bytes --]
> I think the I2C slave support is an excellent feature you added to Linux
Thanks!
>
> --> the slave-eeprom file mentioned here is not present.
> https://marc.info/?l=linux-i2c&m=142616417313963&w=4
Does your I2C bus driver have slave support? In upstream, this is only
the Renesas R-Car driver so far. Check the 'Developer manual' to find
out what is needed.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-18 6:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 23:14 I2C Slave support - how to use it? Peter Hüwe
[not found] ` <201503180014.08870.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
2015-03-18 6:31 ` 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).