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:
13 followed by "simple-mfd".
14 - reg: Should be the offset/length value corresponding to the TCU registers
15 - clocks: List of phandle & clock specifiers for clocks external to the TCU.
16 The "pclk", "rtc" and "ext" clocks should be provided. The "tcu" clock
17 should be provided if the SoC has it.
18 - clock-names: List of name strings for the external clocks.
19 - #clock-cells: Should be <1>;
20 Clock consumers specify this argument to identify a clock. The valid values
21 may be found in <dt-bindings/clock/ingenic,tcu.h>.
22 - interrupt-controller : Identifies the node as an interrupt controller
23 - #interrupt-cells : Specifies the number of cells needed to encode an
24 interrupt source. The value should be 1.
25 - interrupts : Specifies the interrupt the controller is connected to.
29 - ingenic,pwm-channels-mask: Bitmask of TCU channels reserved for PWM use.
30 Default value is 0xfc.
34 ==========================================================
42 - compatible: Must be one of:
45 - #pwm-cells: Should be 3. See ../pwm/pwm.yaml for a description of the cell
47 - clocks: List of phandle & clock specifiers for the TCU clocks.
48 - clock-names: List of name strings for the TCU clocks.
56 - compatible: Must be "ingenic,jz4740-watchdog"
57 - clocks: phandle to the WDT clock
58 - clock-names: should be "wdt"
66 - compatible: Must be one of:
69 - clocks: phandle to the OST clock
70 - clock-names: should be "ost"
71 - interrupts : Specifies the interrupt the OST is connected to.
75 ==========================================================
77 #include <dt-bindings/clock/jz4770-cgu.h>
78 #include <dt-bindings/clock/ingenic,tcu.h>
82 compatible = "ingenic,jz4770-tcu", "simple-mfd";
83 reg = <0x10002000 0x1000>;
86 ranges = <0x0 0x10002000 0x1000>;
90 clocks = <&cgu JZ4770_CLK_RTC
92 &cgu JZ4770_CLK_PCLK>;
93 clock-names = "rtc", "ext", "pclk";
96 #interrupt-cells = <1>;
98 interrupt-parent = <&intc>;
99 interrupts = <27 26 25>;
101 watchdog: watchdog@0 {
102 compatible = "ingenic,jz4740-watchdog";
105 clocks = <&tcu TCU_CLK_WDT>;
110 compatible = "ingenic,jz4740-pwm";
115 clocks = <&tcu TCU_CLK_TIMER0
122 &tcu TCU_CLK_TIMER7>;
123 clock-names = "timer0", "timer1", "timer2", "timer3",
124 "timer4", "timer5", "timer6", "timer7";
128 compatible = "ingenic,jz4770-ost";
131 clocks = <&tcu TCU_CLK_OST>;