1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/allwinner,sun4i-a10-timer.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Allwinner A10 Timer 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Chen-Yu Tsai <wens@csie.org> 11c66ec88fSEmmanuel Vadot - Maxime Ripard <mripard@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotproperties: 14c66ec88fSEmmanuel Vadot compatible: 155956d97fSEmmanuel Vadot oneOf: 165956d97fSEmmanuel Vadot - enum: 17c66ec88fSEmmanuel Vadot - allwinner,sun4i-a10-timer 18c66ec88fSEmmanuel Vadot - allwinner,sun8i-a23-timer 19c66ec88fSEmmanuel Vadot - allwinner,sun8i-v3s-timer 20c66ec88fSEmmanuel Vadot - allwinner,suniv-f1c100s-timer 215956d97fSEmmanuel Vadot - items: 225956d97fSEmmanuel Vadot - enum: 23b97ee269SEmmanuel Vadot - allwinner,sun20i-d1-timer 245956d97fSEmmanuel Vadot - allwinner,sun50i-a64-timer 255956d97fSEmmanuel Vadot - allwinner,sun50i-h6-timer 265956d97fSEmmanuel Vadot - allwinner,sun50i-h616-timer 275956d97fSEmmanuel Vadot - const: allwinner,sun8i-a23-timer 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot reg: 30c66ec88fSEmmanuel Vadot maxItems: 1 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot interrupts: 335def4c47SEmmanuel Vadot minItems: 2 345def4c47SEmmanuel Vadot maxItems: 6 35c66ec88fSEmmanuel Vadot description: 36c66ec88fSEmmanuel Vadot List of timers interrupts 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot clocks: 39c66ec88fSEmmanuel Vadot maxItems: 1 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel VadotallOf: 42c66ec88fSEmmanuel Vadot - if: 43c66ec88fSEmmanuel Vadot properties: 44c66ec88fSEmmanuel Vadot compatible: 455956d97fSEmmanuel Vadot enum: 465956d97fSEmmanuel Vadot - allwinner,sun4i-a10-timer 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot then: 49c66ec88fSEmmanuel Vadot properties: 50c66ec88fSEmmanuel Vadot interrupts: 51c66ec88fSEmmanuel Vadot minItems: 6 52c66ec88fSEmmanuel Vadot maxItems: 6 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot - if: 55c66ec88fSEmmanuel Vadot properties: 56c66ec88fSEmmanuel Vadot compatible: 575956d97fSEmmanuel Vadot enum: 585956d97fSEmmanuel Vadot - allwinner,sun8i-a23-timer 59c66ec88fSEmmanuel Vadot 60c66ec88fSEmmanuel Vadot then: 61c66ec88fSEmmanuel Vadot properties: 62c66ec88fSEmmanuel Vadot interrupts: 63c66ec88fSEmmanuel Vadot minItems: 2 64c66ec88fSEmmanuel Vadot maxItems: 2 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot - if: 67c66ec88fSEmmanuel Vadot properties: 68c66ec88fSEmmanuel Vadot compatible: 695956d97fSEmmanuel Vadot enum: 705956d97fSEmmanuel Vadot - allwinner,sun8i-v3s-timer 715956d97fSEmmanuel Vadot - allwinner,suniv-f1c100s-timer 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot then: 74c66ec88fSEmmanuel Vadot properties: 75c66ec88fSEmmanuel Vadot interrupts: 76c66ec88fSEmmanuel Vadot minItems: 3 77c66ec88fSEmmanuel Vadot maxItems: 3 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadotrequired: 80c66ec88fSEmmanuel Vadot - compatible 81c66ec88fSEmmanuel Vadot - reg 82c66ec88fSEmmanuel Vadot - interrupts 83c66ec88fSEmmanuel Vadot - clocks 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel VadotadditionalProperties: false 86c66ec88fSEmmanuel Vadot 87c66ec88fSEmmanuel Vadotexamples: 88c66ec88fSEmmanuel Vadot - | 89c66ec88fSEmmanuel Vadot timer@1c20c00 { 90c66ec88fSEmmanuel Vadot compatible = "allwinner,sun4i-a10-timer"; 91c66ec88fSEmmanuel Vadot reg = <0x01c20c00 0x400>; 92c66ec88fSEmmanuel Vadot interrupts = <22>, 93c66ec88fSEmmanuel Vadot <23>, 94c66ec88fSEmmanuel Vadot <24>, 95c66ec88fSEmmanuel Vadot <25>, 96c66ec88fSEmmanuel Vadot <67>, 97c66ec88fSEmmanuel Vadot <68>; 98c66ec88fSEmmanuel Vadot clocks = <&osc>; 99c66ec88fSEmmanuel Vadot }; 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot... 102