Skip to content
Permalink
Browse files

boards: stm32mp157c_dk2i: add support of i2c5

I2C5 are used by arduino connector.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@linaro.org>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@linaro.org>
  • Loading branch information...
Christophe Priouzeau authored and galak committed Jul 2, 2019
1 parent 83fb969 commit 27d12f7d55ddc1a9d9c5720e515a501e532e50d2
@@ -24,4 +24,11 @@ config UART_7

endif # SERIAL

if I2C

config I2C_5
default y

endif # I2C

endif # BOARD_STM32MP157_Dk2
@@ -175,6 +175,8 @@ features:
+-----------+------------+-------------------------------------+
| PINMUX | on-chip | pinmux |
+-----------+------------+-------------------------------------+
| I2C | on-chip | i2c |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:
``boards/arm/stm32mp157c_dk2/stm32mp157c_dk2_defconfig``
@@ -192,6 +194,7 @@ Default Zephyr Peripheral Mapping:

- USART_3 TX/RX : PB10/PB12 (UART console)
- UART_7 TX/RX : PE8/PE7 (Arduino Serial)
- I2C5 SCL/SDA : PA11/PA12 (Arduino I2C)

System Clock
------------
@@ -22,7 +22,10 @@ static const struct pin_config pinconf[] = {
{ STM32_PIN_PE7, STM32MP1X_PINMUX_FUNC_PE7_UART7_RX },
{ STM32_PIN_PE8, STM32MP1X_PINMUX_FUNC_PE8_UART7_TX },
#endif /* CONFIG_UART_7 */

#ifdef CONFIG_I2C_5
{ STM32_PIN_PA11, STM32MP1X_PINMUX_FUNC_PA11_I2C5_SCL },
{ STM32_PIN_PA12, STM32MP1X_PINMUX_FUNC_PA12_I2C5_SDA },
#endif /* CONFIG_I2C_5 */
};

static int pinmux_stm32_init(struct device *port)
@@ -43,3 +43,8 @@
&mailbox {
status = "okay";
};

&i2c5 {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
};
@@ -9,6 +9,7 @@ toolchain:
supported:
- gpio
- shell
- i2c
testing:
ignore_tags:
- cmsis_rtos_v2

0 comments on commit 27d12f7

Please sign in to comment.
You can’t perform that action at this time.