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?
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