Skip to content

Commit 719910e

Browse files
pratikfarkase94gregkh
authored andcommitted
dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema
Convert the Broadcom BCM2835 Auxiliary UART to newer DT schema. Created DT schema based on the .txt file which had `compatible`, `reg` `clocks` and `interrupts` as the required properties. This binding is used by Broadcom BCM2835 SOC used in some Raspberry PI boards. Changes from original file: Implemented complete example which the original txt binding lacked. Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Pratik Farkase <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e3896be commit 719910e

File tree

2 files changed

+46
-18
lines changed

2 files changed

+46
-18
lines changed

Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/serial/brcm,bcm2835-aux-uart.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: BCM2835 AUXILIARY UART
8+
9+
maintainers:
10+
- Pratik Farkase <[email protected]>
11+
- Florian Fainelli <[email protected]>
12+
- Stefan Wahren <[email protected]>
13+
14+
allOf:
15+
- $ref: serial.yaml
16+
17+
properties:
18+
compatible:
19+
const: brcm,bcm2835-aux-uart
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
required:
31+
- compatible
32+
- reg
33+
- interrupts
34+
- clocks
35+
36+
unevaluatedProperties: false
37+
38+
examples:
39+
- |
40+
#include <dt-bindings/clock/bcm2835-aux.h>
41+
serial@7e215040 {
42+
compatible = "brcm,bcm2835-aux-uart";
43+
reg = <0x7e215040 0x40>;
44+
interrupts = <1 29>;
45+
clocks = <&aux BCM2835_AUX_CLOCK_UART>;
46+
};

0 commit comments

Comments
 (0)