Dinis, Frederico, Portugal