diff mbox series

[v3] ARM: dts: imx: Add WDT reboot bindings on DH i.MX6 DHSOM

Message ID 20230403223937.503656-1-marex@denx.de
State Accepted
Commit 240a274f0fc01e04902be6909d506c430935f8a7
Delegated to: Stefano Babic
Headers show
Series [v3] ARM: dts: imx: Add WDT reboot bindings on DH i.MX6 DHSOM | expand

Commit Message

Marek Vasut April 3, 2023, 10:39 p.m. UTC
Add WDT reboot bindings on DH i.MX6 DHSOM to permit the platform
to reboot via WDT in U-Boot. These are custom U-Boot bindings,
hence they are placed in -u-boot.dtsi .

Reviewed-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Andreas Geisreiter <ageisreiter@dh-electronics.de>
Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: u-boot@dh-electronics.com
---
V2: Update subject, add 'reboot' word to make it clearer
V3: Rebase on current u-boot master and add changes which landed in
    U-Boot upstream since the last submission, i.e. s@u-boot,dm-spl@bootph-pre-ram@
---
 arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Stefano Babic April 4, 2023, 10:19 a.m. UTC | #1
> Add WDT reboot bindings on DH i.MX6 DHSOM to permit the platform
> to reboot via WDT in U-Boot. These are custom U-Boot bindings,
> hence they are placed in -u-boot.dtsi .
> Reviewed-by: Fabio Estevam <festevam@denx.de>
> Signed-off-by: Marek Vasut <marex@denx.de>
Applied to u-boot-imx, next, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi b/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
index 190567ab7ba..740a24d96ec 100644
--- a/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
+++ b/arch/arm/dts/imx6qdl-dhcom-u-boot.dtsi
@@ -8,6 +8,12 @@ 
 	aliases {
 		eeprom0 = &eeprom0;
 	};
+
+	wdt-reboot {
+		compatible = "wdt-reboot";
+		wdt = <&wdog1>;
+		bootph-pre-ram;
+	};
 };
 
 &fec {
@@ -25,3 +31,7 @@ 
 	gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>;
 	enable-active-high;
 };
+
+&wdog1 {
+	bootph-pre-ram;
+};