Reading TPS65217 INT register with interrupt

20 views
Skip to first unread message

Ahmad Fatehi

unread,
Sep 23, 2017, 7:21:52 PM9/23/17
to BeagleBoard

Hi, I want to use 5V adaptor and battery for powering my beaglebone black, I want to detect when 5V adaptor is missed and the board is supplying from battery, for this I should read the INT and STATUS register of TPS65217 if an interrupt is issued on PMIC_INT pin. So probably I must access the linux kernel for TPS65217 driver and modify it?! From where I can access to this kernel? or how can I detect interrupt and read STATUS register?

John Syne

unread,
Sep 24, 2017, 5:56:06 PM9/24/17
to beagl...@googlegroups.com
This is where you need to learn some GIT skills. Clone the kernel source and then in the kernel directory, issue this command:

git grep tps65217

This will tell you all the files that contain references to TPS65217. 

Regards,
John




On Sep 23, 2017, at 1:28 AM, Ahmad Fatehi <fatehi...@gmail.com> wrote:


Hi, I want to use 5V adaptor and battery for powering my beaglebone black, I want to detect when 5V adaptor is missed and the board is supplying from battery, for this I should read the INT and STATUS register of TPS65217 if an interrupt is issued on PMIC_INT pin. So probably I must access the linux kernel for TPS65217 driver and modify it?! From where I can access to this kernel? or how can I detect interrupt and read STATUS register?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/059aebf0-c643-4f37-9ffe-9c6c13927881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages