Home | History | Annotate | Download | only in spi
History log of /src/sys/dev/spi/tmp121.c
RevisionDateAuthorComments
 1.12  13-Sep-2025  thorpej Define and use spi_handle_t to drive home the point that it's an opaque
type.
 1.11  13-Sep-2025  thorpej Don't report spi_configure() errors here.
 1.10  11-Sep-2025  thorpej Support direct configuration.
 1.9  11-Sep-2025  thorpej Use SPI_MATCH_DEFAULT rather than hard-coding 1.
 1.8  10-Sep-2025  thorpej Use speed calculation helper macros. This actally fixes tmp121, where
comment did not match code (comment was correct, confirmed against
data sheet).
 1.7  19-Jan-2022  thorpej Pass the device_t into spi_configure(), and make the API contract that
spi_configure() will print errors if they occur; the driver is off the
hook.
 1.6  19-Jan-2022  thorpej Probe / match routines should not have side-effects: do the spi_configure()
calls in the attach routines.
 1.5  20-Jun-2011  pgoyette branches: 1.5.72; 1.5.82;
Initialize sensor state before registering
 1.4  04-Apr-2008  xtraeme branches: 1.4.36;
Split device_t/softc and other related cosmetic changes.
 1.3  16-Nov-2007  xtraeme branches: 1.3.14;
Extend the envsys2 API (one more time, sorry) as defined in:

http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
 1.2  01-Jul-2007  xtraeme branches: 1.2.6; 1.2.8; 1.2.12; 1.2.14;
Imported envsys 2, a brief description of the new features:
(Part 2: drivers)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
sysmon_power(9) and powerd(8), that means there is no 32 bytes event
size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
 1.1  02-Oct-2006  gdamore branches: 1.1.2; 1.1.4; 1.1.8; 1.1.14; 1.1.16;
Initial commit of SPI bus (also known as Microwire) framework, along with
a sample driver for the TI TMP121 temperature sensor. This has been
moderately tested on Au1550, and it is not enabled in sys/conf (yet). So
the change is harmless at worst, and useful at best.

Alchemy Au1550 bus driver forthcoming, along with a driver for SPI flash
devices, such as found on the Meraki Mini

This development was partially funded by the Champaign-Urbana Community
Wireless Network Project.

Note that there are some MD-specific SPI drivers that could probably be
made MI under this new framework.
 1.1.16.1  11-Jul-2007  mjf Sync with head.
 1.1.14.1  15-Jul-2007  ad Sync with head.
 1.1.8.4  07-Dec-2007  yamt sync with head
 1.1.8.3  03-Sep-2007  yamt sync with head.
 1.1.8.2  30-Dec-2006  yamt sync with head.
 1.1.8.1  02-Oct-2006  yamt file tmp121.c was added on branch yamt-lazymbuf on 2006-12-30 20:49:37 +0000
 1.1.4.2  18-Nov-2006  ad Sync with head.
 1.1.4.1  02-Oct-2006  ad file tmp121.c was added on branch newlock2 on 2006-11-18 21:34:50 +0000
 1.1.2.2  22-Oct-2006  yamt sync with head
 1.1.2.1  02-Oct-2006  yamt file tmp121.c was added on branch yamt-splraiseipl on 2006-10-22 06:06:48 +0000
 1.2.14.1  19-Nov-2007  mjf Sync with HEAD.
 1.2.12.1  18-Nov-2007  bouyer Sync with HEAD
 1.2.8.1  09-Jan-2008  matt sync with HEAD
 1.2.6.1  21-Nov-2007  joerg Sync with HEAD.
 1.3.14.1  02-Jun-2008  mjf Sync with HEAD.
 1.4.36.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.82.1  09-Aug-2021  thorpej Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.
 1.5.72.2  19-May-2021  thorpej match/probe routines should not have side-effects; call spi_configure()
from the attach routine.
 1.5.72.1  19-May-2021  thorpej Use spi_compatible_match().

XXX Should support the other variants of this device.

RSS XML Feed