Hi,
currently, I don't see how it is possible to write generic i2c-parent-controller-independent attachment glue in dev/fdt/, ie. for drivers in dev/i2c. The usual way how they are written with doesn't work as the devices in dev/i2c attach "at i2c" already. visa@ just commited something in the direction i wish you would continue, and that would be adding "needs-flag" to dev/ofw/files.ofw: 3: file dev/ofw/fdt.c fdt -> 3: file dev/ofw/fdt.c fdt needs-flag which would allow writing cleaner glue with less pollution, imo.. I have some examples, if this isn't totally out of the question, of which i think most wanted might be for maxrtc(4), as many boards come with lacking RTC/battery and maxrtc(4) is a cheap&easy fix for it. -Artturi