xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/brcm,twd.yaml (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/brcm,twd.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom's Timer-Watchdog (aka TWD)
8
9maintainers:
10  - Rafał Miłecki <rafal@milecki.pl>
11
12description: |
13  Broadcom has a Timer-Watchdog block used in multiple SoCs (e.g., BCM4908,
14  BCM63xx, BCM7038). There are few variants available (they differ slightly in
15  registers layout). This block consists of: timers, watchdog and optionally a
16  software reset handler.
17
18properties:
19  compatible:
20    items:
21      - enum:
22          - brcm,bcm4908-twd
23          - brcm,bcm7038-twd
24      - const: simple-mfd
25      - const: syscon
26
27  reg:
28    maxItems: 1
29
30  ranges: true
31
32  "#address-cells":
33    const: 1
34
35  "#size-cells":
36    const: 1
37
38patternProperties:
39  '^timer@[a-f0-9]+$':
40    $ref: /schemas/timer/brcm,bcmbca-timer.yaml
41
42  '^watchdog@[a-f0-9]+$':
43    $ref: /schemas/watchdog/brcm,bcm7038-wdt.yaml
44
45additionalProperties: false
46
47required:
48  - reg
49
50examples:
51  - |
52    timer-mfd@ff800400 {
53        compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
54        reg = <0xff800400 0x4c>;
55        ranges = <0x00000000 0xff800400 0x4c>;
56
57        #address-cells = <1>;
58        #size-cells = <1>;
59
60        timer@0 {
61            compatible = "brcm,bcm63138-timer";
62            reg = <0x0 0x28>;
63        };
64
65        watchdog@28 {
66            compatible = "brcm,bcm7038-wdt";
67            reg = <0x28 0x8>;
68        };
69    };
70