I am trying to develop a device tree overlay to remove the bias on a GPIO pin. This is the device tree overlay I have thus far:
dts-v1/;
2 /plugin/;
3
4 / {
5 compatible = "rockchip,rk3308";
6
7 fragment@0 {
8 target = <&gpio0>;
9 __overlay__ {
10 pinctrl-names = "default";
11 pinctrl-0 = <&my_gpio_pin>;
12
13 my_gpio_pin: my-gpio-pin {
14 pins = <23>;
15 function = "gpio_in";
16 bias-disable;
17 };
18 };
19 };
20 };
I can do it with ‘gpioset’ utility but I want it done via DT overlay. Is there guidance as to how to accomplish this with DT overlay and rockchip devices?