drivers: uart_altera_jtag_hal: use DEVICE_DT_INST_DEFINE()

The conversion to devicetree seems to be half lost
for this driver. There are already bindings and nodes for
compatible "altr,jtag-uart", update driver to use it.
Remove last mention of CONFIG_UART_CONSOLE_ON_DEV_NAME.

Resolves #37207

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2021-08-07 10:54:03 +02:00 committed by Christopher Friedt
commit 92a00ee39b
4 changed files with 16 additions and 11 deletions

View file

@ -122,13 +122,15 @@ minicom with flow control disabled, 115200-8N1 settings.
JTAG UART
---------
You can also have it send its console output to the JTAG UART. Set these in your
project configuration:
You can also have it send its console output to the JTAG UART.
Enable ``jtag_uart`` node in :file:`altera_max10.dts` or overlay file:
.. code-block:: console
.. code-block:: devicetree
CONFIG_UART_ALTERA_JTAG=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="jtag_uart0"
&jtag_uart {
status = "okay";
current-speed = <115200>;
};
To view these messages on your local workstation, run the terminal application
in the SDK:

View file

@ -6,7 +6,6 @@ CONFIG_HAS_ALTERA_HAL=y
CONFIG_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_SERIAL=y
CONFIG_UART_ALTERA_JTAG=y
CONFIG_UART_NS16550=y
CONFIG_UART_CONSOLE=y
CONFIG_INCLUDE_RESET_VECTOR=n