OWC(4)
π« OWC(4) β Dallas Semiconductor 1-Wire Controller π«
okay bestie, so this is the Kernel Interfaces Manual page for owc, and we're gonna get you fluent in it. no cap, it's shorter than it looks. π¦
πΈ NAME πΈ
owc β Dallas Semiconductor 1-Wire Controller
β¨ SYNOPSIS β¨
device owc
π DESCRIPTION π
So the owc module is the one that actually implements Dallas Semiconductor 1-Wire signaling. It attaches the ow(4) driver 1-Wire bus protocol β like, it's the thing holding hands with it. And the owc device implements the Link Layer of the 1-Wire bus protocol stack. lowercase icon behavior honestly. π
Bit banging a pin on a gpiobus(4) is the only supported controller, periodt. Both standard and overdrive transfer timings are implemented. But the strong pull-up functionality needed to support parasitic mode is not implemented β so don't come for it, it's simply not there. π
If you wanna enable 1-Wire on FDT systems, you gotta modify the DTS for your board and add something like this:
/ {
...
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. (iykyk π)
π 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 π«Ά
gpiobus(4), ow(4), ow_temp(4), owll(9), own(9)
βοΈ 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. slay.
π CAVEATS π
The gpio driver implements timing by busy waiting, which can cause a high load on slower systems. so likeβ¦ heads up, bestie. π₯
π BUGS π
Overdrive mode has not actually been tested. not me exposing the driver like this π fr fr, it's right there in the manpage.
okay that's the whole vibe check, you're officially fluent in owc πβ¨
this page was brought to you by the Debian fam, dated June 26, 2019 β stay iconic, and go read the source, it's giving main character energy ππ¦π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2015 M. Warner Losh
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms