xref: /freebsd/sys/contrib/device-tree/Bindings/serial/qcom,sa8255p-geni-uart.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/serial/qcom,sa8255p-geni-uart.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: Qualcomm Geni based QUP UART interface
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Praveen Talari <quic_ptalari@quicinc.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel VadotallOf:
13*833e5d42SEmmanuel Vadot  - $ref: /schemas/serial/serial.yaml#
14*833e5d42SEmmanuel Vadot
15*833e5d42SEmmanuel Vadotproperties:
16*833e5d42SEmmanuel Vadot  compatible:
17*833e5d42SEmmanuel Vadot    enum:
18*833e5d42SEmmanuel Vadot      - qcom,sa8255p-geni-uart
19*833e5d42SEmmanuel Vadot      - qcom,sa8255p-geni-debug-uart
20*833e5d42SEmmanuel Vadot
21*833e5d42SEmmanuel Vadot  reg:
22*833e5d42SEmmanuel Vadot    maxItems: 1
23*833e5d42SEmmanuel Vadot
24*833e5d42SEmmanuel Vadot  interrupts:
25*833e5d42SEmmanuel Vadot    minItems: 1
26*833e5d42SEmmanuel Vadot    items:
27*833e5d42SEmmanuel Vadot      - description: UART core irq
28*833e5d42SEmmanuel Vadot      - description: Wakeup irq (RX GPIO)
29*833e5d42SEmmanuel Vadot
30*833e5d42SEmmanuel Vadot  interrupt-names:
31*833e5d42SEmmanuel Vadot    description:
32*833e5d42SEmmanuel Vadot      The UART interrupt and optionally the RX in-band wakeup interrupt
33*833e5d42SEmmanuel Vadot      as not all UART instances have a wakeup-capable interrupt routed
34*833e5d42SEmmanuel Vadot      via the PDC.
35*833e5d42SEmmanuel Vadot    minItems: 1
36*833e5d42SEmmanuel Vadot    items:
37*833e5d42SEmmanuel Vadot      - const: uart
38*833e5d42SEmmanuel Vadot      - const: wakeup
39*833e5d42SEmmanuel Vadot
40*833e5d42SEmmanuel Vadot  power-domains:
41*833e5d42SEmmanuel Vadot    minItems: 2
42*833e5d42SEmmanuel Vadot    maxItems: 2
43*833e5d42SEmmanuel Vadot
44*833e5d42SEmmanuel Vadot  power-domain-names:
45*833e5d42SEmmanuel Vadot    items:
46*833e5d42SEmmanuel Vadot      - const: power
47*833e5d42SEmmanuel Vadot      - const: perf
48*833e5d42SEmmanuel Vadot
49*833e5d42SEmmanuel Vadotrequired:
50*833e5d42SEmmanuel Vadot  - compatible
51*833e5d42SEmmanuel Vadot  - reg
52*833e5d42SEmmanuel Vadot  - interrupts
53*833e5d42SEmmanuel Vadot  - power-domains
54*833e5d42SEmmanuel Vadot  - power-domain-names
55*833e5d42SEmmanuel Vadot
56*833e5d42SEmmanuel VadotunevaluatedProperties: false
57*833e5d42SEmmanuel Vadot
58*833e5d42SEmmanuel Vadotexamples:
59*833e5d42SEmmanuel Vadot  - |
60*833e5d42SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
61*833e5d42SEmmanuel Vadot
62*833e5d42SEmmanuel Vadot    serial@990000 {
63*833e5d42SEmmanuel Vadot        compatible = "qcom,sa8255p-geni-uart";
64*833e5d42SEmmanuel Vadot        reg = <0x990000 0x4000>;
65*833e5d42SEmmanuel Vadot        interrupts = <GIC_SPI 531 IRQ_TYPE_LEVEL_HIGH>;
66*833e5d42SEmmanuel Vadot        power-domains = <&scmi0_pd 0>, <&scmi0_dvfs 0>;
67*833e5d42SEmmanuel Vadot        power-domain-names = "power", "perf";
68*833e5d42SEmmanuel Vadot    };
69*833e5d42SEmmanuel Vadot...
70