1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/serial/rene !! 4 $id: "http://devicetree.org/schemas/serial/renesas,em-uart.yaml#" 5 $schema: http://devicetree.org/meta-schemas/co !! 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 6 6 7 title: Renesas EMMA Mobile UART Interface 7 title: Renesas EMMA Mobile UART Interface 8 8 9 maintainers: 9 maintainers: 10 - Magnus Damm <magnus.damm@gmail.com> 10 - Magnus Damm <magnus.damm@gmail.com> 11 11 >> 12 allOf: >> 13 - $ref: serial.yaml# >> 14 12 properties: 15 properties: 13 compatible: 16 compatible: 14 oneOf: !! 17 const: renesas,em-uart 15 - items: << 16 - enum: << 17 - renesas,r9a09g011-uart # RZ << 18 - const: renesas,em-uart # ge << 19 << 20 - items: << 21 - const: renesas,em-uart # ge << 22 18 23 reg: 19 reg: 24 maxItems: 1 20 maxItems: 1 25 21 26 interrupts: 22 interrupts: 27 maxItems: 1 23 maxItems: 1 28 24 29 clocks: 25 clocks: 30 minItems: 1 !! 26 maxItems: 1 31 items: << 32 - description: UART functional clock << 33 - description: Internal clock to access << 34 27 35 clock-names: 28 clock-names: 36 minItems: 1 !! 29 const: sclk 37 items: << 38 - const: sclk << 39 - const: pclk << 40 30 41 required: 31 required: 42 - compatible 32 - compatible 43 - reg 33 - reg 44 - interrupts 34 - interrupts 45 - clocks 35 - clocks 46 - clock-names 36 - clock-names 47 37 48 allOf: !! 38 additionalProperties: false 49 - $ref: serial.yaml# << 50 << 51 - if: << 52 properties: << 53 compatible: << 54 contains: << 55 const: renesas,r9a09g011-uart << 56 then: << 57 properties: << 58 clocks: << 59 minItems: 2 << 60 clock-names: << 61 minItems: 2 << 62 << 63 unevaluatedProperties: false << 64 39 65 examples: 40 examples: 66 - | 41 - | 67 #include <dt-bindings/interrupt-controller 42 #include <dt-bindings/interrupt-controller/arm-gic.h> 68 uart0: serial@e1020000 { 43 uart0: serial@e1020000 { 69 compatible = "renesas,em-uart"; !! 44 compatible = "renesas,em-uart"; 70 reg = <0xe1020000 0x38>; !! 45 reg = <0xe1020000 0x38>; 71 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL !! 46 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 72 clocks = <&usia_u0_sclk>; !! 47 clocks = <&usia_u0_sclk>; 73 clock-names = "sclk"; !! 48 clock-names = "sclk"; 74 }; 49 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.