Battery Fuel Gauge setup in Android 12.1

Hello,

Could you please help me to enable Battery Fuel Gauge (MAX17048). As far as I read it requires two steps:

  1. Enable driver to be compiled into Kernel
  2. modify Device Tree to setup the Fuel Gauge

Could you please clarify for me where kernel .config file is located within Android file structure to enable the driver and where device tree file is located within Android file structure to configure the Fuel Gauge

Thank you!