All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Kurscheidt <lve0200@gmail.com>
To: ndy Shevchenko <andy.shevchenko@gmail.com>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Kent Gibson <warthog618@gmail.com>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>
Subject: Fwd: gpiod: Set pullup for Input Line
Date: Mon, 21 Mar 2022 21:25:39 +0100	[thread overview]
Message-ID: <d9d28ca0-8141-0096-feb9-5808535990c9@gmail.com> (raw)
In-Reply-To: <c490e63a-8fcb-f802-2f24-7cb8a7f36818@gmail.com>


Am 21.03.2022 um 18:33 schrieb Andy Shevchenko:
> On Mon, Mar 21, 2022 at 7:27 PM Hans Kurscheidt <lve0200@gmail.com> wrote:
>> Hi thanks, that makes hope.
> First of all, please do not top-post.
>
>> Unfortunately apt-get gpiod on my OrangePi Armbian board gives me
>> version 1.2, while the dev is already at 1.6. I probably have to build
>> it from source.
>>
>> Keeping fingers crossed .
> I don't remember the details of old versions of libgpiod (Bart? Kent?)
> I think it was available even there.
>
>> Am 21.03.2022 um 17:26 schrieb Andy Shevchenko:
>>> On Mon, Mar 21, 2022 at 1:30 PM Hans Kurscheidt <lve0200@gmail.com> 
>>> wrote:
>>>> Despite deep searching, I cannot find any information, if gpiod allow
>>>> specifying pull-ups to input lines and how to do/handle it.
>>> Have you followed this code from libgpiod?
>>> https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/tools/gpioset.c#n44
> I don't think that the Bias option is in 1.2.3, because help is mute 
> about it

> Trying to build it from source, doesn't work for me. I get:
hk@orangepizeroplus:~/libgpiod$ ./autogen.sh --enable-tools=yes 
--prefix=/usr/bin
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
aclocal: warning: couldn't open directory 'm4': No such file or directory
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory autostuff
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:163: error: possibly undefined macro: AC_LIBTOOL_CXX
       If this token and others are legitimate, please use m4_pattern_allow.
       See the Autoconf documentation.
configure.ac:165: error: Unexpanded AX_ macro found. Please install GNU 
autoconf-archive.
configure.ac:179: error: Unexpanded AX_ macro found. Please install GNU 
autoconf-archive.
autoreconf: /usr/bin/autoconf failed with exit status: 1
hk@orangepizeroplus:~/libgpiod$


??

RGDS

Got it; needed to install libtools and (may be) create a directory m4 in 
libgpiod
Its working now w/ Version 2.0 and I see the Bias Option

Thank you


  reply	other threads:[~2022-03-21 20:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 10:43 gpiod: Set pullup for Input Line Hans Kurscheidt
2022-03-21 13:34 ` Alexander Dahl
2022-03-21 16:26 ` Andy Shevchenko
2022-03-21 17:27   ` Hans Kurscheidt
2022-03-21 17:33     ` Andy Shevchenko
2022-03-21 18:17       ` Hans Kurscheidt
2022-03-21 20:25         ` Hans Kurscheidt [this message]
2022-03-22  0:59       ` Kent Gibson
     [not found]         ` <1a7fd31a-221e-7b23-b95f-d71e440b3ff0@gmail.com>
2022-03-22  8:39           ` Hans Kurscheidt
2022-03-22  8:50             ` Andy Shevchenko
2022-03-22  9:39               ` Hans Kurscheidt
2022-03-22 16:12                 ` Kent Gibson
2022-03-22 16:11               ` Kent Gibson
2022-03-22 16:11           ` Kent Gibson
     [not found] <ab3240e5-df61-cff4-ebba-f6a7e5d99f52@gmail.com>
2022-03-21 13:48 ` Hans Kurscheidt
2022-03-21 14:42   ` Alexander Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9d28ca0-8141-0096-feb9-5808535990c9@gmail.com \
    --to=lve0200@gmail.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=brgl@bgdev.pl \
    --cc=linux-gpio@vger.kernel.org \
    --cc=warthog618@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.