drivers: serial: Add device support for serial driver

patch enables qmsi serial driver to pick baudrate and name
from device tree instead of Kconfig for UART0 and UART1
instance

Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
Savinay Dharmappa 2017-06-22 23:09:53 +05:30 committed by Kumar Gala
commit 0ea423d976
2 changed files with 46 additions and 0 deletions

View file

@ -14,6 +14,7 @@ config UART_QMSI_0
bool "Enable UART 0 controller"
default n
if !HAS_DTS
config UART_QMSI_0_NAME
depends on UART_QMSI_0
string "UART_0 device name"
@ -28,6 +29,7 @@ config UART_QMSI_0_BAUDRATE
default 115200
help
This option sets the baud rate from the UART_0 device.
endif
config UART_QMSI_0_HW_FC
depends on UART_QMSI_0
@ -42,6 +44,7 @@ config UART_QMSI_1
bool "Enable UART 1 controller"
default n
if !HAS_DTS
config UART_QMSI_1_NAME
depends on UART_QMSI_1
string "UART_1 device name"
@ -56,6 +59,7 @@ config UART_QMSI_1_BAUDRATE
default 115200
help
This option sets the baud rate from the UART_1 device.
endif
config UART_QMSI_1_HW_FC
depends on UART_QMSI_1

View file

@ -0,0 +1,42 @@
---
title: Intel QMSI Uart
id: intel,qmsi-uart
version: 0.1
description: >
This binding gives a base representation of the INTEL QMSI UART
inherits:
- !include uart.yaml
properties:
- compatible:
type: string
category: required
description: compatible strings
constraint: "intel,qmsi-uart"
- reg:
type: array
description: mmio register space
generation: define
category: required
- interrupts:
type: array
category: required
description: required interrupts
generation: define
- pinctrl-\d+:
type: array
category: optional
description: pinmux information for RX, TX, CTS, RTS
generation: define
- clocks:
type: array
category: required
description: Clock gate control information
generation: structures
...