• Mika Laitio's avatar
    w1: DS2423 counter driver and documentation · 17fecb55
    Mika Laitio authored
    This is a 1-wire/w1 DS2423 slave driver for reading the values from all 4
    counters available DS2423 devices by using standard w1_slave file.  In
    ds2423 the counters are tied to ram pages 12-15 in and each of those
    ram-pages.  Each of these counter values (and asoociated ram page values)
    are represented as a own line in w1_slave file.  Driver has been tested on
    mips and x86.
    
    usage example:
    cat /sys/bus/w1/devices/1d-00000009b964/w1_slave
    
    00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff
    ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
    00 02 00 00 00 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff
    ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
    00 5a 0e 5f 18 00 00 00 00 0b 28 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff
    ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=408882778
    00 05 00 00 00 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=YES c=5
    
    Patch includes also the documentation.
    
    [randy.dunlap@oracle.com: fix ds2423 build, needs to select CRC16]
    Signed-off-by: default avatarMika Laitio <lamikr@pilppa.org>
    Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    17fecb55
Kconfig 1.78 KB