Skip to content

Commit ff75e4e

Browse files
parakaWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: mt7621-wdt: add phandle to access system controller registers
MT7621 SoC provides a system controller node for accessing to some registers. Add a phandle in this node to avoid using MIPS related arch operations and includes in watchdog driver code. Acked-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Sergio Paracuellos <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 000987a commit ff75e4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ properties:
1919
reg:
2020
maxItems: 1
2121

22+
mediatek,sysctl:
23+
$ref: /schemas/types.yaml#/definitions/phandle
24+
description:
25+
phandle to system controller 'sysc' syscon node which
26+
controls system registers
27+
2228
required:
2329
- compatible
2430
- reg
@@ -30,4 +36,5 @@ examples:
3036
watchdog@100 {
3137
compatible = "mediatek,mt7621-wdt";
3238
reg = <0x100 0x100>;
39+
mediatek,sysctl = <&sysc>;
3340
};

0 commit comments

Comments
 (0)