Subject: Re: Dallas semiconductor "one-wire" and envsys(4)
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Jeff Rizzo <riz@tastylime.net>
List: current-users
Date: 02/27/2006 09:31:52
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig266C2FB739F68EB290F188D4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Garrett D'Amore wrote:
> Ben Harris wrote:
>  =20
>> In article <44009889.5030803@tastylime.net> you write:
>>  =20
>>    =20
>>> I'm currently working on a driver for one-wire devices (such as the
>>> DS18B20 temperature sensor) ...
>>>
>>> It's not clear to me whether this would be something appropriate to
>>> bring in to NetBSD or not ...
>>>    =20
>>>      =20
>> We've already got a little bit of one-wire bus support in sys/dev/ic/d=
s.h,
>> which is used by sys/arch/acorn26/ioc/ssn.c and by something in
>> sys/arch/amiga.  Making it more general might well be useful, and ISTR=
 that
>> the acorn26 implementation never worked properly anyway.  If it had, I=
 would
>> have ported it to NetBSD/acorn32 so that we could get the system Ether=
net
>> address on acorn32 systems without help from RISC OS.
>>
>> Or, in summary, yes please!
>>
>>  =20
>>    =20
> Didn't I see some recent commits of gpiobus() additional functionality,=

> so that you could have child devices hanging off of gpios?
>
>  =20

Yes, you did, and that's how I've implemented the onewire bus attachment
in my setup.  Now that I know there's already some stuff in NetBSD
(thanks for the pointer!), I will look into how much sense it makes to
use the existing header.  (the whole thing took me less than two days to
implement, and that long only because I don't actually know what I'm doin=
g)

Seeing as how there's clearly some interest, let me spend a few days
making things presentable, and I'll post a pointer to the code here.

Thanks for the feedback,
+j



--------------enig266C2FB739F68EB290F188D4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRAM3jLOuUtxCgar5AQOxcgP/eOPxkTuRSKvrITm27hzDREWGkYxx4kJZ
M2bwiS71N66oavJUlTI9mtrpV/+oI05IA4qVI/KpZr3Jfe1FvycjJ2Dh82R3IDhq
NWkVuQOQnVCQdzxgoj3us0S/t7i0EpvKKi4/qtkJSmbTHt1PqaKavY4vq5DnBGpI
7/hJ7CU84TA=
=giOV
-----END PGP SIGNATURE-----

--------------enig266C2FB739F68EB290F188D4--