Files
Aurelien Jarno b10e18ec85 lib: utils/i2c: add minimal SpacemiT I2C driver
Add a simple SpacemiT I2C driver for basic byte transfers over the I2C
bus, prioritizing simplicity over performance. The driver operates in
PIO mode and does not use interrupts, FIFO, or DMA.

The controller is reset at the start of each transaction to ensure a
known initial state, regardless of prior configuration by the kernel.
This also avoids the need for additional error recovery code.

This will be used for communication with onboard PMIC to reset and
power-off the board.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Link: https://lore.kernel.org/r/20260419150857.2705843-2-aurelien@aurel32.net
Signed-off-by: Anup Patel <anup@brainfault.org>
2026-05-11 19:21:31 +05:30

36 lines
501 B
Plaintext

# SPDX-License-Identifier: BSD-2-Clause
menu "I2C Support"
config FDT_I2C
bool "FDT based I2C drivers"
depends on FDT
select I2C
default n
if FDT_I2C
config FDT_I2C_SIFIVE
bool "SiFive I2C FDT driver"
default n
config FDT_I2C_SPACEMIT
bool "SpacemiT I2C FDT driver"
default n
config FDT_I2C_DW
bool "Synopsys Designware I2C FDT driver"
select I2C_DW
default n
endif
config I2C_DW
bool "Synopsys Designware I2C support"
default n
config I2C
bool "I2C support"
default n
endmenu