Pullup setting gpio in OpenWrt

i want disable pull up pull down or set pull up for gpio in oopenwrt
how can i set this setting for gpio?
i want this setting set on just 1 gpio

In the DTS. Read the device tree bindings documentation in the Linux source.

1 Like

thanks . i use mt7628 . and u7628 device .
i cant find anythnig in dts file fot rhis device .
i should change other dts file for mt7628 ?

The mt7628 hardware does not have programmable pullups/pulldowns for its GPIOs.

Therefore, you cannot configure this option in software, but actually need to connect external resistors to the pins if you need pullup or pulldown for a GPIO.