forked from neagix/wii-linux-ngx
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: serial: qcom,msm-uart: Convert to DT schema
Convert the Qualcomm MSM SoC UART (non-DMA) bindings to DT schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information
Showing
2 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
Documentation/devicetree/bindings/serial/qcom,msm-uart.txt
This file was deleted.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
Documentation/devicetree/bindings/serial/qcom,msm-uart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/serial/qcom,msm-uart.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Qualcomm MSM SoC Serial UART | ||
|
||
maintainers: | ||
- Bjorn Andersson <[email protected]> | ||
- Krzysztof Kozlowski <[email protected]> | ||
|
||
description: | ||
The MSM serial UART hardware is designed for low-speed use cases where a | ||
dma-engine isn't needed. From a software perspective it's mostly compatible | ||
with the MSM serial UARTDM except that it only supports reading and writing | ||
one character at a time. | ||
|
||
properties: | ||
compatible: | ||
const: qcom,msm-uart | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
clock-names: | ||
items: | ||
- const: core | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- clock-names | ||
- clocks | ||
- interrupts | ||
- reg | ||
|
||
unevaluatedProperties: false | ||
|
||
allOf: | ||
- $ref: /schemas/serial/serial.yaml# | ||
|
||
examples: | ||
- | | ||
serial@a9c00000 { | ||
compatible = "qcom,msm-uart"; | ||
reg = <0xa9c00000 0x1000>; | ||
interrupts = <11>; | ||
clocks = <&uart_cxc>; | ||
clock-names = "core"; | ||
}; |