Kernel driver development

hi . i want to compile a simple device driver for mt7628 . how should i compile it ?

is it already in the kernel ?

hi . no i want to cross compile it in Ubuntu . i need its Linux headers and configuring the Paths .

the linux kernel, not the openwrt kernel.