How to set WDOG_B timeout period for i.MX6ULL?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set WDOG_B timeout period for i.MX6ULL?

759 Views
s_kr
Contributor I

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)

Labels (4)
0 Kudos
1 Reply

250 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi sny

according to documentation below, seems it is not possible using device tree,

so one will have to modify driver to add such capability

linux/Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.txt

fsl-imx-wdt.txt\watchdog\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos