RE: Sample DTS entries and sample user space code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.



--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux