diff options
author | Christoph Winklhofer <[email protected]> | 2024-02-14 07:36:15 +0100 |
---|---|---|
committer | Krzysztof Kozlowski <[email protected]> | 2024-02-15 15:02:33 +0100 |
commit | a3c08804364e80328a9ffdac59bb26676b938195 (patch) | |
tree | 498c319d9ba2e94890d67e8d4523395aaa3b5781 /net/lapb/lapb_out.c | |
parent | 23b333375317f6c2866e1ede7e7c4a726fc22aa8 (diff) |
w1: add UART w1 bus driver
Add a UART 1-Wire bus driver. The driver utilizes the UART interface via
the Serial Device Bus to create the 1-Wire timing patterns. The driver
was tested on a "Raspberry Pi 3B" with a DS18B20 and on a "Variscite
DART-6UL" with a DS18S20 temperature sensor.
The 1-Wire timing pattern and the corresponding UART baud-rate with the
interpretation of the transferred bytes are described in the document:
Link: https://www.analog.com/en/technical-articles/using-a-uart-to-implement-a-1wire-bus-master.html
In short, the UART peripheral must support full-duplex and operate in
open-drain mode. The timing patterns are generated by a specific
combination of baud-rate and transmitted byte, which corresponds to a
1-Wire read bit, write bit or reset.
Signed-off-by: Christoph Winklhofer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[krzysztof: w1_uart_serdev_receive_buf() return type fixup]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions