restore iPhone without charging port working
I was using my iPhone 12 Pro normally, stoped using it for a while to do other stuff, and then tried to use it again but it wouldn't turn on, the screen was just black, so I restarted it using only the buttons, and after a while the apple logo showed up, but then the screen went black again, and it said to plug it in to my computer to restore it, the problem is that the charging port from my phone stopped working a while back, so I can't connect it to my computer, I don't know what else to do.
iPhone 11 Pro Max, iOS 15