···11+What: /sys/bus/w1/devices/.../pio22+Date: May 201233+Contact: Markus Franke <franm@hrz.tu-chemnitz.de>44+Description: read/write the contents of the two PIO's of the DS28E04-10055+ see Documentation/w1/slaves/w1_ds28e04 for detailed information66+Users: any user space application which wants to communicate with DS28E04-10077+88+99+1010+What: /sys/bus/w1/devices/.../eeprom1111+Date: May 20121212+Contact: Markus Franke <franm@hrz.tu-chemnitz.de>1313+Description: read/write the contents of the EEPROM memory of the DS28E04-1001414+ see Documentation/w1/slaves/w1_ds28e04 for detailed information1515+Users: any user space application which wants to communicate with DS28E04-100
+36
Documentation/w1/slaves/w1_ds28e04
···11+Kernel driver w1_ds28e0422+========================33+44+Supported chips:55+ * Maxim DS28E04-100 4096-Bit Addressable 1-Wire EEPROM with PIO66+77+supported family codes:88+ W1_FAMILY_DS28E04 0x1C99+1010+Author: Markus Franke, <franke.m@sebakmt.com> <franm@hrz.tu-chemnitz.de>1111+1212+Description1313+-----------1414+1515+Support is provided through the sysfs files "eeprom" and "pio". CRC checking1616+during memory accesses can optionally be enabled/disabled via the device1717+attribute "crccheck". The strong pull-up can optionally be enabled/disabled1818+via the module parameter "w1_strong_pullup".1919+2020+Memory Access2121+2222+ A read operation on the "eeprom" file reads the given amount of bytes2323+ from the EEPROM of the DS28E04.2424+2525+ A write operation on the "eeprom" file writes the given byte sequence2626+ to the EEPROM of the DS28E04. If CRC checking mode is enabled only2727+ fully alligned blocks of 32 bytes with valid CRC16 values (in bytes 302828+ and 31) are allowed to be written.2929+3030+PIO Access3131+3232+ The 2 PIOs of the DS28E04-100 are accessible via the "pio" sysfs file.3333+3434+ The current status of the PIO's is returned as an 8 bit value. Bit 0/13535+ represent the state of PIO_0/PIO_1. Bits 2..7 do not care. The PIO's are3636+ driven low-active, i.e. the driver delivers/expects low-active values.
+13
drivers/w1/slaves/Kconfig
···94949595 If you are unsure, say N.96969797+config W1_SLAVE_DS28E049898+ tristate "4096-Bit Addressable 1-Wire EEPROM with PIO (DS28E04-100)"9999+ depends on W1100100+ select CRC16101101+ help102102+ If you enable this you will have the DS28E04-100103103+ chip support.104104+105105+ Say Y here if you want to use a 1-wire106106+ 4kb EEPROM with PIO family device (DS28E04).107107+108108+ If you are unsure, say N.109109+97110config W1_SLAVE_BQ2700098111 tristate "BQ27000 slave support"99112 depends on W1