xref: /freebsd/sys/contrib/device-tree/Bindings/serial/fsl-lpuart.yaml (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/serial/fsl-lpuart.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale low power universal asynchronous receiver/transmitter (lpuart)
8
9maintainers:
10  - Fugang Duan <fugang.duan@nxp.com>
11
12allOf:
13  - $ref: rs485.yaml#
14  - $ref: serial.yaml#
15
16properties:
17  compatible:
18    oneOf:
19      - enum:
20          - fsl,vf610-lpuart
21          - fsl,ls1021a-lpuart
22          - fsl,ls1028a-lpuart
23          - fsl,imx7ulp-lpuart
24          - fsl,imx8qxp-lpuart
25          - fsl,imxrt1050-lpuart
26      - items:
27          - enum:
28              - fsl,imx8ulp-lpuart
29          - const: fsl,imx7ulp-lpuart
30      - items:
31          - enum:
32              - fsl,imx93-lpuart
33          - const: fsl,imx8ulp-lpuart
34          - const: fsl,imx7ulp-lpuart
35      - items:
36          - enum:
37              - fsl,imx8qm-lpuart
38              - fsl,imx8dxl-lpuart
39          - const: fsl,imx8qxp-lpuart
40      - items:
41          - const: fsl,imxrt1050-lpuart
42          - const: fsl,imxrt1170-lpuart
43
44  reg:
45    maxItems: 1
46
47  interrupts:
48    maxItems: 1
49
50  clocks:
51    items:
52      - description: ipg clock
53      - description: baud clock
54    minItems: 1
55
56  clock-names:
57    items:
58      - const: ipg
59      - const: baud
60    minItems: 1
61
62  dmas:
63    items:
64      - description: DMA controller phandle and request line for RX
65      - description: DMA controller phandle and request line for TX
66
67  dma-names:
68    items:
69      - const: rx
70      - const: tx
71
72  power-domains:
73    maxItems: 1
74
75required:
76  - compatible
77  - reg
78  - interrupts
79  - clocks
80  - clock-names
81
82unevaluatedProperties: false
83
84examples:
85  - |
86    #include <dt-bindings/clock/vf610-clock.h>
87
88    serial@40027000 {
89        compatible = "fsl,vf610-lpuart";
90        reg = <0x40027000 0x1000>;
91        interrupts = <0 61 0x00>;
92        clocks = <&clks VF610_CLK_UART0>;
93        clock-names = "ipg";
94        dmas = <&edma0 0 2>, <&edma0 0 3>;
95        dma-names = "rx","tx";
96    };
97