How to configure GPIO to input + pullup from userspace?

Dear support team,

I’d like to configure pin A9 as input with internal pullup.

From this and this I learned I have to do the following to set it to input:

echo 488 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio488/direction

Kindly tell me how to activate the internal pullup resistor from userspace.

Thank you.

We’re checking with internal team, will update to you once clarified.

Thanks

AFAIK, pullup is from pinmux registers and not GPIO registers.
So sysfs does not have pullup support for internal pullup.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.