dts: x86: qemu_x86: Add device support for uart ns16550
Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
parent
ddf6a69577
commit
58d54c0f2d
3 changed files with 38 additions and 26 deletions
|
@ -35,12 +35,8 @@ config UART_NS16550_PORT_0
|
||||||
|
|
||||||
if UART_NS16550_PORT_0
|
if UART_NS16550_PORT_0
|
||||||
|
|
||||||
config UART_NS16550_PORT_0_NAME
|
|
||||||
default "UART_0"
|
|
||||||
config UART_NS16550_PORT_0_IRQ_PRI
|
config UART_NS16550_PORT_0_IRQ_PRI
|
||||||
default 3
|
default 3
|
||||||
config UART_NS16550_PORT_0_BAUD_RATE
|
|
||||||
default 115200
|
|
||||||
config UART_NS16550_PORT_0_OPTIONS
|
config UART_NS16550_PORT_0_OPTIONS
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
|
@ -51,12 +47,8 @@ config UART_NS16550_PORT_1
|
||||||
|
|
||||||
if UART_NS16550_PORT_1
|
if UART_NS16550_PORT_1
|
||||||
|
|
||||||
config UART_NS16550_PORT_1_NAME
|
|
||||||
default "UART_1"
|
|
||||||
config UART_NS16550_PORT_1_IRQ_PRI
|
config UART_NS16550_PORT_1_IRQ_PRI
|
||||||
default 3
|
default 3
|
||||||
config UART_NS16550_PORT_1_BAUD_RATE
|
|
||||||
default 115200
|
|
||||||
config UART_NS16550_PORT_1_OPTIONS
|
config UART_NS16550_PORT_1_OPTIONS
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
|
@ -64,21 +56,4 @@ endif # UART_NS16550_PORT_1
|
||||||
|
|
||||||
endif # UART_NS16550
|
endif # UART_NS16550
|
||||||
|
|
||||||
if BT_UART
|
|
||||||
|
|
||||||
config BT_UART_ON_DEV_NAME
|
|
||||||
default "UART_1"
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
if UART_PIPE
|
|
||||||
|
|
||||||
config UART_PIPE_ON_DEV_NAME
|
|
||||||
default "UART_1"
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
config BT_MONITOR_ON_DEV_NAME
|
|
||||||
default "UART_1" if BT_DEBUG_MONITOR
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -63,7 +63,7 @@ menuconfig UART_NS16550_PORT_0
|
||||||
help
|
help
|
||||||
This tells the driver to configure the UART port at boot, depending on
|
This tells the driver to configure the UART port at boot, depending on
|
||||||
the additional configure options below.
|
the additional configure options below.
|
||||||
|
if !HAS_DTS
|
||||||
config UART_NS16550_PORT_0_NAME
|
config UART_NS16550_PORT_0_NAME
|
||||||
string "Port 0 Device Name"
|
string "Port 0 Device Name"
|
||||||
default "UART_0"
|
default "UART_0"
|
||||||
|
@ -71,6 +71,7 @@ config UART_NS16550_PORT_0_NAME
|
||||||
help
|
help
|
||||||
This is the device name for UART, and is included in the device
|
This is the device name for UART, and is included in the device
|
||||||
struct.
|
struct.
|
||||||
|
endif
|
||||||
|
|
||||||
config UART_NS16550_PORT_0_IRQ_PRI
|
config UART_NS16550_PORT_0_IRQ_PRI
|
||||||
int "Port 0 Interrupt Priority"
|
int "Port 0 Interrupt Priority"
|
||||||
|
@ -79,6 +80,7 @@ config UART_NS16550_PORT_0_IRQ_PRI
|
||||||
help
|
help
|
||||||
The interrupt priority for UART port.
|
The interrupt priority for UART port.
|
||||||
|
|
||||||
|
if !HAS_DTS
|
||||||
config UART_NS16550_PORT_0_BAUD_RATE
|
config UART_NS16550_PORT_0_BAUD_RATE
|
||||||
int "Port 0 Baud Rate"
|
int "Port 0 Baud Rate"
|
||||||
default 0
|
default 0
|
||||||
|
@ -87,6 +89,7 @@ config UART_NS16550_PORT_0_BAUD_RATE
|
||||||
The baud rate for UART port to be set to at boot.
|
The baud rate for UART port to be set to at boot.
|
||||||
|
|
||||||
Leave at 0 to skip initialization.
|
Leave at 0 to skip initialization.
|
||||||
|
endif
|
||||||
|
|
||||||
config UART_NS16550_PORT_0_OPTIONS
|
config UART_NS16550_PORT_0_OPTIONS
|
||||||
int "Port 0 Options"
|
int "Port 0 Options"
|
||||||
|
@ -119,6 +122,7 @@ menuconfig UART_NS16550_PORT_1
|
||||||
This tells the driver to configure the UART port at boot, depending on
|
This tells the driver to configure the UART port at boot, depending on
|
||||||
the additional configure options below.
|
the additional configure options below.
|
||||||
|
|
||||||
|
if !HAS_DTS
|
||||||
config UART_NS16550_PORT_1_NAME
|
config UART_NS16550_PORT_1_NAME
|
||||||
string "Port 1 Device Name"
|
string "Port 1 Device Name"
|
||||||
default "UART_1"
|
default "UART_1"
|
||||||
|
@ -126,6 +130,7 @@ config UART_NS16550_PORT_1_NAME
|
||||||
help
|
help
|
||||||
This is the device name for UART, and is included in the device
|
This is the device name for UART, and is included in the device
|
||||||
struct.
|
struct.
|
||||||
|
endif
|
||||||
|
|
||||||
config UART_NS16550_PORT_1_IRQ_PRI
|
config UART_NS16550_PORT_1_IRQ_PRI
|
||||||
int "Port 1 Interrupt Priority"
|
int "Port 1 Interrupt Priority"
|
||||||
|
@ -134,6 +139,7 @@ config UART_NS16550_PORT_1_IRQ_PRI
|
||||||
help
|
help
|
||||||
The interrupt priority for UART port.
|
The interrupt priority for UART port.
|
||||||
|
|
||||||
|
if !HAS_DTS
|
||||||
config UART_NS16550_PORT_1_BAUD_RATE
|
config UART_NS16550_PORT_1_BAUD_RATE
|
||||||
int "Port 1 Baud Rate"
|
int "Port 1 Baud Rate"
|
||||||
default 0
|
default 0
|
||||||
|
@ -142,6 +148,7 @@ config UART_NS16550_PORT_1_BAUD_RATE
|
||||||
The baud rate for UART port to be set to at boot.
|
The baud rate for UART port to be set to at boot.
|
||||||
|
|
||||||
Leave at 0 to skip initialization.
|
Leave at 0 to skip initialization.
|
||||||
|
endif
|
||||||
|
|
||||||
config UART_NS16550_PORT_1_OPTIONS
|
config UART_NS16550_PORT_1_OPTIONS
|
||||||
int "Port 1 Options"
|
int "Port 1 Options"
|
||||||
|
|
30
dts/common/yaml/ns16550.yaml
Normal file
30
dts/common/yaml/ns16550.yaml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
---
|
||||||
|
title: ns16550
|
||||||
|
id: ns16550-uart
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding gives a base representation of the ns16550 UART
|
||||||
|
|
||||||
|
inherits:
|
||||||
|
- !include uart.yaml
|
||||||
|
|
||||||
|
properties:
|
||||||
|
- compatible:
|
||||||
|
type: string
|
||||||
|
category: required
|
||||||
|
description: compatible strings
|
||||||
|
constraint: "ns16550-uart"
|
||||||
|
|
||||||
|
- reg:
|
||||||
|
type: array
|
||||||
|
description: mmio register space
|
||||||
|
generation: define
|
||||||
|
category: required
|
||||||
|
|
||||||
|
- interrupts:
|
||||||
|
type: array
|
||||||
|
category: required
|
||||||
|
description: required interrupts
|
||||||
|
generation: define
|
||||||
|
...
|
Loading…
Add table
Add a link
Reference in a new issue