dm: serial: Introduce ->getinfo() callback