The SP-2 Sustain Pedal has a switchable polarity, so it will work with both your Yamaha piano and your Roland synth; no problem.
The SP-2 Sustain Pedal also feels great, providing realistic piano pedal resistance and a slip-resistant grippy rubber bottom. And because the SP-2 Sustain Pedal is built to last, it will be there when you get your next synth or piano, ready to handle anything.