Part Number:TMDSIDK574
Tool/software: Linux
Hi
we use http://www.ti.com/product/TPS659037 with AM5748 and would like to use the watchdog component on this PMIC.
In device tree of our reference IDK we find subtrees for several PMIC companion functions like rtc but no subnode for the watchdog:
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 */
};
The PMIC device is under control of the PMIC driver(s).
In particular the interrupt (connected to GPIO6/16 of AM5748) is handled by the driver:
root@sitara:/home/abb# cat /proc/interrupts |grep palmas
169: 0 0 4805d000.gpio 16 Level palmas
170: 0 0 palmas 8 Level 48070000.i2c:tps659038@58:tps659038_rtc
Serving the PMIC watch by our own code would probably interfere with the driver.
Could you advice how to enable, configure and feed the PMIC watchdog under these circumstances?
Thanks, Chris
169: 0 0 4805d000.gpio 16 Level palmas1