>> Your device is an rs5c372b. So, that's what you put in >> your device tree. Simple so far, right? >> >> Now some OF I2C code goes looking for IIC devices in the >> device tree. It finds this thing, and from a table or >> something it derives that it has to tell the kernel I2C >> layer this is an "rtc-rs5c372". [It would be nicer if it >> could just instantiate the correct driver directly, but >> if that's how the Linux I2C layer works, so be it]. >> >> No change in the I2C "core" needed, just an OF "compatible" >> matching thing like is needed *everywhere else* too. > > How about the patch below?
Looks good. It should later be moved to a more generic I2C OF matching layer, but fine for now. Thanks! You might want to put vendor names in the "compatible" entries, dunno though, maybe these are "cross-vendor" ICs? Segher _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev