A linear-quadratic control problem with an infinite time horizon for some infinite dimensional controlled differential equations is formulated and solved. The feedback form of the optimal control is given explicitly.