abstract: I will explain a joint work with Bedaride and Leplaideur about thermodynamic formalism for potentials defined using substitution dynamical systems. I will study the thermodynamic formalism for potentials in some class, and prove they have a freezing phase transition, with ground state supported on the attracting quasi-crystal associated to the substitution.