0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/allwinner,sun5i-a13-hstimer.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A13 High-Speed Timer Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 properties:
0014 compatible:
0015 oneOf:
0016 - const: allwinner,sun5i-a13-hstimer
0017 - const: allwinner,sun7i-a20-hstimer
0018 - items:
0019 - const: allwinner,sun6i-a31-hstimer
0020 - const: allwinner,sun7i-a20-hstimer
0021
0022 reg:
0023 maxItems: 1
0024
0025 interrupts:
0026 minItems: 2
0027 items:
0028 - description: Timer 0 Interrupt
0029 - description: Timer 1 Interrupt
0030 - description: Timer 2 Interrupt
0031 - description: Timer 3 Interrupt
0032
0033 clocks:
0034 maxItems: 1
0035
0036 resets:
0037 maxItems: 1
0038
0039 required:
0040 - compatible
0041 - reg
0042 - interrupts
0043 - clocks
0044
0045 if:
0046 properties:
0047 compatible:
0048 const: allwinner,sun5i-a13-hstimer
0049
0050 then:
0051 properties:
0052 interrupts:
0053 minItems: 2
0054 maxItems: 2
0055
0056 else:
0057 properties:
0058 interrupts:
0059 minItems: 4
0060 maxItems: 4
0061
0062 additionalProperties: false
0063
0064 examples:
0065 - |
0066 timer@1c60000 {
0067 compatible = "allwinner,sun7i-a20-hstimer";
0068 reg = <0x01c60000 0x1000>;
0069 interrupts = <0 51 1>,
0070 <0 52 1>,
0071 <0 53 1>,
0072 <0 54 1>;
0073 clocks = <&ahb1_gates 19>;
0074 resets = <&ahb1rst 19>;
0075 };
0076
0077 ...