OpenGrok
Cross Reference: mcp48x1.c
xref
: /
src
/
sys
/
dev
/
spi
/
mcp48x1.c
Home
|
History
|
Annotate
|
Download
|
only in
spi
History log of
/src/sys/dev/spi/mcp48x1.c
Revision
Date
Author
Comments
1.7
13-Sep-2025
thorpej
Define and use spi_handle_t to drive home the point that it's an opaque
type.
1.6
13-Sep-2025
thorpej
Support direct configuration.
1.5
11-Sep-2025
thorpej
Use SPI_MATCH_DEFAULT rather than hard-coding 1.
1.4
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.3
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.2
19-Jan-2022
thorpej
Probe / match routines should not have side-effects: do the spi_configure()
calls in the attach routines.
1.1
25-Feb-2014
rkujawa
branches: 1.1.4; 1.1.6; 1.1.10; 1.1.54; 1.1.64;
Add preliminary driver for Microchip MCP48x1 family of DACs.
Needs more testing and an appropriate API for such (non-audio) DACs. For now
one can set the output value using sysctl node. Also sysmon(4) will conveniently
report the voltage on Vout pin of the DAC. Note that this is not an actual
measured voltage, but merely calculated using equation from datasheet. Real
voltage might be different and depend on analog circuitry attached to the DAC.
1.1.64.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.1.54.2
19-May-2021
thorpej
match/probe routines should not have side-effects; call spi_configure()
from the attach routine.
1.1.54.1
19-May-2021
thorpej
Use spi_compatible_match().
1.1.10.2
20-Aug-2014
tls
Rebase to HEAD as of a few days ago.
1.1.10.1
25-Feb-2014
tls
file mcp48x1.c was added on branch tls-maxphys on 2014-08-20 00:03:50 +0000
1.1.6.2
22-May-2014
yamt
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
1.1.6.1
25-Feb-2014
yamt
file mcp48x1.c was added on branch yamt-pagecache on 2014-05-22 11:40:36 +0000
1.1.4.2
18-May-2014
rmind
sync with head
1.1.4.1
25-Feb-2014
rmind
file mcp48x1.c was added on branch rmind-smpnet on 2014-05-18 17:45:47 +0000
Indexes created Tue Oct 21 08:09:48 GMT 2025