1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/timer/ingenic,tcu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Ingenic SoCs Timer/Counter Unit (TCU) devicetree bindings
10 For a description of the TCU hardware and drivers, have a look at
11 Documentation/mips/ingenic-tcu.rst.
14 - Paul Cercueil <paul@crapouillou.net>
33 pattern: "^timer@[0-9a-f]+$"
47 interrupt-controller: true
65 - const: ingenic,jz4760-tcu
73 - description: RTC clock
74 - description: EXT clock
75 - description: PCLK clock
76 - description: TCU clock
89 - description: TCU0 interrupt
90 - description: TCU1 interrupt
91 - description: TCU2 interrupt
98 assigned-clock-parents:
102 assigned-clock-rates:
106 ingenic,pwm-channels-mask:
107 description: Bitmask of TCU channels reserved for PWM use.
108 $ref: /schemas/types.yaml#/definitions/uint32
114 "^watchdog@[a-f0-9]+$":
116 $ref: ../watchdog/watchdog.yaml#
121 - ingenic,jz4740-watchdog
122 - ingenic,jz4780-watchdog
125 - ingenic,jz4770-watchdog
126 - ingenic,jz4760b-watchdog
127 - ingenic,jz4760-watchdog
128 - ingenic,jz4725b-watchdog
129 - const: ingenic,jz4740-watchdog
148 $ref: ../pwm/pwm.yaml#
154 - ingenic,jz4725b-pwm
159 - ingenic,jz4760b-pwm
162 - const: ingenic,jz4740-pwm
195 - ingenic,jz4725b-ost
196 - ingenic,jz4760b-ost
198 - const: ingenic,jz4760-ost
199 - const: ingenic,jz4725b-ost
204 - const: ingenic,jz4760b-ost
225 additionalProperties: false
230 - interrupt-controller
237 additionalProperties: false
241 #include <dt-bindings/clock/ingenic,jz4770-cgu.h>
242 #include <dt-bindings/clock/ingenic,tcu.h>
243 tcu: timer@10002000 {
244 compatible = "ingenic,jz4770-tcu", "ingenic,jz4760-tcu", "simple-mfd";
245 reg = <0x10002000 0x1000>;
246 #address-cells = <1>;
248 ranges = <0x0 0x10002000 0x1000>;
252 clocks = <&cgu JZ4770_CLK_RTC>,
253 <&cgu JZ4770_CLK_EXT>,
254 <&cgu JZ4770_CLK_PCLK>;
255 clock-names = "rtc", "ext", "pclk";
257 interrupt-controller;
258 #interrupt-cells = <1>;
260 interrupt-parent = <&intc>;
261 interrupts = <27 26 25>;
263 watchdog: watchdog@0 {
264 compatible = "ingenic,jz4770-watchdog", "ingenic,jz4740-watchdog";
267 clocks = <&tcu TCU_CLK_WDT>;
272 compatible = "ingenic,jz4770-pwm", "ingenic,jz4740-pwm";
277 clocks = <&tcu TCU_CLK_TIMER0>,
278 <&tcu TCU_CLK_TIMER1>,
279 <&tcu TCU_CLK_TIMER2>,
280 <&tcu TCU_CLK_TIMER3>,
281 <&tcu TCU_CLK_TIMER4>,
282 <&tcu TCU_CLK_TIMER5>,
283 <&tcu TCU_CLK_TIMER6>,
284 <&tcu TCU_CLK_TIMER7>;
285 clock-names = "timer0", "timer1", "timer2", "timer3",
286 "timer4", "timer5", "timer6", "timer7";
290 compatible = "ingenic,jz4770-ost", "ingenic,jz4760b-ost";
293 clocks = <&tcu TCU_CLK_OST>;