1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only 2*c66ec88fSEmmanuel Vadot%YAML 1.2 3*c66ec88fSEmmanuel Vadot--- 4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: Synopsys DesignWare APB Timer 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Daniel Lezcano <daniel.lezcano@linaro.org> 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadotproperties: 13*c66ec88fSEmmanuel Vadot compatible: 14*c66ec88fSEmmanuel Vadot oneOf: 15*c66ec88fSEmmanuel Vadot - const: snps,dw-apb-timer 16*c66ec88fSEmmanuel Vadot - enum: 17*c66ec88fSEmmanuel Vadot - snps,dw-apb-timer-sp 18*c66ec88fSEmmanuel Vadot - snps,dw-apb-timer-osc 19*c66ec88fSEmmanuel Vadot deprecated: true 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadot reg: 22*c66ec88fSEmmanuel Vadot maxItems: 1 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot interrupts: 25*c66ec88fSEmmanuel Vadot maxItems: 1 26*c66ec88fSEmmanuel Vadot 27*c66ec88fSEmmanuel Vadot clocks: 28*c66ec88fSEmmanuel Vadot minItems: 1 29*c66ec88fSEmmanuel Vadot items: 30*c66ec88fSEmmanuel Vadot - description: Timer ticks reference clock source 31*c66ec88fSEmmanuel Vadot - description: APB interface clock source 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel Vadot clock-names: 34*c66ec88fSEmmanuel Vadot minItems: 1 35*c66ec88fSEmmanuel Vadot items: 36*c66ec88fSEmmanuel Vadot - const: timer 37*c66ec88fSEmmanuel Vadot - const: pclk 38*c66ec88fSEmmanuel Vadot 39*c66ec88fSEmmanuel Vadot clock-frequency: true 40*c66ec88fSEmmanuel Vadot 41*c66ec88fSEmmanuel Vadot clock-freq: 42*c66ec88fSEmmanuel Vadot $ref: "/schemas/types.yaml#/definitions/uint32" 43*c66ec88fSEmmanuel Vadot description: | 44*c66ec88fSEmmanuel Vadot Has the same meaning as the 'clock-frequency' property - timer clock 45*c66ec88fSEmmanuel Vadot frequency in HZ, but is defined only for the backwards compatibility 46*c66ec88fSEmmanuel Vadot with the picoxcell platform. 47*c66ec88fSEmmanuel Vadot 48*c66ec88fSEmmanuel VadotunevaluatedProperties: false 49*c66ec88fSEmmanuel Vadot 50*c66ec88fSEmmanuel Vadotrequired: 51*c66ec88fSEmmanuel Vadot - compatible 52*c66ec88fSEmmanuel Vadot - reg 53*c66ec88fSEmmanuel Vadot - interrupts 54*c66ec88fSEmmanuel Vadot 55*c66ec88fSEmmanuel VadotoneOf: 56*c66ec88fSEmmanuel Vadot - required: 57*c66ec88fSEmmanuel Vadot - clocks 58*c66ec88fSEmmanuel Vadot - clock-names 59*c66ec88fSEmmanuel Vadot - required: 60*c66ec88fSEmmanuel Vadot - clock-frequency 61*c66ec88fSEmmanuel Vadot - required: 62*c66ec88fSEmmanuel Vadot - clock-freq 63*c66ec88fSEmmanuel Vadot 64*c66ec88fSEmmanuel Vadotexamples: 65*c66ec88fSEmmanuel Vadot - | 66*c66ec88fSEmmanuel Vadot timer@ffe00000 { 67*c66ec88fSEmmanuel Vadot compatible = "snps,dw-apb-timer"; 68*c66ec88fSEmmanuel Vadot interrupts = <0 170 4>; 69*c66ec88fSEmmanuel Vadot reg = <0xffe00000 0x1000>; 70*c66ec88fSEmmanuel Vadot clocks = <&timer_clk>, <&timer_pclk>; 71*c66ec88fSEmmanuel Vadot clock-names = "timer", "pclk"; 72*c66ec88fSEmmanuel Vadot }; 73*c66ec88fSEmmanuel Vadot - | 74*c66ec88fSEmmanuel Vadot timer@ffe00000 { 75*c66ec88fSEmmanuel Vadot compatible = "snps,dw-apb-timer"; 76*c66ec88fSEmmanuel Vadot interrupts = <0 170 4>; 77*c66ec88fSEmmanuel Vadot reg = <0xffe00000 0x1000>; 78*c66ec88fSEmmanuel Vadot clocks = <&timer_clk>; 79*c66ec88fSEmmanuel Vadot clock-names = "timer"; 80*c66ec88fSEmmanuel Vadot }; 81*c66ec88fSEmmanuel Vadot - | 82*c66ec88fSEmmanuel Vadot timer@ffe00000 { 83*c66ec88fSEmmanuel Vadot compatible = "snps,dw-apb-timer"; 84*c66ec88fSEmmanuel Vadot interrupts = <0 170 4>; 85*c66ec88fSEmmanuel Vadot reg = <0xffe00000 0x1000>; 86*c66ec88fSEmmanuel Vadot clock-frequency = <25000000>; 87*c66ec88fSEmmanuel Vadot }; 88*c66ec88fSEmmanuel Vadot... 89