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 <krzysztof.kozlowski@linaro.org> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230214103936.1061078-2-sergio.paracuellos@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 000987a commit ff75e4e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)