write_dt_*() for consistency with the dt_from_*() input functions.
a patch by Jon Loeliger <jdl AT freescale.com>, although tweaked substantially.