3 squares in AP

If $D>C\geq B>A>0$
and we have 3 squares in arithmetic progression $x_0, x_1, x_2$ where $x_2-x_1=x_1-x_0=d$
can $d=2(A^2-B^2)CD$ ?