Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331551
b: refs/heads/master
c: 600a711
h: refs/heads/master
i:
  331549: de7327c
  331547: 05f4598
  331543: 22eb7ee
  331535: 4f0a70c
  331519: 37a4877
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Oct 5, 2012
1 parent 911aacd commit ac423a4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7ee51405835cac72e7b6e0ff26dba608cf186cc
refs/heads/master: 600a711cfeb10769e386c4ce7d39e9f0cc4b471a
18 changes: 18 additions & 0 deletions trunk/Documentation/i2c/muxes/i2c-mux-gpio
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,21 @@ static struct platform_device myboard_i2cmux = {
.platform_data = &myboard_i2cmux_data,
},
};

If you don't know the absolute GPIO pin numbers at registration time,
you can instead provide a chip name (.chip_name) and relative GPIO pin
numbers, and the i2c-gpio-mux driver will do the work for you,
including deferred probing if the GPIO chip isn't immediately
available.

Device Registration
-------------------

When registering your i2c-gpio-mux device, you should pass the number
of any GPIO pin it uses as the device ID. This guarantees that every
instance has a different ID.

Alternatively, if you don't need a stable device name, you can simply
pass PLATFORM_DEVID_AUTO as the device ID, and the platform core will
assign a dynamic ID to your device. If you do not know the absolute
GPIO pin numbers at registration time, this is even the only option.

0 comments on commit ac423a4

Please sign in to comment.