Crystallinity from an invariant period matrix
Let $\ell$ be prime. For this prime, choose data satisfying Hypothesis (local period data) in (Local period rings and coefficient comparisonsDefinition PHT.D135). Write $B,D$ for its crystalline and de Rham rings and $\iota:B\to D$ for their comparison map.
Let $K,L\subseteq\overline{\mathbb Q}_\ell$ be finite extensions of $\mathbb Q_\ell$, put $G_K=\operatorname{Gal}(\overline{\mathbb Q}_\ell/K)$, let $d\ge0$ be an integer, and let $$r:G_K\to\operatorname{GL}_d(\mathbb Q_\ell),\qquad r':G_K\to\operatorname{GL}_d(L)$$ be homomorphisms such that $r'(g)$ is obtained by extending the entries of $r(g)$ to $L$. Suppose there are matrices $A,B_0\in M_d(D)$, every entry of each in $\iota(B)$, with $$AB_0=1,\qquad r(g)\,g(A)=A\quad(g\in G_K).$$ Then the representation of $G_K$ on $L^d$ defined by $r'$ is crystalline.
The group $G_K$ acts on matrices entrywise through its action on $D$; the matrices $r(g)$ are extended to $D$ through $\mathbb Q_\ell\to D$. Crystallinity uses the chosen period data.