Skip to contentSkip to conversation

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

PATCH In review Markus Franke 4 participants 10 messages Mar 16, 2012 – Apr 11, 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
#2 lore raw

Dear Greg,

have you received this patch? Just wondering because I have not heard something about this anymore from your side. Please do also have a look at

[PATCH 2/2] w1: Disable irqs during 1-wire bus operations, extend 1-wire reset pulse

Both patches have already been signed by Evgeniy Polyakov.

Thanks and with best regards,

Markus Franke

Am 18.03.2012 22:40, schrieb Evgeniy Polyakov:

Quoted 14 lines

Hi

Quoted 3 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.

As discussed with Markus already - looks very good Greg, please pull it into your tree

Quoted 1 line
#3 lore raw
Quoted 10 lines · Markus Franke

Dear Greg,

have you received this patch? Just wondering because I have not heard something about this anymore from your side. Please do also have a look at

[PATCH 2/2] w1: Disable irqs during 1-wire bus operations, extend 1-wire reset pulse

Both patches have already been signed by Evgeniy Polyakov.

They are in my queue to apply after 3.4-rc1 is out as they came in after the merge window closed for my trees.

thanks,

greg k-h

#4 lore raw

Oh, perfect. Thanks for the information! :-)

Best regards,
Markus Franke

Am 26.03.2012 20:39, schrieb Greg KH:

Quoted 7 lines

They are in my queue to apply after 3.4-rc1 is out as they came in after the merge window closed for my trees.

thanks,

greg k-h

#5 lore raw
In reply to Markus Franke
Quoted 3 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.

It's corrupted somehow and doesn't apply at all :(

Care to redo this one, and your 2/2 patch, against the 3.4-rc2 release and resend it, with Evgeniy's acks, so that I can apply it? Please ensure that your email client doesn't mess it up again (hint, it is adding spaces at the front of the line of some parts of the diff.)

thanks,

greg k-h

#6 lore raw

Dear Greg,

Zitat von Greg KH <[email protected]>:

Quoted 11 lines · Markus Franke
Quoted 3 lines

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

It applies to the current linux kernel git tree.

It's corrupted somehow and doesn't apply at all :(

Care to redo this one, and your 2/2 patch, against the 3.4-rc2 release and resend it, with Evgeniy's acks, so that I can apply it? Please ensure that your email client doesn't mess it up again (hint, it is adding spaces at the front of the line of some parts of the diff.)

I don't have a clue what might go wrong within my email client. Would sending it as an attachement be an option? If not I might have to switch to another client.

Best regards,
Markus Franke

#7 lore raw
Quoted 11 lines · Markus Franke

Dear Greg,

Zitat von Greg KH <[email protected]>:

Quoted 7 lines · Markus Franke
Quoted 3 lines

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

It applies to the current linux kernel git tree.

It's corrupted somehow and doesn't apply at all :(

Quoted 8 lines
Quoted 4 lines

Care to redo this one, and your 2/2 patch, against the 3.4-rc2 release and resend it, with Evgeniy's acks, so that I can apply it? Please ensure that your email client doesn't mess it up again (hint, it is adding spaces at the front of the line of some parts of the diff.)

I don't have a clue what might go wrong within my email client. Would sending it as an attachement be an option? If not I might have to switch to another client.

Have you read Documentation/email_clients.txt yet?

greg k-h

#8 lore raw
In reply to Greg KH

Am 10.04.2012 00:08, schrieb Greg KH:

Quoted 11 lines · Markus Franke
Quoted 3 lines

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

It applies to the current linux kernel git tree.

It's corrupted somehow and doesn't apply at all :(

Care to redo this one, and your 2/2 patch, against the 3.4-rc2 release and resend it, with Evgeniy's acks, so that I can apply it? Please ensure that your email client doesn't mess it up again (hint, it is adding spaces at the front of the line of some parts of the diff.)

Used Thunderbird with external editor (vi) now, sent the patches to myself and applied successfully. Hope it is in a shape which can be accepted now.

Best regards,
Markus

#9 lore raw
Quoted 15 lines · Markus Franke

Am 10.04.2012 00:08, schrieb Greg KH:

Quoted 11 lines · Markus Franke
Quoted 3 lines

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

It applies to the current linux kernel git tree.

It's corrupted somehow and doesn't apply at all :(

Care to redo this one, and your 2/2 patch, against the 3.4-rc2 release and resend it, with Evgeniy's acks, so that I can apply it? Please ensure that your email client doesn't mess it up again (hint, it is adding spaces at the front of the line of some parts of the diff.)

Quoted 3 lines

Used Thunderbird with external editor (vi) now, sent the patches to myself and applied successfully. Hope it is in a shape which can be accepted now.

They worked fine, thanks for resending them.

greg k-h