AnsweredAssumed Answered

How to set WDOG_B timeout period for i.MX6ULL?

Question asked by sny kr on Oct 9, 2018
Latest reply on Oct 10, 2018 by igorpadykov

Hi,

I attempted to change the setting of the timeout period of WDOG, depending on the device tree of i.MX6ULL.

I set it as below in the devicetree, but wdog timeout period is 60s.

How to set WDOG_B timeout period for i.MX6ULL by devicetree?

 

====================================================

//dtsi File: imx6ul-imx6ull-var-dart-common.dtsi

&wdog1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wdog>;
fsl,wdog_b;
};

pinctrl_hog_1: hoggrp-1 {
fsl,pins = <
//MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x1b0b0
>;
};


pinctrl_wdog: wdoggrp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO08__WDOG1_WDOG_B 0x93c
>;
};

//dsti File: imx6ull.dtsi

wdog1: wdog@020bc000 {
compatible = "fsl,imx6ul-wdt", "fsl,imx21-wdt";
reg = <0x020bc000 0x4000>;
interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_WDOG1>;
};

====================================================

 

"0x93c" means as bellow by i.MX6ULL reference manual "WDOG Control Register".

 

Watchdog timeout: 0x09 5.0s

Software Reset Extention: 0 Continue WDOG timer operation

WDOG_B Assertion: 1 No effect on system(Default)

Software Reset Signal: 1 No effect on the system(Default)

Watchdog timeout assertion : 1 Assert WDOG_B upon a Watchdog Time-out event

Watchdog Enable : 1 Enable the Watchdog

Watchdog DBG: 0 Continue WDOG timer operation(Default)

Watchdog Low Power: 0 Continue timer operation(Default)

Outcomes