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:
parent
9df37fff79
commit
37ca1034dd
|
@ -36,6 +36,8 @@ features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| ARM TIMER | on-chip | system clock |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| PINCTRL | on-chip | pinctrl |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | serial port |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue