diff mbox series

[v4,2/2] configs: rpi: Enable BCM2835 I2C controller

Message ID 20261104093101.500696-2-nguyenanhgiau1008@gmail.com
State New
Delegated to: Peter Robinson
Headers show
Series [v4,1/2] i2c: bcm2835: Add new BCM2835/BCM2711 I2C controller driver | expand

Commit Message

Giàu Nguyễn Anh Nov. 4, 2026, 9:31 a.m. UTC
Enable the newly added BCM2835 I2C controller driver
(CONFIG_SYS_I2C_BCM2835) and the 'i2c' command in rpi_4_defconfig and
rpi_arm64_defconfig.

Note that the I2C controller nodes are disabled in the firmware device
tree by default. Add e.g. "dtparam=i2c_arm=on" to config.txt so that
the firmware enables the I2C1 bus before U-Boot is started.

Signed-off-by: Giau Nguyen <nguyenanhgiau1008@gmail.com>
---

Notes:
    v4:
     - Split the defconfig change out of the driver patch into this patch.
     - Also enable the driver in rpi_arm64_defconfig, in addition to
       rpi_4_defconfig.
     - Order the options as generated by 'make savedefconfig' and drop the
       redundant CONFIG_I2C.
     - Mention in the commit message that the I2C nodes need to be enabled
       via config.txt.

 configs/rpi_4_defconfig     | 3 +++
 configs/rpi_arm64_defconfig | 3 +++
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/configs/rpi_4_defconfig b/configs/rpi_4_defconfig
index 850f8c7d1c6..b48abd2b040 100644
--- a/configs/rpi_4_defconfig
+++ b/configs/rpi_4_defconfig
@@ -24,6 +24,7 @@  CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_NVEDIT_EFI=y
 CONFIG_CMD_DFU=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
@@ -38,6 +39,8 @@  CONFIG_DFU_MMC=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
 CONFIG_SYS_DFU_MAX_FILE_SIZE=0x200000
 CONFIG_BCM2835_GPIO=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_BCM2835=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_BCM2835=y
diff --git a/configs/rpi_arm64_defconfig b/configs/rpi_arm64_defconfig
index 87780c2286c..7eebf114df2 100644
--- a/configs/rpi_arm64_defconfig
+++ b/configs/rpi_arm64_defconfig
@@ -23,6 +23,7 @@  CONFIG_MISC_INIT_R=y
 CONFIG_SYS_PROMPT="U-Boot> "
 CONFIG_CMD_NVEDIT_EFI=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
@@ -38,6 +39,8 @@  CONFIG_DFU_MMC=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
 CONFIG_SYS_DFU_MAX_FILE_SIZE=0x200000
 CONFIG_BCM2835_GPIO=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_BCM2835=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_BCM2835=y