Other Parts Discussed in Thread: AM5748, TPS659037
主题中讨论的其他器件:AM5748、
工具/软件:Linux
你(们)好
我们将 http://www.ti.com/product/TPS659037 与 AM5748搭配使用、并希望在此 PMIC 上使用看门狗组件。
在参考 IDK 的器件树中、我们可以找到多个 PMIC 额外功能的子树、例如 RTC、但看门狗没有子节点:
tps659038: tps659038@58 {
compatible = "ti,tps659038";
reg = <0x58>;
interrupts-extended = <&gpio6 16 IRQ_TYPE_LEVEL_HIGH
&dra7_pmx_core 0x418>;
#interrupt-cells = <2>;
interrupt-controller;
ti,system-power-controller;
ti,palmas-override-powerhold;
tps659038_pmic {
compatible = "ti,tps659038-pmic";
…..
tps659038_rtc: tps659038_rtc {
compatible = "ti,palmas-rtc";
interrupt-parent = <&tps659038>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
wakeup-source;
};
tps659038_pwr_button: tps659038_pwr_button {
compatible = "ti,palmas-pwrbutton";
interrupt-parent = <&tps659038>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
wakeup-source;
ti,palmas-long-press-seconds = <12>;
};
tps659038_gpio: tps659038_gpio {
compatible = "ti,palmas-gpio";
gpio-controller;
#gpio-cells = <2>;
};
extcon_usb2: tps659038_usb {
compatible = "ti,palmas-usb-vid";
ti,enable-vbus-detection;
ti,enable-id-detection;
/* ID & VBUS GPIOs provided in board dts */
};
听从您的意见
-如何启用看门狗,如何设置看门狗模式/时间/锁定
-如果我们需要自行编写一个中断处理程序来重置看门狗,或者这是由驱动程序完成的
谢谢、Chris