xref: /linux/Documentation/devicetree/bindings/mfd/brcm,twd.yaml (revision 164666fa66669d437bdcc8d5f1744a2aee73be41)
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  '^watchdog@[a-f0-9]+$':
40    $ref: /schemas/watchdog/brcm,bcm7038-wdt.yaml
41
42additionalProperties: false
43
44required:
45  - reg
46
47examples:
48  - |
49    timer-mfd@ff800400 {
50        compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
51        reg = <0xff800400 0x4c>;
52        ranges = <0x00000000 0xff800400 0x4c>;
53
54        #address-cells = <1>;
55        #size-cells = <1>;
56
57        watchdog@28 {
58            compatible = "brcm,bcm7038-wdt";
59            reg = <0x28 0x8>;
60        };
61    };
62