Skip to contentSkip to conversation

w1: Add 1-wire slave device driver for DS28E04-100

PATCH In review Markus Franke 2 participants 2 messages Mar 15, 2012 W1 dallas's 1-wire bus

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 w1: Add 1-wire slave device driver for DS28E04-100

This patch adds a 1-wire slave device driver for the DS28E04-100.

It applies to the current linux kernel git tree.

---
 drivers/w1/slaves/Kconfig      |    7 +
 drivers/w1/slaves/Makefile     |    1 +
 drivers/w1/slaves/w1_ds28e04.c |  458 
++++++++++++++++++++++++++++++++++++++++
 drivers/w1/w1_family.h         |    1 +
 4 files changed, 467 insertions(+), 0 deletions(-)
 create mode 100644 drivers/w1/slaves/w1_ds28e04.c
drivers/w1/slaves/Kconfig +7 -0
index d0cb01b..609b175 100644
@@ -81,6 +81,13 @@ config W1_SLAVE_DS2780
 
 	  If you are unsure, say N.
 
+config W1_SLAVE_DS28E04
+	tristate "4096-Bit Addressable 1-Wire EEPROM with PIO (DS28E04-100)"
+	depends on W1
+	help
+	  Say Y here if you want to use a 1-wire
+	  4kb EEPROM with PIO family device (DS28E04).
+
 config W1_SLAVE_BQ27000
 	tristate "BQ27000 slave support"
 	depends on W1
drivers/w1/slaves/Makefile +1 -0
index 1f31e9f..aa1c8db 100644
@@ -11,3 +11,4 @@ obj-$(CONFIG_W1_SLAVE_DS2433)	+= w1_ds2433.o
 obj-$(CONFIG_W1_SLAVE_DS2760)	+= w1_ds2760.o
 obj-$(CONFIG_W1_SLAVE_DS2780)	+= w1_ds2780.o
 obj-$(CONFIG_W1_SLAVE_BQ27000)	+= w1_bq27000.o
+obj-$(CONFIG_W1_SLAVE_DS28E04)	+= w1_ds28e04.o
drivers/w1/slaves/w1_ds28e04.c new file +458 -0

458 lines not on this page · raw message

drivers/w1/w1_family.h +1 -0
index 490cda2..aa79c28 100644
@@ -30,6 +30,7 @@
 #define W1_FAMILY_SMEM_01	0x01
 #define W1_FAMILY_SMEM_81	0x81
 #define W1_THERM_DS18S20 	0x10
+#define W1_FAMILY_DS28E04	0x1C
 #define W1_COUNTER_DS2423	0x1D
 #define W1_THERM_DS1822  	0x22
 #define W1_EEPROM_DS2433  	0x23
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 10 lines · Markus Franke

This patch adds a 1-wire slave device driver for the DS28E04-100.

It applies to the current linux kernel git tree.

---
 drivers/w1/slaves/Kconfig      |    7 +
 drivers/w1/slaves/Makefile     |    1 +
 drivers/w1/slaves/w1_ds28e04.c |  458

++++++++++++++++++++++++++++++++++++++++

Your email client munged the patch to be line-wrapped and added an extra space at the beginning of each line, making this impossible to apply.

Also, please cc: the w1 maintainer for patches like this, I need his ACK before I can accept them.

care to try again?

greg k-h