boards: arm64: Configure phyCORE-AM62x A53 UART0 using pinctrl

This demonstates how to use the TI K3 pincrtl driver.
Previously UART0 only worked becuase U-Boot leaves it configured

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
Grant Ramsay 2023-02-28 13:10:38 +13:00 committed by Carles Cufí
parent 9df37fff79
commit 37ca1034dd
2 changed files with 13 additions and 0 deletions

View file

@ -36,6 +36,8 @@ features:
+-----------+------------+-------------------------------------+
| ARM TIMER | on-chip | system clock |
+-----------+------------+-------------------------------------+
| PINCTRL | on-chip | pinctrl |
+-----------+------------+-------------------------------------+
| UART | on-chip | serial port |
+-----------+------------+-------------------------------------+

View file

@ -39,7 +39,18 @@
};
};
&pinctrl {
uart0_rx_default: uart0_rx_default {
pinmux = <K3_PINMUX(0x1c8, PIN_INPUT, MUX_MODE_0)>;
};
uart0_tx_default: uart0_tx_default {
pinmux = <K3_PINMUX(0x1cc, PIN_OUTPUT, MUX_MODE_0)>;
};
};
&uart0 {
current-speed = <115200>;
pinctrl-0 = <&uart0_rx_default &uart0_tx_default>;
pinctrl-names = "default";
status = "okay";
};