Skip to content

Commit 27a2f88

Browse files
eren-terziogluxiaoxiang781216
authored andcommitted
Documentation/risc-v: Add LP_I2C docs for esp32[-c6]
Add LP_I2C docs for esp32c6 Signed-off-by: Eren Terzioglu <[email protected]>
1 parent af8e43e commit 27a2f88

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ You can scan for all I2C devices using the following command::
265265

266266
nsh> i2c dev 0x00 0x7f
267267

268+
To use LP_I2C, you can enable `ESPRESSIF_LP_I2C0` option. When this option is enabled,
269+
LP_I2C operates on GPIO7 as SCL and GPIO6 as SDA. These pins are fixed and cannot be changed.
270+
Also enabling LP_I2C will change the default pins of I2C0 due to LP_I2C pin limitation.
271+
The default I2C0 pins will be remapped to GPIO23 for SCL and GPIO5 for SDA.
272+
268273
To use slave mode, you can enable `ESPRESSIF_I2C0_SLAVE_MODE` option.
269274
To use slave mode driver following snippet demonstrates how write to i2c bus
270275
using slave driver:

Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitm/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ You can scan for all I2C devices using the following command::
210210

211211
nsh> i2c dev 0x00 0x7f
212212

213+
To use LP_I2C, you can enable `ESPRESSIF_LP_I2C0` option. When this option is enabled,
214+
LP_I2C operates on GPIO7 as SCL and GPIO6 as SDA. These pins are fixed and cannot be changed.
215+
Also enabling LP_I2C will change the default pins of I2C0 due to LP_I2C pin limitation.
216+
The default I2C0 pins will be remapped to GPIO23 for SCL and GPIO5 for SDA.
217+
213218
To use slave mode, you can enable `ESPRESSIF_I2C0_SLAVE_MODE` option.
214219
To use slave mode driver following snippet demonstrates how write to i2c bus
215220
using slave driver:

Documentation/platforms/risc-v/esp32c6/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ ECC No
346346
eFuse Yes
347347
GPIO Yes Dedicated GPIO supported
348348
HMAC No
349-
I2C Yes Master and Slave mode supported
349+
I2C Yes Master and Slave mode also LPI2C supported
350350
I2S Yes
351351
LED/PWM Yes
352352
MCPWM Yes

0 commit comments

Comments
 (0)