]> git.ipfire.org Git - people/ms/linux.git/commitdiff
arm64: dts: broadcom: bcm4908: use proper TWD binding
authorRafał Miłecki <rafal@milecki.pl>
Wed, 29 Dec 2021 10:23:14 +0000 (11:23 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 1 Feb 2022 00:29:38 +0000 (16:29 -0800)
Block at <ff800400 0x4c> is a TWD that contains timers, watchdog and
reset. Actual timers happen to be at block beginning but they only span
across the first 0x28 registers. It means the old block description was
incorrect (size 0x3c).

Drop timers binding for now and use documented TWD binding. Timers
should be properly documented and defined as TWD subnode.

Fixes: 2961f69f151c ("arm64: dts: broadcom: add BCM4908 and Asus GT-AC5300 early DTS files")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm64/boot/dts/broadcom/bcm4908/bcm4908.dtsi

index 984c737fa627ac4721ffe2853152fb6cc2469696..6e738f2a370133e3e3728e326943d4c12dd3cc99 100644 (file)
                #size-cells = <1>;
                ranges = <0x00 0x00 0xff800000 0x3000>;
 
-               timer: timer@400 {
-                       compatible = "brcm,bcm6328-timer", "syscon";
-                       reg = <0x400 0x3c>;
+               twd: timer-mfd@400 {
+                       compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon";
+                       reg = <0x400 0x4c>;
                };
 
                gpio0: gpio-controller@500 {
 
        reboot {
                compatible = "syscon-reboot";
-               regmap = <&timer>;
+               regmap = <&twd>;
                offset = <0x34>;
                mask = <1>;
        };