linux/Documentation/devicetree/bindings/i2c
David Daney bc45449b14 i2c/of: Automatically populate i2c mux busses from device tree data.
For 'normal' i2c bus drivers, we can call of_i2c_register_devices()
and have the device tree framework automatically populate the bus with
the devices specified in the device tree.

This patch adds a common code to the i2c mux framework to have the mux
sub-busses be populated by the of_i2c_register_devices() too.  If the
mux device has an of_node, we populate the sub-bus' of_node so that
the subsequent call to of_i2c_register_devices() will find the
corresponding devices.

It seemed better to put this logic in i2c_add_mux_adapter() rather
than the individual mux drivers, as they will all probably want to do
the same thing.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Lars-Peter Clausen <lars@metafoo.de>

[wsa: removed superfluous ret-variable and fixed a typo in a comment]
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2012-05-12 14:28:16 +02:00
..
arm-versatile.txt arm/versatile: Add device tree support 2011-07-28 01:32:04 -06:00
ce4100-i2c.txt x86: dtb: Add a device tree for CE4100 2011-02-23 22:27:52 +01:00
fsl-i2c.txt
fsl-imx-i2c.txt i2c-imx: add device tree probe support 2011-09-14 22:16:14 +01:00
i2c-designware.txt i2c-designware: add OF binding support 2011-12-27 15:52:44 -06:00
mrvl-i2c.txt Document: devicetree: add OF documents for arch-mmp 2012-03-07 09:32:52 +08:00
mux.txt i2c/of: Automatically populate i2c mux busses from device tree data. 2012-05-12 14:28:16 +02:00
omap-i2c.txt i2c: OMAP: Add DT support for i2c controller 2012-01-17 22:44:57 +00:00
pnx.txt i2c: pnx: add device tree support 2012-05-12 14:28:14 +02:00
samsung-i2c.txt i2c-s3c2410: Add device tree support 2011-10-29 11:21:22 +01:00
sirf-i2c.txt i2c: add CSR SiRFprimaII on-chip I2C controllers driver 2012-03-07 19:05:04 +01:00
trivial-devices.txt dt/i2c: Enumerate some of the known trivial i2c devices 2011-12-27 15:42:26 -06:00