afedorov:
so basically I either can use header or D* pins for SPI. If D* pins are used for other things, I can't use SPI
No, you can connect several devices to the SPI bus, as long as only one device is active.
Maybe you should tell us what you really want to do, so we don't have to guess.
Leo..