0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Synopsys DesignWare APB Timer
0008
0009 maintainers:
0010 - Daniel Lezcano <daniel.lezcano@linaro.org>
0011
0012 properties:
0013 compatible:
0014 oneOf:
0015 - const: snps,dw-apb-timer
0016 - enum:
0017 - snps,dw-apb-timer-sp
0018 - snps,dw-apb-timer-osc
0019 deprecated: true
0020
0021 reg:
0022 maxItems: 1
0023
0024 interrupts:
0025 maxItems: 1
0026
0027 resets:
0028 maxItems: 1
0029
0030 clocks:
0031 minItems: 1
0032 items:
0033 - description: Timer ticks reference clock source
0034 - description: APB interface clock source
0035
0036 clock-names:
0037 minItems: 1
0038 items:
0039 - const: timer
0040 - const: pclk
0041
0042 clock-frequency: true
0043
0044 additionalProperties: false
0045
0046 required:
0047 - compatible
0048 - reg
0049 - interrupts
0050
0051 oneOf:
0052 - required:
0053 - clocks
0054 - clock-names
0055 - required:
0056 - clock-frequency
0057 - required:
0058 - clock-freq
0059
0060 examples:
0061 - |
0062 timer@ffe00000 {
0063 compatible = "snps,dw-apb-timer";
0064 interrupts = <0 170 4>;
0065 reg = <0xffe00000 0x1000>;
0066 clocks = <&timer_clk>, <&timer_pclk>;
0067 clock-names = "timer", "pclk";
0068 };
0069 - |
0070 timer@ffe00000 {
0071 compatible = "snps,dw-apb-timer";
0072 interrupts = <0 170 4>;
0073 reg = <0xffe00000 0x1000>;
0074 clocks = <&timer_clk>;
0075 clock-names = "timer";
0076 };
0077 - |
0078 timer@ffe00000 {
0079 compatible = "snps,dw-apb-timer";
0080 interrupts = <0 170 4>;
0081 reg = <0xffe00000 0x1000>;
0082 clock-frequency = <25000000>;
0083 };
0084 ...