Re: BeagleBone Black and GPIO issues

Lloyd Parkes <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <0bb0d46af6f11ed79a2afeb7ba4506c42823cec7.camel@must-have-coffee.gen.nz>
On Wed, 2024-10-16 at 09:20 +0200, Dr. Nicola Mingotti wrote:
> > 
> I can open the PR later today, i don't know how to assign it to you.
> 

Thanks and sorry. I keep forgetting that ticketing systems often have
restrictions on who can do what, whereas I tend to have more of an
"empowering the user" approach. *shrug*

Can I have some use cases please so that I can see how well they fit
with what we can already do. Nicola, I see that you have clearly
described what you are trying to do in the PR. Do you need to disable
the pull-down at any point in time, or does your application need the
pull-down enabled permanently?

My use case is to attach the gpioow/onewire devices to a GPIO line so
that I can read temperatures from a Dallas DS18B20. I want to use
parasitic power for the DS18B20 and so the owtemp driver needs to be
able to enable and disable pullups on the fly while communicating with
the sensor.

In /etc/gpio.conf I have

	gpio0 attach gpioow 25 0x1

In /etc/modules.conf I have

	gpioow
	owtemp

Ngā mihi,
Lloyd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.