1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/timer/media 4 $id: http://devicetree.org/schemas/timer/mediatek,timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: MediaTek SoC timers 7 title: MediaTek SoC timers 8 8 9 maintainers: 9 maintainers: 10 - Matthias Brugger <matthias.bgg@gmail.com> 10 - Matthias Brugger <matthias.bgg@gmail.com> 11 11 12 description: 12 description: 13 MediaTek SoCs have different timers on diffe 13 MediaTek SoCs have different timers on different platforms, 14 CPUX (ARM/ARM64 System Timer), GPT (General 14 CPUX (ARM/ARM64 System Timer), GPT (General Purpose Timer) 15 and SYST (System Timer). 15 and SYST (System Timer). 16 16 17 properties: 17 properties: 18 compatible: 18 compatible: 19 oneOf: 19 oneOf: 20 - items: 20 - items: 21 - enum: 21 - enum: 22 - mediatek,mt6577-timer 22 - mediatek,mt6577-timer 23 - mediatek,mt6765-timer 23 - mediatek,mt6765-timer 24 - mediatek,mt6795-systimer 24 - mediatek,mt6795-systimer 25 # GPT Timers 25 # GPT Timers 26 - items: 26 - items: 27 - enum: 27 - enum: 28 - mediatek,mt2701-timer 28 - mediatek,mt2701-timer 29 - mediatek,mt6580-timer 29 - mediatek,mt6580-timer 30 - mediatek,mt6582-timer 30 - mediatek,mt6582-timer 31 - mediatek,mt6589-timer 31 - mediatek,mt6589-timer 32 - mediatek,mt7623-timer 32 - mediatek,mt7623-timer 33 - mediatek,mt8127-timer 33 - mediatek,mt8127-timer 34 - mediatek,mt8135-timer 34 - mediatek,mt8135-timer 35 - mediatek,mt8173-timer 35 - mediatek,mt8173-timer 36 - mediatek,mt8516-timer 36 - mediatek,mt8516-timer 37 - const: mediatek,mt6577-timer 37 - const: mediatek,mt6577-timer 38 # SYST Timers 38 # SYST Timers 39 - items: 39 - items: 40 - enum: 40 - enum: 41 - mediatek,mt7629-timer 41 - mediatek,mt7629-timer 42 - mediatek,mt8183-timer 42 - mediatek,mt8183-timer 43 - mediatek,mt8186-timer 43 - mediatek,mt8186-timer 44 - mediatek,mt8188-timer 44 - mediatek,mt8188-timer 45 - mediatek,mt8192-timer 45 - mediatek,mt8192-timer 46 - mediatek,mt8195-timer 46 - mediatek,mt8195-timer 47 - mediatek,mt8365-systimer 47 - mediatek,mt8365-systimer 48 - const: mediatek,mt6765-timer 48 - const: mediatek,mt6765-timer 49 49 50 reg: 50 reg: 51 maxItems: 1 51 maxItems: 1 52 52 53 interrupts: 53 interrupts: 54 maxItems: 1 54 maxItems: 1 55 55 56 clocks: 56 clocks: 57 minItems: 1 57 minItems: 1 58 items: 58 items: 59 - description: Timer clock 59 - description: Timer clock 60 - description: RTC or bus clock 60 - description: RTC or bus clock 61 61 62 clock-names: 62 clock-names: 63 minItems: 1 63 minItems: 1 64 maxItems: 2 64 maxItems: 2 65 65 66 required: 66 required: 67 - compatible 67 - compatible 68 - reg 68 - reg 69 - interrupts 69 - interrupts 70 - clocks 70 - clocks 71 71 72 additionalProperties: false 72 additionalProperties: false 73 73 74 examples: 74 examples: 75 - | 75 - | 76 #include <dt-bindings/interrupt-controller 76 #include <dt-bindings/interrupt-controller/irq.h> 77 #include <dt-bindings/interrupt-controller 77 #include <dt-bindings/interrupt-controller/arm-gic.h> 78 78 79 timer@10008000 { 79 timer@10008000 { 80 compatible = "mediatek,mt6577-timer"; 80 compatible = "mediatek,mt6577-timer"; 81 reg = <0x10008000 0x80>; 81 reg = <0x10008000 0x80>; 82 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL 82 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>; 83 clocks = <&system_clk>; 83 clocks = <&system_clk>; 84 }; 84 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.