]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i2c: busses: make K1 driver default for SpacemiT platforms
authorIker Pedrosa <ikerpedrosam@gmail.com>
Tue, 26 May 2026 14:36:57 +0000 (16:36 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 4 Jun 2026 23:43:31 +0000 (01:43 +0200)
Enable I2C_K1 by default when ARCH_SPACEMIT is configured to ensure SD
card functionality works out-of-the-box.

SpacemiT K1 boards use I2C-controlled PMICs (like the P1 chip) to
provide SD card power supplies. Without the I2C_K1 driver enabled,
regulators cannot be controlled and SD card detection/operation fails.

Suggested-by: Margherita Milani <margherita.milani@amarulasolutions.com>
Suggested-by: Yixun Lan <dlan@kernel.org>
Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260526-orangepi-sd-card-i2c-v1-1-b92268bfd467@gmail.com
drivers/i2c/busses/Kconfig

index ea3e7e92465dc81e594e871f7e3eedce1df4c545..30cb64ed4310922b3c3552d80ef2375682b9cc1a 100644 (file)
@@ -794,6 +794,7 @@ config I2C_K1
        tristate "SpacemiT K1 I2C adapter"
        depends on ARCH_SPACEMIT || COMPILE_TEST
        depends on OF
+       default ARCH_SPACEMIT
        help
          This option enables support for the I2C interface on the SpacemiT K1
          platform.