set pin 4/5 default function to UART4

This commit is contained in:
carbon
2023-09-05 09:49:03 +08:00
parent e4d322ac4c
commit f1561fa656
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,10 @@
};
};
&uart4 {
status = "okay";
};
/ {
};

View File

@ -20,6 +20,10 @@ int cvi_board_init(void)
PINMUX_CONFIG(SD1_D2, PWM_5);
PINMUX_CONFIG(SD1_D1, PWM_6);
// UART 4
PINMUX_CONFIG(SD1_GPIO1, UART4_TX);
PINMUX_CONFIG(SD1_GPIO0, UART4_RX);
// SPI
PINMUX_CONFIG(SD1_CLK, SPI2_SCK);
PINMUX_CONFIG(SD1_CMD, SPI2_SDO);