* [PATCH] imx53-qsb: Convert to watchdog driver model
@ 2024-02-21 17:39 Fabio Estevam
2024-02-23 6:03 ` Jason Liu
2024-02-24 22:13 ` Fabio Estevam
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2024-02-21 17:39 UTC (permalink / raw)
To: sbabic; +Cc: jason.hui.liu, u-boot, Fabio Estevam
Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused
the 'reset' command in U-Boot to not cause a board reset.
Fix it by switching to the watchdog driver model via sysreset, which
is the preferred method for implementing the watchdog reset.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
arch/arm/dts/imx53-qsb-u-boot.dtsi | 14 ++++++++++++++
configs/mx53loco_defconfig | 3 +++
2 files changed, 17 insertions(+)
create mode 100644 arch/arm/dts/imx53-qsb-u-boot.dtsi
diff --git a/arch/arm/dts/imx53-qsb-u-boot.dtsi b/arch/arm/dts/imx53-qsb-u-boot.dtsi
new file mode 100644
index 000000000000..593ab7caa635
--- /dev/null
+++ b/arch/arm/dts/imx53-qsb-u-boot.dtsi
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/ {
+ wdt-reboot {
+ compatible = "wdt-reboot";
+ wdt = <&wdog1>;
+ bootph-pre-ram;
+ };
+};
+
+&wdog1 {
+ bootph-pre-ram;
+};
+
diff --git a/configs/mx53loco_defconfig b/configs/mx53loco_defconfig
index d4de8df7b49d..e2d3bc0b094e 100644
--- a/configs/mx53loco_defconfig
+++ b/configs/mx53loco_defconfig
@@ -60,6 +60,8 @@ CONFIG_POWER_FSL=y
CONFIG_POWER_I2C=y
CONFIG_DM_SERIAL=y
CONFIG_MXC_UART=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
CONFIG_USB=y
CONFIG_USB_EHCI_MX5=y
CONFIG_USB_STORAGE=y
@@ -67,3 +69,4 @@ CONFIG_USB_HOST_ETHER=y
CONFIG_USB_ETHER_ASIX=y
CONFIG_USB_ETHER_MCS7830=y
CONFIG_USB_ETHER_SMSC95XX=y
+CONFIG_IMX_WATCHDOG=y
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] imx53-qsb: Convert to watchdog driver model
2024-02-21 17:39 [PATCH] imx53-qsb: Convert to watchdog driver model Fabio Estevam
@ 2024-02-23 6:03 ` Jason Liu
2024-02-24 22:13 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Jason Liu @ 2024-02-23 6:03 UTC (permalink / raw)
To: Fabio Estevam, sbabic@denx.de; +Cc: u-boot@lists.denx.de
________________________________
From: Fabio Estevam <festevam@gmail.com>
Sent: Thursday, February 22, 2024 1:39 AM
To: sbabic@denx.de <sbabic@denx.de>
Cc: Jason Liu <jason.hui.liu@nxp.com>; u-boot@lists.denx.de <u-boot@lists.denx.de>; Fabio Estevam <festevam@gmail.com>
Subject: [PATCH] imx53-qsb: Convert to watchdog driver model
Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused
the 'reset' command in U-Boot to not cause a board reset.
Fix it by switching to the watchdog driver model via sysreset, which
is the preferred method for implementing the watchdog reset.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
arch/arm/dts/imx53-qsb-u-boot.dtsi | 14 ++++++++++++++
configs/mx53loco_defconfig | 3 +++
2 files changed, 17 insertions(+)
create mode 100644 arch/arm/dts/imx53-qsb-u-boot.dtsi
Thx for the fix.
Reviewed-by: Jason Liu <jason.hui.liu@nxp.com>
diff --git a/arch/arm/dts/imx53-qsb-u-boot.dtsi b/arch/arm/dts/imx53-qsb-u-boot.dtsi
new file mode 100644
index 000000000000..593ab7caa635
--- /dev/null
+++ b/arch/arm/dts/imx53-qsb-u-boot.dtsi
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/ {
+ wdt-reboot {
+ compatible = "wdt-reboot";
+ wdt = <&wdog1>;
+ bootph-pre-ram;
+ };
+};
+
+&wdog1 {
+ bootph-pre-ram;
+};
+
diff --git a/configs/mx53loco_defconfig b/configs/mx53loco_defconfig
index d4de8df7b49d..e2d3bc0b094e 100644
--- a/configs/mx53loco_defconfig
+++ b/configs/mx53loco_defconfig
@@ -60,6 +60,8 @@ CONFIG_POWER_FSL=y
CONFIG_POWER_I2C=y
CONFIG_DM_SERIAL=y
CONFIG_MXC_UART=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
CONFIG_USB=y
CONFIG_USB_EHCI_MX5=y
CONFIG_USB_STORAGE=y
@@ -67,3 +69,4 @@ CONFIG_USB_HOST_ETHER=y
CONFIG_USB_ETHER_ASIX=y
CONFIG_USB_ETHER_MCS7830=y
CONFIG_USB_ETHER_SMSC95XX=y
+CONFIG_IMX_WATCHDOG=y
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] imx53-qsb: Convert to watchdog driver model
2024-02-21 17:39 [PATCH] imx53-qsb: Convert to watchdog driver model Fabio Estevam
2024-02-23 6:03 ` Jason Liu
@ 2024-02-24 22:13 ` Fabio Estevam
1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2024-02-24 22:13 UTC (permalink / raw)
To: sbabic; +Cc: jason.hui.liu, u-boot
On Wed, Feb 21, 2024 at 2:39 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Commit 68dcbdd594d4 ("ARM: imx: Add weak default reset_cpu()") caused
> the 'reset' command in U-Boot to not cause a board reset.
>
> Fix it by switching to the watchdog driver model via sysreset, which
> is the preferred method for implementing the watchdog reset.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-24 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 17:39 [PATCH] imx53-qsb: Convert to watchdog driver model Fabio Estevam
2024-02-23 6:03 ` Jason Liu
2024-02-24 22:13 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox