configure GPIO as pull up \ pull down

Post Reply
ilan@kamacode.com
Posts: 6
Joined: Mon Aug 12, 2019 11:31 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

configure GPIO as pull up \ pull down

Unread post by ilan@kamacode.com » Sat Nov 02, 2019 2:52 am

Hello

I would like to know which definition do I need in the DTS \ kernel driver in order to set an input pin to pull-up

for the Odroid C2 by amlogic I seen the API : amlogic_set_pull_up_down, but I have not seen support for that in the N2 kernel source


thank you

paulcrawford
Posts: 160
Joined: Tue May 10, 2016 11:51 am
languages_spoken: english
ODROIDs: c2 and n2
Has thanked: 19 times
Been thanked: 4 times
Contact:

Re: configure GPIO as pull up \ pull down

Unread post by paulcrawford » Fri Nov 08, 2019 11:22 pm

If you look here:

https://wiki.odroid.com/odroid-n2/appli ... apped_gpio

you will see sample code to set the default gpio values.

You can get more details here:

https://wiki.odroid.com/odroid-n2/softw ... gister_map

I used the sample code as a basis for my own customized gpio defaults to create a "c" program that is set to run at startup as a service.

ilan@kamacode.com
Posts: 6
Joined: Mon Aug 12, 2019 11:31 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: configure GPIO as pull up \ pull down

Unread post by ilan@kamacode.com » Sat Nov 09, 2019 4:33 am

working, thank you

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest