It seems that the AD5293 digital potentiometer works in SPI mode with CPOL = 0 and CPHA = 1, however you selected SPI_MODE1. Although this is not a standard designation, you should try SPI_MODE0, or the other 2 modes if it still doesn't work ( see Sam3x datasheet page 680)