Fix MPPT 2420 HPX pinmux and dts for I2C support
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user