The present invention provides free or salt form formula (I) compound, preparation method and its as the purposes of drug, R1, R2, R3, R4, R5, R6, Q, W, X, m, n and p therein are as used in the description.本發明提供了游離或鹽形式的式(I)化合物、其製備方法及其用作藥物的用途,其中的R1、R2、R3、R4、R5、R6、Q、W、X、m、n和p如說明書所述。