This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 14b02bd6dcc3c2c9a2952f65463bb36b5aa85a7e
Author: Matteo Golin <[email protected]>
AuthorDate: Sat Jun 20 13:11:50 2026 -0400

    raspberrypi-4b/i2c: Added I2C configuration
    
    Includes a new I2C configuration (and documentation for it) to use the
    I2C1 bus on the Raspberry Pi 4B.
    
    Signed-off-by: Matteo Golin <[email protected]>
---
 .../arm64/bcm2711/boards/raspberrypi-4b/index.rst  |  9 ++++
 .../bcm2711/raspberrypi-4b/configs/i2c1/defconfig  | 59 ++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git 
a/Documentation/platforms/arm64/bcm2711/boards/raspberrypi-4b/index.rst 
b/Documentation/platforms/arm64/bcm2711/boards/raspberrypi-4b/index.rst
index 06594075912..8c8c2d3178b 100644
--- a/Documentation/platforms/arm64/bcm2711/boards/raspberrypi-4b/index.rst
+++ b/Documentation/platforms/arm64/bcm2711/boards/raspberrypi-4b/index.rst
@@ -221,6 +221,15 @@ This configuration boots directly into the :doc:`coremark
 </applications/benchmarks/coremark/index>` benchmark and displays the results 
of
 the test over the serial console.
 
+i2c1
+----
+
+This configuration enables the I2C1 bus on GPIO 2 and 3 (the standard I2C bus
+for the Raspberry Pi 4B). It includes the :doc:`i2ctool
+</applications/system/i2c/index>` application for playing with the bus. Note
+that you will want to pass the `-b 1` flag to the tool the first time you use
+it, as the default bus is 0.
+
 ostest
 ------
 
diff --git a/boards/arm64/bcm2711/raspberrypi-4b/configs/i2c1/defconfig 
b/boards/arm64/bcm2711/raspberrypi-4b/configs/i2c1/defconfig
new file mode 100644
index 00000000000..a60387663b2
--- /dev/null
+++ b/boards/arm64/bcm2711/raspberrypi-4b/configs/i2c1/defconfig
@@ -0,0 +1,59 @@
+#
+# This file is autogenerated: PLEASE DO NOT EDIT IT.
+#
+# You can use "make menuconfig" to make any modifications to the installed 
.config file.
+# You can then do "make savedefconfig" to generate a new defconfig file that 
includes your
+# modifications.
+#
+# CONFIG_NDEBUG is not set
+CONFIG_ARCH="arm64"
+CONFIG_ARCH_ARM64=y
+CONFIG_ARCH_BOARD="raspberrypi-4b"
+CONFIG_ARCH_BOARD_RASPBERRYPI_4B=y
+CONFIG_ARCH_CHIP="bcm2711"
+CONFIG_ARCH_CHIP_BCM2711=y
+CONFIG_ARCH_EARLY_PRINT=y
+CONFIG_ARCH_INTERRUPTSTACK=4096
+CONFIG_ARCH_IRQPRIO=y
+CONFIG_BCM2711_I2C1=y
+CONFIG_BCM2711_I2C=y
+CONFIG_BCM2711_I2C_DRIVER=y
+CONFIG_BOARD_LOOPSPERMSEC=132954
+CONFIG_BUILTIN=y
+CONFIG_DEBUG_FULLOPT=y
+CONFIG_DEBUG_SYMBOLS=y
+CONFIG_DEFAULT_TASK_STACKSIZE=8192
+CONFIG_EXAMPLES_HELLO=y
+CONFIG_EXPERIMENTAL=y
+CONFIG_FS_PROCFS=y
+CONFIG_FS_ROMFS=y
+CONFIG_HAVE_CXX=y
+CONFIG_HAVE_CXXINITIALIZE=y
+CONFIG_IDLETHREAD_STACKSIZE=8192
+CONFIG_INIT_ENTRYPOINT="nsh_main"
+CONFIG_INTELHEX_BINARY=y
+CONFIG_NSH_BUILTIN_APPS=y
+CONFIG_NSH_FILEIOSIZE=512
+CONFIG_NSH_READLINE=y
+CONFIG_PREALLOC_TIMERS=4
+CONFIG_PTHREAD_STACK_MIN=8192
+CONFIG_RAMLOG=y
+CONFIG_RAM_SIZE=4227858432
+CONFIG_RAM_START=0x00000000
+CONFIG_RAW_BINARY=y
+CONFIG_READLINE_CMD_HISTORY=y
+CONFIG_RR_INTERVAL=200
+CONFIG_SCHED_HPWORK=y
+CONFIG_SCHED_HPWORKPRIORITY=192
+CONFIG_SPINLOCK=y
+CONFIG_STACK_COLORATION=y
+CONFIG_START_MONTH=11
+CONFIG_START_YEAR=2022
+CONFIG_SYMTAB_ORDEREDBYNAME=y
+CONFIG_SYSTEM_I2CTOOL=y
+CONFIG_SYSTEM_NSH=y
+CONFIG_SYSTEM_SYSTEM=y
+CONFIG_TESTING_GETPRIME=y
+CONFIG_TESTING_OSTEST=y
+CONFIG_USEC_PER_TICK=1000
+CONFIG_USERLED=y

Reply via email to