Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: suniv: F1C100: fix watchdog compatible

The F1C100 series of SoCs actually have their watchdog IP being
compatible with the newer Allwinner generation, not the older one.

The currently described sun4i-a10-wdt actually does not work, neither
the watchdog functionality (just never fires), nor the reset part
(reboot hangs).

Replace the compatible string with the one used by the newer generation.
Verified to work with both the watchdog and reboot functionality on a
LicheePi Nano.

Also add the missing interrupt line and clock source, to make it binding
compliant.

Fixes: 4ba16d17efdd ("ARM: dts: suniv: add initial DTSI file for F1C100s")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220317162349.739636-4-andre.przywara@arm.com

authored by

Andre Przywara and committed by
Jernej Skrabec
01a850ee 42b91bb1

+3 -1
+3 -1
arch/arm/boot/dts/suniv-f1c100s.dtsi
··· 104 104 105 105 wdt: watchdog@1c20ca0 { 106 106 compatible = "allwinner,suniv-f1c100s-wdt", 107 - "allwinner,sun4i-a10-wdt"; 107 + "allwinner,sun6i-a31-wdt"; 108 108 reg = <0x01c20ca0 0x20>; 109 + interrupts = <16>; 110 + clocks = <&osc32k>; 109 111 }; 110 112 111 113 uart0: serial@1c25000 {