Erm, why are you calling this “spi0.pinN”? Do you mean “hardware.pinN”? That might be more successful.