Skip to content

Commit

Permalink
w1: add 1-wire (w1) DS2408 8-Channel Addressable Switch support
Browse files Browse the repository at this point in the history
This DS2408 w1 slave driver is not complete for all the features of the
chip, but its sufficient if you use it as a simple IO expander.

[[email protected]: fix w1_ds2408.c printk formats]
Signed-off-by: Jean-François Dagenais <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Cc: Szabolcs Gyurko <[email protected]>
Cc: Matt Reimer <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jean-François Dagenais authored and torvalds committed May 27, 2011
1 parent 67dfd54 commit 8961027
Show file tree
Hide file tree
Showing 4 changed files with 411 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/w1/slaves/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ config W1_SLAVE_SMEM
Say Y here if you want to connect 1-wire
simple 64bit memory rom(ds2401/ds2411/ds1990*) to your wire.

config W1_SLAVE_DS2408
tristate "8-Channel Addressable Switch (IO Expander) 0x29 family support (DS2408)"
help
Say Y here if you want to use a 1-wire

DS2408 8-Channel Addressable Switch device support

config W1_SLAVE_DS2423
tristate "Counter 1-wire device (DS2423)"
select CRC16
Expand Down
1 change: 1 addition & 0 deletions drivers/w1/slaves/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

obj-$(CONFIG_W1_SLAVE_THERM) += w1_therm.o
obj-$(CONFIG_W1_SLAVE_SMEM) += w1_smem.o
obj-$(CONFIG_W1_SLAVE_DS2408) += w1_ds2408.o
obj-$(CONFIG_W1_SLAVE_DS2423) += w1_ds2423.o
obj-$(CONFIG_W1_SLAVE_DS2431) += w1_ds2431.o
obj-$(CONFIG_W1_SLAVE_DS2433) += w1_ds2433.o
Expand Down
Loading

0 comments on commit 8961027

Please sign in to comment.