owc (4)
Leading comments
Copyright (c) 2015 M. Warner Losh All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PRO...
NAME
owc - Dallas Semiconductor 1-Wire ControllerSYNOPSIS
device owcDESCRIPTION
The module implements Dallas Semiconductor 1-Wire signaling. It attaches the ow(4) driver 1-Wire bus protocol. The device implements the Link Layer of the 1-Wire bus protocol stack.Bit banging a pin on a gpiobus(4) is the only supported controller. Both standard and overdrive transfer timings are implemented. Strong pull-up functionality needed to support parasitic mode is not implemented.
To enable 1-Wire for FDT systems requires modifying the DTS for your board to add something like:
/ { ... onewire { compatible = "w1-gpio"; gpios = <&gpio 4 1>; }; ... };
The gpios property describes the GPIO pin the 1-Wire bus is connected to. For more details about the gpios property, please consult /usr/src/sys/boot/fdt/dts/bindings-gpio.txt