1 Ingenic JZ47xx SoCs Timer/Counter Unit devicetree bindings
2 ==========================================================
4 For a description of the TCU hardware and drivers, have a look at
5 Documentation/mips/ingenic-tcu.rst.
9 - compatible: Must be one of:
14 followed by "simple-mfd".
15 - reg: Should be the offset/length value corresponding to the TCU registers
16 - clocks: List of phandle & clock specifiers for clocks external to the TCU.
17 The "pclk", "rtc" and "ext" clocks should be provided. The "tcu" clock
18 should be provided if the SoC has it.
19 - clock-names: List of name strings for the external clocks.
20 - #clock-cells: Should be <1>;
21 Clock consumers specify this argument to identify a clock. The valid values
22 may be found in <dt-bindings/clock/ingenic,tcu.h>.
23 - interrupt-controller : Identifies the node as an interrupt controller
24 - #interrupt-cells : Specifies the number of cells needed to encode an
25 interrupt source. The value should be 1.
26 - interrupts : Specifies the interrupt the controller is connected to.
30 - ingenic,pwm-channels-mask: Bitmask of TCU channels reserved for PWM use.
31 Default value is 0xfc.
35 ==========================================================
43 - compatible: Must be one of:
46 - #pwm-cells: Should be 3. See ../pwm/pwm.yaml for a description of the cell
48 - clocks: List of phandle & clock specifiers for the TCU clocks.
49 - clock-names: List of name strings for the TCU clocks.
57 - compatible: Must be "ingenic,jz4740-watchdog"
58 - clocks: phandle to the WDT clock
59 - clock-names: should be "wdt"
67 - compatible: Must be one of:
70 - clocks: phandle to the OST clock
71 - clock-names: should be "ost"
72 - interrupts : Specifies the interrupt the OST is connected to.
76 ==========================================================
78 #include <dt-bindings/clock/jz4770-cgu.h>
79 #include <dt-bindings/clock/ingenic,tcu.h>
83 compatible = "ingenic,jz4770-tcu", "simple-mfd";
84 reg = <0x10002000 0x1000>;
87 ranges = <0x0 0x10002000 0x1000>;
91 clocks = <&cgu JZ4770_CLK_RTC
93 &cgu JZ4770_CLK_PCLK>;
94 clock-names = "rtc", "ext", "pclk";
97 #interrupt-cells = <1>;
99 interrupt-parent = <&intc>;
100 interrupts = <27 26 25>;
102 watchdog: watchdog@0 {
103 compatible = "ingenic,jz4740-watchdog";
106 clocks = <&tcu TCU_CLK_WDT>;
111 compatible = "ingenic,jz4740-pwm";
116 clocks = <&tcu TCU_CLK_TIMER0
123 &tcu TCU_CLK_TIMER7>;
124 clock-names = "timer0", "timer1", "timer2", "timer3",
125 "timer4", "timer5", "timer6", "timer7";
129 compatible = "ingenic,jz4770-ost";
132 clocks = <&tcu TCU_CLK_OST>;