Yes, you can say it like this :
Aku dinamai Dimas oleh kakekku.
Saya dinamai Dimas oleh kakek saya.
Is it forbidden to mix the formal "saya" with the familiar "aku" in the same sentence?
There is seemingly some debate over this. I have read that from comments on here, but my Indonesian wife doesn't agree. Perhaps it's a regional thing...