arm: dts: gxl: replace watchdog with new version [1/1]
authorBo Yang <bo.yang@amlogic.com>
Sat, 3 Nov 2018 02:22:02 +0000 (10:22 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Thu, 13 Dec 2018 03:10:35 +0000 (11:10 +0800)
PD#SWPL-1600

Problem:
The current watchdog is not the upstream standard driver.

Solution:
Replace watchdog device tree to use the standard watchdog driver.

Verify:
S905X P215/P212 Android-32bit Kernel-32bit.

Change-Id: I972c8ebb0158caa2df393d9a2d687d9298181102
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
watchdog: Change the feed watchdog mode [1/1]

PD#SWPL-2378

Problem:
Using Android to feed watchdog is not easy to debug the
crash problem, in addition, the Android does not open
the dog feeding service.

Solution:
Change the DTS configuration and change into driver feed watchdog.

Verify:
test pass on g12a-u200

Change-Id: Ie0a91fd8451fdccf3038ba6290a277c9048c52cd
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
arch/arm/boot/dts/amlogic/mesong12a.dtsi
arch/arm/boot/dts/amlogic/mesong12b.dtsi
arch/arm/boot/dts/amlogic/mesongxl.dtsi
arch/arm/boot/dts/amlogic/mesontl1.dtsi
arch/arm/boot/dts/amlogic/mesontxl.dtsi
arch/arm64/boot/dts/amlogic/mesong12a.dtsi
arch/arm64/boot/dts/amlogic/mesong12b.dtsi
arch/arm64/boot/dts/amlogic/mesontxl.dtsi

index b81b0ab..baa4187 100644 (file)
        };
 
        wdt: watchdog@0xffd0f0d0 {
-               compatible = "amlogic,meson-g12a-wdt";
+               compatible = "amlogic, meson-wdt";
                status = "okay";
+               default_timeout=<10>;
+               reset_watchdog_method=<1>; /* 0:sysfs,1:kernel */
+               reset_watchdog_time=<2>;
+               shutdown_timeout=<10>;
+               firmware_timeout=<6>;
+               suspend_timeout=<6>;
                reg = <0xffd0f0d0 0x10>;
                clock-names = "xtal";
                clocks = <&xtal>;
index 09fceff..e783309 100644 (file)
        };
 
        wdt: watchdog@0xffd0f0d0 {
-               compatible = "amlogic,meson-g12a-wdt";
+               compatible = "amlogic, meson-wdt";
                status = "okay";
+               default_timeout=<10>;
+               reset_watchdog_method=<1>; /* 0:sysfs,1:kernel */
+               reset_watchdog_time=<2>;
+               shutdown_timeout=<10>;
+               firmware_timeout=<6>;
+               suspend_timeout=<6>;
                reg = <0xffd0f0d0 0x10>;
                clock-names = "xtal";
                clocks = <&xtal>;
index f887655..e31fa43 100644 (file)
                status = "okay";
        };
 
-       watchdog {
+
+       wdt: watchdog@0xffd0f0d0 {
                compatible = "amlogic, meson-wdt";
                status = "okay";
                default_timeout=<10>;
index 7f35d8a..4cb1327 100644 (file)
        };
 
        wdt: watchdog@0xffd0f0d0 {
-               compatible = "amlogic,meson-tl1-wdt";
+               compatible = "amlogic, meson-wdt";
                status = "okay";
+               default_timeout=<10>;
+               reset_watchdog_method=<1>; /* 0:sysfs,1:kernel */
+               reset_watchdog_time=<2>;
+               shutdown_timeout=<10>;
+               firmware_timeout=<6>;
+               suspend_timeout=<6>;
                reg = <0xffd0f0d0 0x10>;
                clock-names = "xtal";
                clocks = <&xtal>;
index 12accae..9cb47c6 100644 (file)
                        };
 
                        wdt_ee: watchdog@98d0 {
-                               compatible = "amlogic,meson-txl-wdt";
+                               compatible = "amlogic, meson-wdt";
                                status = "okay";
+                               default_timeout=<10>;
+                               reset_watchdog_method=<1>;/*0:sysfs,1:kernel*/
+                               reset_watchdog_time=<2>;
+                               shutdown_timeout=<10>;
+                               firmware_timeout=<6>;
+                               suspend_timeout=<6>;
                                reg = <0x98d0 0x10>;
                                clock-names = "xtal";
                                clocks = <&xtal>;
index 0d0a4bd..d55ca6c 100644 (file)
        };
 
        wdt: watchdog@0xffd0f0d0 {
-               compatible = "amlogic,meson-g12a-wdt";
+               compatible = "amlogic, meson-wdt";
                status = "okay";
+               default_timeout=<10>;
+               reset_watchdog_method=<1>; /* 0:sysfs,1:kernel */
+               reset_watchdog_time=<2>;
+               shutdown_timeout=<10>;
+               firmware_timeout=<6>;
+               suspend_timeout=<6>;
                reg = <0x0 0xffd0f0d0 0x0 0x10>;
                clock-names = "xtal";
                clocks = <&xtal>;
index 4d3d3f7..c9f4af1 100644 (file)
        };
 
        wdt: watchdog@0xffd0f0d0 {
-               compatible = "amlogic,meson-g12a-wdt";
+               compatible = "amlogic, meson-wdt";
                status = "okay";
+               default_timeout=<10>;
+               reset_watchdog_method=<1>; /* 0:sysfs,1:kernel */
+               reset_watchdog_time=<2>;
+               shutdown_timeout=<10>;
+               firmware_timeout=<6>;
+               suspend_timeout=<6>;
                reg = <0x0 0xffd0f0d0 0x0 0x10>;
                clock-names = "xtal";
                clocks = <&xtal>;
index ffc50a2..10332df 100644 (file)
                        };
 
                        wdt_ee: watchdog@98d0 {
-                               compatible = "amlogic,meson-txl-wdt";
+                               compatible = "amlogic, meson-wdt";
                                status = "okay";
+                               default_timeout=<10>;
+                               reset_watchdog_method=<1>;/*0:sysfs,1:kernel*/
+                               reset_watchdog_time=<2>;
+                               shutdown_timeout=<10>;
+                               firmware_timeout=<6>;
+                               suspend_timeout=<6>;
                                reg = <0x0 0x98d0 0x0 0x10>;
                                clock-names = "xtal";
                                clocks = <&xtal>;