drivers: w1 introduce 1-wire api and common code

This commit introduces a new api for the Dallas 1-wire protocol.
The api includes link functions for read and write operations on
bit, byte, and block level, as well as functions to reset and
lock the bus.

The bus configuration is derived from the device tree and can be
queried using w1_slave_count routine.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
Thomas Stranger 2022-03-08 10:12:34 +01:00 committed by Carles Cufí
commit d63cf82a46
9 changed files with 551 additions and 0 deletions

View file

@ -57,6 +57,8 @@ source "drivers/dac/Kconfig"
source "drivers/watchdog/Kconfig"
source "drivers/w1/Kconfig"
source "drivers/clock_control/Kconfig"
source "drivers/ptp_clock/Kconfig"