OWC(4)
πΈ NAME πΈ
okay bestie, welcome to OWC(4) from the Kernel Interfaces Manual β this is the page for owc β Dallas Semiconductor 1-Wire Controller. π it's giving niche kernel-interface main character energy, fr fr.
β¨ SYNOPSIS β¨
the whole synopsis is literally:
device owc
π¦ DESCRIPTION π¦
The owc module implements Dallas Semiconductor 1-Wire signaling. It attaches the ow(4) driver 1-Wire bus protocol. The owc 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.
π¨ warning bestie: strong pull-up functionality needed to support parasitic mode is not implemented β noted, no cap. π
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/dts/bindings-gpio.txt.
On a device.hints(5) based system these values are required for the owc:
hint.owc.%d.atβ Thegpiobusyou are attaching to.hint.owc.%d.pinsβ This is a bitmask that defines a pin on thegpiobusthat is to be used for the 1-Wire bus. For instance, to configure pin 10, use the bitmask of0x400. Please note that this mask should have only one bit set (any other bits - i.e., pins - will be ignored).
π SEE ALSO π
go read these too, iykyk:
βοΈ LEGAL βοΈ
1-Wire is a registered trademark of Maxim Integrated Products, Inc.
π°οΈ HISTORY π°οΈ
The owc driver first appeared in FreeBSD 11.0.
π AUTHORS π
The owc device driver and this manual page were written by Warner Losh.
π«Ά CAVEATS π«Ά
The gpio driver implements timing by busy waiting, which can cause a high load on slower systems β lowkey noted.
π BUGS π
Overdrive mode has not actually been tested. not me pointing at the untested overdrive mode π
okay bye bestie, this page is from Debian, dated June 26, 2019, and it's the OWC(4) manual β mwah π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2015 M. Warner Losh <imp@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms