Hi John,
I think you should be able to charge your phone in most albergues. It might be problematic if there are a lot of pilgrims and "everyone" needs to charge...
If you tell family and friends to call you between certain hours, you could keep your phone off most of the day. That means that if you don't get to charge it one day, the next day you still have "juice" left in the phone.
Also, remember the adapter you would need for 220V in Spain...
... I found a reference to charging a camera in this post as a reference:
viewtopic.php?t=664&highlight=charge
If anyone has some more advice for John on this topic, please post here..
Un saludo,
Ivar