linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Sample DTS entries and sample user space code
@ 2009-07-10 21:09 Lindsey Ings -X (ingsl - Yoh Services LLC at Cisco)
       [not found] ` <50A8E1F8D9122546A7F67134915EDB7AB91AB4-1urkduz2x36J+CMdqUBC+pT4Y6eR2OpR0E9HWUfgJXw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Lindsey Ings -X (ingsl - Yoh Services LLC at Cisco) @ 2009-07-10 21:09 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA; +Cc: giometti-AVVDYK/kqiJWk0Htik3J/w



Resend of message in plain text form.


I understand the concepts involved in this project but that doesn't help me actually make use of it.

Is there a sample of how to put the mux and (if feasible) I2C clients in a DTS?

Also is there a user application sample of how to access the devices downstream from the mux?  Are the mux's created as a device so that the devices downstream are accessed as non-mux'd devices?  i.e. is dev D in segment 2 (from the diagram on the wiki) accessed as so:

int fd;
fd = open( "/dev/i2c-2", O_RDWR );

#define ADDRESS 0x38 // address of dev D
ioctl( fd, I2C_SLAVE, ADDRESS )

// Now r/w dev D

// Write 0xAA to dev D
i2c_smbus_write_byte( fd, 0xAA );
// etc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-31  7:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 21:09 Sample DTS entries and sample user space code Lindsey Ings -X (ingsl - Yoh Services LLC at Cisco)
     [not found] ` <50A8E1F8D9122546A7F67134915EDB7AB91AB4-1urkduz2x36J+CMdqUBC+pT4Y6eR2OpR0E9HWUfgJXw@public.gmane.org>
2009-07-14  7:57   ` Jean Delvare
     [not found]     ` <20090714095701.0aec363e-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-07-14 14:31       ` Lindsey Ings -X (ingsl - Yoh Services LLC at Cisco)
2009-07-28 20:38       ` Lindsey Ings -X (ingsl - Yoh Services LLC at Cisco)
     [not found]         ` <50A8E1F8D9122546A7F67134915EDB7AC2D44D-1urkduz2x36J+CMdqUBC+pT4Y6eR2OpR0E9HWUfgJXw@public.gmane.org>
2009-07-31  7:27           ` Jean Delvare

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).