dt: add helper function to read u32 arrays