1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) Sunplus Co., Ltd. 2021 2 # Copyright (C) Sunplus Co., Ltd. 2021 3 %YAML 1.2 3 %YAML 1.2 4 --- 4 --- 5 $id: http://devicetree.org/schemas/serial/sunp !! 5 $id: "http://devicetree.org/schemas/serial/sunplus,sp7021-uart.yaml#" 6 $schema: http://devicetree.org/meta-schemas/co !! 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 7 8 title: Sunplus SoC SP7021 UART Controller 8 title: Sunplus SoC SP7021 UART Controller 9 9 10 maintainers: 10 maintainers: 11 - Hammer Hsieh <hammerh0314@gmail.com> 11 - Hammer Hsieh <hammerh0314@gmail.com> 12 12 13 allOf: 13 allOf: 14 - $ref: serial.yaml# 14 - $ref: serial.yaml# 15 15 16 properties: 16 properties: 17 compatible: 17 compatible: 18 const: sunplus,sp7021-uart 18 const: sunplus,sp7021-uart 19 19 20 reg: 20 reg: 21 maxItems: 1 21 maxItems: 1 22 22 23 interrupts: 23 interrupts: 24 maxItems: 1 24 maxItems: 1 25 25 26 clocks: 26 clocks: 27 maxItems: 1 27 maxItems: 1 28 28 29 resets: 29 resets: 30 maxItems: 1 30 maxItems: 1 31 31 32 required: 32 required: 33 - compatible 33 - compatible 34 - reg 34 - reg 35 - interrupts 35 - interrupts 36 - clocks 36 - clocks 37 - resets 37 - resets 38 38 39 additionalProperties: false 39 additionalProperties: false 40 40 41 examples: 41 examples: 42 - | 42 - | 43 #include <dt-bindings/interrupt-controller 43 #include <dt-bindings/interrupt-controller/irq.h> 44 aliases { 44 aliases { 45 serial0 = &uart0; 45 serial0 = &uart0; 46 }; 46 }; 47 47 48 uart0: serial@9c000900 { 48 uart0: serial@9c000900 { 49 compatible = "sunplus,sp7021-uart"; 49 compatible = "sunplus,sp7021-uart"; 50 reg = <0x9c000900 0x80>; 50 reg = <0x9c000900 0x80>; 51 interrupt-parent = <&intc>; 51 interrupt-parent = <&intc>; 52 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; 52 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; 53 clocks = <&clkc 0x28>; 53 clocks = <&clkc 0x28>; 54 resets = <&rstc 0x18>; 54 resets = <&rstc 0x18>; 55 }; 55 }; 56 ... 56 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.