DTS to set GPIO IN/OUT

Hi there,

I’m struggling to set any of the gpio’s to in or out, or even to set as pull up or pull down.

Can someone help me with the dts?

I saw some examples, but none work:

/dts-v1/;
/plugin/;

/ {
compatible = “rockchip,rk3566”;

/*
 * This fragment is needed only for the internal pull-up activation,
 * external pull-up resistor is highly recommended if using long wires
 */
fragment@0 {
	target-path = [2f 00];

	__overlay__ {

		gpio_button_0: gpio_button_0 {
			pins = "GPIO3_D5";
			function = "gpio_in";
			bias-pull-up;
		};
	};
};

};

Guess no one knows about this. Very weird that basic control of gpio can’t be set during boot…