Help identify chip

Hi!
Is there anyone here who could help me identify the chip?
This is from a Tuya video doorbell that I want to flash with esphome. So I’m first looking for pinout, but I’m happy to receive instructions on how to do it. If there is a forum that is better suited to my purpose, please send me in that direction.
Thanks in advance