Watchdog anomaly on imx6q+

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Watchdog anomaly on imx6q+

651 次查看
christophe
Contributor V

Hi all,

We have a sabresd-like board with an imx6q+ inside. Watchdog schematic is like below:

pastedImage_1.png

PWRON in connected to pmic "PWRON" pin and WDOG_B is connected to GPIO_1.

The DTB is like that:

&gpc {
    fsl,ldo-bypass = <1>;
};

pinctrl_wdog: wdoggrp {
      fsl,pins = <  MX6QDL_PAD_GPIO_1__WDOG2_B 0x80000000
            >;
};

&wdog1 {
    status = "disabled";
};

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

With linux 3 and an imx6q chip, no problem: with reboot command or wdog time-out, the board shows a pulse on PWRON and reboots.

Now, with linux4 and imx6q+ chip, for the same commands, we still have a pulse on PWRON, but very strangely, the cpu hangs (no reboot).

If we disable wdog2 and enable wdog1 then the board reboots but without pulse on PWRON, a bit like a soft reset. It has been said many times that this way it not very reliable, so we don't wish to use it.

So, why something that fully worked on linux3 fails now on linux 4 ? What changes could happen ? And at the end, how to use watchdog2 to make the board correctly reboot ?

Best regards,

Christophe

标签 (2)
0 项奖励
回复
1 回复

487 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Christophe

one can try nxp official releases from source.codeaurora repository:

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.9.88_2.0.0_ga

also may be useful to test wdog with nxp sabre sd reference board and demo images from

i.MX Software|NXP 

for changing wdog one can look on

https://community.nxp.com/thread/431260 

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

0 项奖励
回复