DS2482OW(4) Device Drivers Manual DS2482OW(4)

ds2482ow — Driver for Maxim DS2482-100, DS2482-800, DS2483 and DS2484 IC2 to 1-Wire bridge

ds2482ow* at iic? addr 0x18 Only one available to the DS2483 and DS2484
ds2482ow* at iic? addr 0x19
ds2482ow* at iic? addr 0x1a
ds2482ow* at iic? addr 0x1b
ds2482ow* at iic? addr 0x1c DS2482-800 only
ds2482ow* at iic? addr 0x1d DS2482-800 only
ds2482ow* at iic? addr 0x1e DS2482-800 only
ds2482ow* at iic? addr 0x1f DS2482-800 only
onewire* at ds2482ow?

The ds2482ow driver provides 1 or 8 onewire(4) busses via an I2C interface. The ds2482ow addr argument selects the address at the iic(4) bus. The chip generates all of the needed 1-Wire pulses on its own and provides for the pullup needed on the 1-Wire data line. The method that the chip uses for pullup can be changed through sysctl(8) nodes.

The following sysctl(3) variables are provided:

If true, turn on active pullup on all channels supported by the chip.
If true, turn on strong pullup on all channels that the chip supports and on the DS2482-100 chip, allow the PCTLZ pin to provide addition current to the 1-Wire bus. This mode conflicts with a 1-Wire reset and will be disabled if that command is sent to the 1-Wire bus.

use an internal passive resister.
If the driver is compiled with DS2482_DEBUG, this node will appear and can be used to set the debugging level.
 
 
 
 
On a DS2483 and DS2484 chip these nodes will be present and can be used to adjust various timing values. The value used in these nodes range from 0 to 15 and map to microsecond timing values used in the 1-Wire protocol. The following table has the mapping for 1-Wire standard speed:
Parameter tRSTL tMSP tW0L tREC0 RWPU
0 440 58 52 2.75 500
1 460 58 54 2.75 500
2 480 60 56 2.75 500
3 500 62 58 2.75 500
4 520 64 60 2.75 500
5 540 66 62 2.75 500
6 560 68 64 5.25 1000
7 580 70 66 7.75 1000
8 600 72 68 10.25 1000
9 620 74 70 12.75 1000
10 640 76 70 15.25 1000
11 660 76 70 17.75 1000
12 680 76 70 20.25 1000
13 700 76 70 20.75 1000
14 720 76 70 25.25 1000
15 740 76 70 25.25 1000

The datasheet for the DS2483 or DS2484 should be consulted for more details on the meaning of these parameters.

onewire(4), iic(4), sysctl(8)

The ds2482ow driver first appeared in NetBSD 11.0.

The ds2482ow driver was written by Brad Spencer <brad@anduin.eldar.org>.

The DS248x chip family supports overdrive speed on a 1-Wire bus, but this driver does not support overdrive speed mode.

October 31, 2024 NetBSD 11.1