1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/timer/via,vt8500-timer.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: VIA/Wondermedia VT8500 Timer 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotdescription: 10*833e5d42SEmmanuel Vadot This is the timer block that is a standalone part of the system power 11*833e5d42SEmmanuel Vadot management controller on VIA/WonderMedia SoCs (VIA VT8500 and alike). 12*833e5d42SEmmanuel Vadot The hardware has a single 32-bit counter running at 3 MHz and four match 13*833e5d42SEmmanuel Vadot registers, each of which is associated with a dedicated match interrupt, 14*833e5d42SEmmanuel Vadot and the first of which can also serve as the system watchdog (if the 15*833e5d42SEmmanuel Vadot watchdog function is enabled, it will reset the system upon match instead 16*833e5d42SEmmanuel Vadot of triggering its respective interrupt) 17*833e5d42SEmmanuel Vadot 18*833e5d42SEmmanuel Vadotmaintainers: 19*833e5d42SEmmanuel Vadot - Alexey Charkov <alchark@gmail.com> 20*833e5d42SEmmanuel Vadot 21*833e5d42SEmmanuel Vadotproperties: 22*833e5d42SEmmanuel Vadot compatible: 23*833e5d42SEmmanuel Vadot const: via,vt8500-timer 24*833e5d42SEmmanuel Vadot 25*833e5d42SEmmanuel Vadot reg: 26*833e5d42SEmmanuel Vadot maxItems: 1 27*833e5d42SEmmanuel Vadot 28*833e5d42SEmmanuel Vadot interrupts: 29*833e5d42SEmmanuel Vadot minItems: 1 30*833e5d42SEmmanuel Vadot items: 31*833e5d42SEmmanuel Vadot - description: Channel 0 match. Note that if the watchdog function 32*833e5d42SEmmanuel Vadot is enabled, this interrupt will not fire and the system will 33*833e5d42SEmmanuel Vadot reboot instead once the counter reaches match register 0 value 34*833e5d42SEmmanuel Vadot - description: Channel 1 match 35*833e5d42SEmmanuel Vadot - description: Channel 2 match 36*833e5d42SEmmanuel Vadot - description: Channel 3 match 37*833e5d42SEmmanuel Vadot 38*833e5d42SEmmanuel Vadotrequired: 39*833e5d42SEmmanuel Vadot - compatible 40*833e5d42SEmmanuel Vadot - reg 41*833e5d42SEmmanuel Vadot - interrupts 42*833e5d42SEmmanuel Vadot 43*833e5d42SEmmanuel VadotadditionalProperties: false 44*833e5d42SEmmanuel Vadot 45*833e5d42SEmmanuel Vadotexamples: 46*833e5d42SEmmanuel Vadot - | 47*833e5d42SEmmanuel Vadot timer@d8130100 { 48*833e5d42SEmmanuel Vadot compatible = "via,vt8500-timer"; 49*833e5d42SEmmanuel Vadot reg = <0xd8130100 0x28>; 50*833e5d42SEmmanuel Vadot interrupts = <36>; 51*833e5d42SEmmanuel Vadot }; 52