diff mbox

[LEDE-DEV] ramips: fix GPIOs for Ubiquiti EdgeRouter X-SFP

Message ID 1496945518-16109-1-git-send-email-devel-sven@geroedel.de
State Deferred
Delegated to: Mathias Kresin
Headers show

Commit Message

Sven Roederer June 8, 2017, 6:11 p.m. UTC
This adds the i2c-gpio and i2c-pca95xx module to the default kernel.
Even they are listed in the dependencies of the board, they are not
built and for this missing in the imagefile. This causes that the
accessed hardware is not avail.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
---
 target/linux/ramips/mt7621/config-4.4 | 3 +++
 target/linux/ramips/mt7621/config-4.9 | 3 +++
 2 files changed, 6 insertions(+)

Comments

Mathias Kresin July 6, 2017, 1:12 p.m. UTC | #1
2017-06-08 20:11 GMT+02:00 Sven Roederer <devel-sven@geroedel.de>:
> This adds the i2c-gpio and i2c-pca95xx module to the default kernel.
> Even they are listed in the dependencies of the board, they are not
> built and for this missing in the imagefile. This causes that the
> accessed hardware is not avail.

Hey Sven,

I had a look at the sysupgrade.tar snapshot image. gpio-pca953x.ko and
i2c-gpio.ko are included. Could it be that you hit the issue that
DEVICE_PACKAGES are not included in ramdisk images?

Mathias
diff mbox

Patch

diff --git a/target/linux/ramips/mt7621/config-4.4 b/target/linux/ramips/mt7621/config-4.4
index 383370b..b7f7a3d 100644
--- a/target/linux/ramips/mt7621/config-4.4
+++ b/target/linux/ramips/mt7621/config-4.4
@@ -70,6 +70,8 @@  CONFIG_GENERIC_TIME_VSYSCALL=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_MT7621=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=n
 # CONFIG_GPIO_RALINK is not set
 CONFIG_GPIO_SYSFS=y
 CONFIG_HARDWARE_WATCHPOINTS=y
@@ -116,6 +118,7 @@  CONFIG_HIGHMEM=y
 CONFIG_HW_HAS_PCI=y
 CONFIG_HZ_PERIODIC=y
 CONFIG_I2C=y
+CONFIG_I2C_GPIO=y
 CONFIG_I2C_MT7621=y
 # CONFIG_IMG_MDC_DMA is not set
 CONFIG_INITRAMFS_SOURCE=""
diff --git a/target/linux/ramips/mt7621/config-4.9 b/target/linux/ramips/mt7621/config-4.9
index 6e95468..ca64117 100644
--- a/target/linux/ramips/mt7621/config-4.9
+++ b/target/linux/ramips/mt7621/config-4.9
@@ -75,6 +75,8 @@  CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GENERIC_TIME_VSYSCALL=y
 CONFIG_GPIOLIB=y
 CONFIG_GPIO_MT7621=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=n
 # CONFIG_GPIO_RALINK is not set
 CONFIG_GPIO_SYSFS=y
 CONFIG_HANDLE_DOMAIN_IRQ=y
@@ -123,6 +125,7 @@  CONFIG_HW_HAS_PCI=y
 CONFIG_HZ_PERIODIC=y
 CONFIG_I2C=y
 CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_GPIO=y
 CONFIG_I2C_MT7621=y
 CONFIG_INITRAMFS_SOURCE=""
 CONFIG_IRQCHIP=y