1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 3 --- 4 $id: http://devicetree.org/schemas/timer/arm,s 5 $schema: http://devicetree.org/meta-schemas/co 6 7 title: ARM sp804 Dual Timers 8 9 maintainers: 10 - Haojian Zhuang <haojian.zhuang@linaro.org> 11 12 description: |+ 13 The Arm SP804 IP implements two independent 14 16 or 32 bit operation and capable of runnin 15 free-running mode. The input clock is shared 16 independently for each timer. 17 18 There is a viriant of Arm SP804: Hisilicon 6 19 SoCs, such as Hi1212, should use the dedicat 20 21 # Need a custom select here or 'arm,primecell' 22 select: 23 properties: 24 compatible: 25 contains: 26 enum: 27 - arm,sp804 28 - hisilicon,sp804 29 required: 30 - compatible 31 32 properties: 33 compatible: 34 items: 35 - enum: 36 - arm,sp804 37 - hisilicon,sp804 38 - const: arm,primecell 39 40 interrupts: 41 description: | 42 If two interrupts are listed, those are 43 1 and 2, respectively. If there is only 44 either a combined interrupt or the sole 45 specified by the "arm,sp804-has-irq" pro 46 minItems: 1 47 maxItems: 2 48 49 reg: 50 description: The physical base address of 51 maxItems: 1 52 53 clocks: 54 description: | 55 Clocks driving the dual timer hardware. 56 be 1 or 3 clocks. With 3 clocks, the ord 57 clock, apb_pclk. A single clock can also 58 clock is used for all clock inputs. 59 oneOf: 60 - items: 61 - description: clock for timer 1 62 - description: clock for timer 2 63 - description: bus clock 64 - items: 65 - description: unified clock for bot 66 67 clock-names: true 68 # The original binding did not specify any 69 # consistent naming used in the existing D 70 # requires the "apb_pclk" name, so we need 71 # Use "timer0clk", "timer1clk", "apb_pclk" 72 73 arm,sp804-has-irq: 74 description: If only one interrupt line is 75 controller, this property specifies whic 76 line. 77 $ref: /schemas/types.yaml#/definitions/uin 78 minimum: 1 79 maximum: 2 80 81 required: 82 - compatible 83 - interrupts 84 - reg 85 - clocks 86 87 additionalProperties: false 88 89 examples: 90 - | 91 timer0: timer@fc800000 { 92 compatible = "arm,sp804", "arm,primece 93 reg = <0xfc800000 0x1000>; 94 interrupts = <0 0 4>, <0 1 4>; 95 clocks = <&timclk1>, <&timclk2>, <&pcl 96 clock-names = "timer1", "timer2", "apb 97 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.