Inspired by Schutt and Shioda's lovely "An interesting elliptic surface over an elliptic curve", I have been investigating the following surface: $$ \mathcal{E} : y^2 = x^3 - 27ux - 54v \hspace{1cm}\text{ over }\hspace{1cm} B : v^2 = u^3 + T \hspace{1cm}\text{ over }\hspace{1cm} \mathbb{F}_p(T). $$ One can see that $\mathcal{E}$ admits an order 4 automorphism $(x,y,u,v) \mapsto (-x,iy,u,-v)$, which we might call "CM by $\mathbb{Q}(i)$". Further, after base changing to $\mathbb{F}_q(T)$ if necessary to ensure $q \equiv 1 \pmod{4}$, one can show that the (in this case $2$-dimensional) transcendental lattice $V$ inside $H^2(\mathcal{E},\mathbb{Q}_\ell)$ is a sum of characters over $\mathbb{F}_q(T)$. Again, one is tempted to say this subspace $V$ has CM in some sense.
My question is - what is known about CM motives over function fields? It seems there are some key differences, for instance there is no ability to take the composite between your base and the field by which you have CM. Hence why I am loathe to say "$V$ has CM by $\mathbb{Q}(i)$" above. However, is there still an appropriate Tannakian category of CM motives in this setting? If so, what can we say about it? Is there anything written on this subject?
(Note: I am aware of the theory of $A$-motives, but I don't believe these are quite the right analogue here since the cohomology groups under consideration are $\mathbb{Q}_\ell$-modules, as opposed to modules over some $A$-algebra.)