Fix MPPT 2420 HPX pinmux and dts for I2C support

This commit is contained in:
Martin Jäger
2020-02-26 18:22:16 +01:00
parent 2154a1cb72
commit 8307314000
2 changed files with 7 additions and 16 deletions
+2 -7
View File
@@ -78,7 +78,7 @@
aliases {
uart-dbg = &usart1;
uext-uart = &usart2;
uext-uart = &usart3;
spi-uext = &spi1;
i2c-uext = &i2c1;
pwm-cp = &charge_pump;
@@ -90,12 +90,7 @@
status = "okay";
};
&usart2 {
current-speed = <115200>;
status = "okay";
};
&lpuart1 {
&usart3 {
current-speed = <115200>;
status = "okay";
};
+5 -9
View File
@@ -20,17 +20,13 @@ static const struct pin_config pinconf[] = {
{STM32_PIN_PA9, STM32G4X_PINMUX_FUNC_PA9_USART1_TX},
{STM32_PIN_PA10, STM32G4X_PINMUX_FUNC_PA10_USART1_RX},
#endif /* CONFIG_UART_1 */
#ifdef CONFIG_LPUART_1
{STM32_PIN_PA2, STM32G4X_PINMUX_FUNC_PA2_LPUART1_TX},
{STM32_PIN_PA3, STM32G4X_PINMUX_FUNC_PA3_LPUART1_RX},
#endif /* CONFIG_LPUART_1 */
#ifdef CONFIG_UART_2
{STM32_PIN_PA2, STM32G4X_PINMUX_FUNC_PA2_USART2_TX},
{STM32_PIN_PA15, STM32G4X_PINMUX_FUNC_PA15_USART2_RX},
#ifdef CONFIG_UART_3
{STM32_PIN_PC10, STM32G4X_PINMUX_FUNC_PC10_USART3_TX},
{STM32_PIN_PC11, STM32G4X_PINMUX_FUNC_PC11_USART3_RX},
#endif /* CONFIG_UART_2 */
#ifdef CONFIG_I2C_1
{STM32_PIN_PB8, STM32G4X_PINMUX_FUNC_PB8_I2C1_SCL},
{STM32_PIN_PB9, STM32G4X_PINMUX_FUNC_PB9_I2C1_SDA},
{STM32_PIN_PA15, STM32G4X_PINMUX_FUNC_PA15_I2C1_SCL},
{STM32_PIN_PB7, STM32G4X_PINMUX_FUNC_PB7_I2C1_SDA},
#endif /* CONFIG_I2C_1 */
#ifdef CONFIG_PWM_STM32_2
{STM32_PIN_PA5, STM32G4X_PINMUX_FUNC_PA5_PWM2_CH1},