05-03-2016, 07:56 AM
(This post was last modified: 05-03-2016, 08:09 AM by martinayotte.)
@tkaiser,
In fact, they are there, but named "twi".
https://github.com/longsleep/build-pine6...#L673-L698
In my case, i2cdetect is properly showing the I2C buses.
But I'm using my own rebuilt kernel, so maybe I've activated something, I can't remember.
EDIT: Yes, I think I've simply added CONFIG_I2C_CHARDEV=y
EDIT2 : I've done a "git diff" (I will send a PR to Simon) :
In fact, they are there, but named "twi".
https://github.com/longsleep/build-pine6...#L673-L698
In my case, i2cdetect is properly showing the I2C buses.
But I'm using my own rebuilt kernel, so maybe I've activated something, I can't remember.
EDIT: Yes, I think I've simply added CONFIG_I2C_CHARDEV=y
EDIT2 : I've done a "git diff" (I will send a PR to Simon) :
Code:
diff --git a/arch/arm64/configs/sun50iw1p1smp_linux_defconfig b/arch/arm64/configs/sun50iw1p1smp_linux_defconfig
index 3b94a33..c796361 100644
--- a/arch/arm64/configs/sun50iw1p1smp_linux_defconfig
+++ b/arch/arm64/configs/sun50iw1p1smp_linux_defconfig
@@ -355,7 +355,12 @@ CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
CONFIG_PPDEV=m
# CONFIG_HW_RANDOM is not set
# CONFIG_SUNXI_DMA_TEST is not set
+CONFIG_I2C=y
CONFIG_I2C_SUNXI=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_COMPAT=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_MUX=y
CONFIG_SPI=y
CONFIG_SPI_SUNXI=y
# CONFIG_PINCTRL_SUNXI_TEST is not set