Control GPIO pull up during boot

Any idea how to do it? Any tip of a dts file for this? Just need to set gpio 4 to pull up to make it similar to rock4c+