Hi Titus,
Thanks for the reply. Yes pin mux is ok for GPIO 138. Just check that. Also the McSPI2_CS1 is shared between three devices via GPIO CS pins which are GPIO 138, 136, 55
Am i correct in saying that if I define .controller_data as
struct select_device {
shared_devices device;
unsigned char cs_gpio;
}
enum shared_devices {
DEVICE1, // All are same IO Extender cards
DEVICE2,
DEVICE3
}
.controller_data = &select_device;
This way when I read and write to a device by checking which one needs to be spoken to and toggle the appropriate GPIO line or is there a better way to do it.