0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/brcm,twd.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Broadcom's Timer-Watchdog (aka TWD)
0008
0009 maintainers:
0010 - Rafał Miłecki <rafal@milecki.pl>
0011
0012 description: |
0013 Broadcom has a Timer-Watchdog block used in multiple SoCs (e.g., BCM4908,
0014 BCM63xx, BCM7038). There are few variants available (they differ slightly in
0015 registers layout). This block consists of: timers, watchdog and optionally a
0016 software reset handler.
0017
0018 properties:
0019 compatible:
0020 items:
0021 - enum:
0022 - brcm,bcm4908-twd
0023 - brcm,bcm7038-twd
0024 - const: simple-mfd
0025 - const: syscon
0026
0027 reg:
0028 maxItems: 1
0029
0030 ranges: true
0031
0032 "#address-cells":
0033 const: 1
0034
0035 "#size-cells":
0036 const: 1
0037
0038 patternProperties:
0039 '^watchdog@[a-f0-9]+$':
0040 $ref: /schemas/watchdog/brcm,bcm7038-wdt.yaml
0041
0042 additionalProperties: false
0043
0044 required:
0045 - reg
0046
0047 examples:
0048 - |
0049 timer-mfd@ff800400 {
0050 compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
0051 reg = <0xff800400 0x4c>;
0052 ranges = <0x00000000 0xff800400 0x4c>;
0053
0054 #address-cells = <1>;
0055 #size-cells = <1>;
0056
0057 watchdog@28 {
0058 compatible = "brcm,bcm7038-wdt";
0059 reg = <0x28 0x8>;
0060 };
0061 };