How to configure SPI on RockPiS board?

hi . i want to config rockpiS board for spi . how i config it . i can not find in documents in preferal sites about it . please help ???

You can enable the SPI2 interface using a devicetree overlay.

Main header pin 19 MOSI
Main header pin 21 MISO
Main header pin 23 CLK
Main header pin 24 CS

something like this would be a start (haven’t tested it):

/dts-v1/;
/plugin/;

/ {
	compatible = "rockchip,rk3308";

	fragment@0 {
		target = <&uart2>;
		__overlay__ {
			status = "disabled";
		};
	};

        fragment@1 {
                target = <&spi2>;
                __overlay__ {
			status = "okay";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        spidev {
                                compatible = "rockchip,spidev";
                                status = "okay";
                                reg = <0>;
                                spi-max-frequency = <10000000>;
                        };
                };
};