[openwrt/openwrt] kernel: add support for DesignWare I2C Platform controller
LEDE Commits
lede-commits at lists.infradead.org
Thu Jun 12 04:51:31 PDT 2025
noltari pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/40be479fe35242deb7b366bd5d273606c382826c
commit 40be479fe35242deb7b366bd5d273606c382826c
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Sun Jun 8 17:03:30 2025 +0200
kernel: add support for DesignWare I2C Platform controller
Add kernel package for DesignWare I2C platform controller.
This controller is used on the RP1 SoC found on RPi 5 devices.
Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
(cherry picked from commit 84922a1e34f8fafeeebc3e6a25b93b95728c1706)
---
package/kernel/linux/modules/i2c.mk | 22 ++++++++++++++++++++--
target/linux/generic/config-6.6 | 2 ++
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index 3aaf560ea9..70bdaf22ab 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -116,17 +116,35 @@ I2C_DWPCI_MODULES:= \
define KernelPackage/i2c-designware-pci
$(call i2c_defaults,$(I2C_DWPCI_MODULES),59)
- TITLE:=Synopsys DesignWare PCI
+ TITLE:=Synopsys DesignWare I2C PCI
DEPENDS:=@PCI_SUPPORT +kmod-i2c-designware-core +kmod-i2c-ccgs-ucsi
endef
define KernelPackage/i2c-designware-pci/description
- Support for Synopsys DesignWare I2C controller. Only master mode is supported.
+ Support for Synopsys DesignWare I2C PCI controller. Only master mode is
+ supported.
endef
$(eval $(call KernelPackage,i2c-designware-pci))
+I2C_DWPLAT_MODULES:= \
+ CONFIG_I2C_DESIGNWARE_PLATFORM:drivers/i2c/busses/i2c-designware-platform
+
+define KernelPackage/i2c-designware-platform
+ $(call i2c_defaults,$(I2C_DWPLAT_MODULES),59)
+ TITLE:=Synopsys DesignWare I2C Platform
+ DEPENDS:=+kmod-i2c-designware-core
+endef
+
+define KernelPackage/i2c-designware-platform/description
+ Support for Synopsys DesignWare I2C Platform controller. Only master mode
+ is supported.
+endef
+
+$(eval $(call KernelPackage,i2c-designware-platform))
+
+
I2C_GPIO_MODULES:= \
CONFIG_I2C_GPIO:drivers/i2c/busses/i2c-gpio
diff --git a/target/linux/generic/config-6.6 b/target/linux/generic/config-6.6
index 5fc31b37b0..deb58397b5 100644
--- a/target/linux/generic/config-6.6
+++ b/target/linux/generic/config-6.6
@@ -2460,6 +2460,8 @@ CONFIG_HZ_100=y
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEMUX_PINCTRL is not set
+# CONFIG_I2C_DESIGNWARE_AMDPSP is not set
+# CONFIG_I2C_DESIGNWARE_BAYTRAIL is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_SLAVE is not set
More information about the lede-commits
mailing list