Commit Graph

3 Commits

Author SHA1 Message Date
thorpej f64c887e97 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.
2022-01-19 05:21:44 +00:00
thorpej c86942858d Probe / match routines should not have side-effects: do the spi_configure()
calls in the attach routines.
2022-01-19 05:05:45 +00:00
rkujawa 21a43d7204 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.
2014-02-25 20:09:37 +00:00