Broadcom's Timer-Watchdog (aka TWD)
Schema identifier ($id): "http://devicetree.org/schemas/mfd/brcm,twd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Broadcom has a Timer-Watchdog block used in multiple SoCs (e.g., BCM4908, BCM63xx, BCM7038). There are few variants available (they differ slightly in registers layout). This block consists of: timers, watchdog and optionally a software reset handler.
Properties and child nodes (properties) #
compatible — not listed as required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"brcm,bcm4908-twd","brcm,bcm7038-twd"
Item 2
Exact value (
const):"simple-mfd"
Item 3
Exact value (
const):"syscon"
reg — required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^timer@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/timer/brcm,bcmbca-timer.yaml
^watchdog@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/watchdog/brcm,bcm7038-wdt.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg"
Examples (examples) #
timer-mfd@ff800400 {
compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
reg = <0xff800400 0x4c>;
ranges = <0x00000000 0xff800400 0x4c>;
#address-cells = <1>;
#size-cells = <1>;
timer@0 {
compatible = "brcm,bcm63138-timer";
reg = <0x0 0x28>;
};
watchdog@28 {
compatible = "brcm,bcm7038-wdt";
reg = <0x28 0x8>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause