Commit ff75e4eb authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Wim Van Sebroeck

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230214103936.1061078-2-sergio.paracuellos@gmail.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 000987a3
...@@ -19,6 +19,12 @@ properties: ...@@ -19,6 +19,12 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
mediatek,sysctl:
$ref: /schemas/types.yaml#/definitions/phandle
description:
phandle to system controller 'sysc' syscon node which
controls system registers
required: required:
- compatible - compatible
- reg - reg
...@@ -30,4 +36,5 @@ examples: ...@@ -30,4 +36,5 @@ examples:
watchdog@100 { watchdog@100 {
compatible = "mediatek,mt7621-wdt"; compatible = "mediatek,mt7621-wdt";
reg = <0x100 0x100>; reg = <0x100 0x100>;
mediatek,sysctl = <&sysc>;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment