0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: "http://devicetree.org/schemas/serial/renesas,em-uart.yaml#"
0005 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0006
0007 title: Renesas EMMA Mobile UART Interface
0008
0009 maintainers:
0010 - Magnus Damm <magnus.damm@gmail.com>
0011
0012 properties:
0013 compatible:
0014 oneOf:
0015 - items:
0016 - enum:
0017 - renesas,r9a09g011-uart # RZ/V2M
0018 - const: renesas,em-uart # generic EMMA Mobile compatible UART
0019
0020 - items:
0021 - const: renesas,em-uart # generic EMMA Mobile compatible UART
0022
0023 reg:
0024 maxItems: 1
0025
0026 interrupts:
0027 maxItems: 1
0028
0029 clocks:
0030 minItems: 1
0031 items:
0032 - description: UART functional clock
0033 - description: Internal clock to access the registers
0034
0035 clock-names:
0036 minItems: 1
0037 items:
0038 - const: sclk
0039 - const: pclk
0040
0041 allOf:
0042 - $ref: serial.yaml#
0043
0044 - if:
0045 properties:
0046 compatible:
0047 contains:
0048 const: renesas,r9a09g011-uart
0049 then:
0050 properties:
0051 clocks:
0052 minItems: 2
0053 clock-names:
0054 minItems: 2
0055
0056 required:
0057 - compatible
0058 - reg
0059 - interrupts
0060 - clocks
0061 - clock-names
0062
0063 unevaluatedProperties: false
0064
0065 examples:
0066 - |
0067 #include <dt-bindings/interrupt-controller/arm-gic.h>
0068 uart0: serial@e1020000 {
0069 compatible = "renesas,em-uart";
0070 reg = <0xe1020000 0x38>;
0071 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
0072 clocks = <&usia_u0_sclk>;
0073 clock-names = "sclk";
0074 };