2018-03-09 23:16:54 +03:00
|
|
|
# $NetBSD: files.i2c,v 1.86 2018/03/09 20:16:54 macallan Exp $
|
2003-09-30 04:35:30 +04:00
|
|
|
|
2011-10-02 20:39:45 +04:00
|
|
|
obsolete defflag opt_i2cbus.h I2C_SCAN
|
2003-09-30 04:35:30 +04:00
|
|
|
define i2cbus { }
|
|
|
|
define i2cexec
|
|
|
|
|
2016-06-20 07:18:12 +03:00
|
|
|
device iic { [addr = -1], [size = -1] } : i2c_bitbang
|
2003-09-30 04:35:30 +04:00
|
|
|
attach iic at i2cbus
|
2011-10-04 02:27:23 +04:00
|
|
|
file dev/i2c/i2c.c iic
|
2003-09-30 04:35:30 +04:00
|
|
|
file dev/i2c/i2c_exec.c iic | i2cbus | i2cexec
|
2016-06-07 04:06:27 +03:00
|
|
|
file dev/i2c/i2c_subr.c i2cbus
|
2014-12-07 03:32:35 +03:00
|
|
|
defparam opt_i2c.h I2C_MAX_ADDR
|
2003-09-30 04:35:30 +04:00
|
|
|
|
|
|
|
# Common module for bit-bang'ing an I2C bus
|
|
|
|
define i2c_bitbang
|
|
|
|
file dev/i2c/i2c_bitbang.c i2c_bitbang
|
|
|
|
|
2010-12-27 23:42:51 +03:00
|
|
|
# Auvitek AU8522 decoder
|
|
|
|
define au8522: i2cexec
|
|
|
|
file dev/i2c/au8522.c au8522
|
|
|
|
|
2011-07-11 22:00:06 +04:00
|
|
|
# LG DT3303 decoder
|
2011-08-13 22:31:38 +04:00
|
|
|
define lg3303: i2cexec, dtv_math
|
2011-07-11 22:00:06 +04:00
|
|
|
file dev/i2c/lg3303.c lg3303
|
|
|
|
|
|
|
|
# Xceive XC3028 tuner
|
2011-08-13 22:31:38 +04:00
|
|
|
define xc3028: i2cexec, firmload
|
2011-07-11 22:00:06 +04:00
|
|
|
file dev/i2c/xc3028.c xc3028
|
|
|
|
|
2010-12-27 23:42:51 +03:00
|
|
|
# Xceive XC5000 tuner
|
2011-07-11 22:00:06 +04:00
|
|
|
define xc5k: i2cexec, firmload
|
2010-12-27 23:42:51 +03:00
|
|
|
file dev/i2c/xc5k.c xc5k
|
|
|
|
|
2011-07-11 04:01:51 +04:00
|
|
|
# Generic PLL-based tuners
|
|
|
|
define tvpll: i2cexec
|
|
|
|
file dev/i2c/tvpll.c tvpll
|
|
|
|
file dev/i2c/tvpll_tuners.c tvpll
|
|
|
|
|
2011-07-11 04:30:23 +04:00
|
|
|
# Nextwave NXT200x demodulator
|
2011-07-15 03:43:37 +04:00
|
|
|
define nxt2k: i2cexec, firmload
|
2011-07-11 04:30:23 +04:00
|
|
|
file dev/i2c/nxt2k.c nxt2k
|
|
|
|
|
2011-08-04 05:45:37 +04:00
|
|
|
# Microtune MT2131 silicon tuner
|
|
|
|
define mt2131: i2cexec
|
|
|
|
file dev/i2c/mt2131.c mt2131
|
|
|
|
|
2011-08-04 05:48:34 +04:00
|
|
|
# Conexant/Samsung CX24227/S5H1409 demodulator
|
|
|
|
define cx24227: i2cexec
|
|
|
|
file dev/i2c/cx24227.c cx24227
|
|
|
|
|
2011-01-04 04:24:56 +03:00
|
|
|
#
|
|
|
|
# I2C master devices
|
|
|
|
#
|
|
|
|
define motoi2c
|
|
|
|
file dev/i2c/motoi2c.c motoi2c
|
2013-09-06 04:56:12 +04:00
|
|
|
define mvi2c
|
|
|
|
file dev/i2c/gttwsi_core.c mvi2c
|
2014-09-10 02:44:32 +04:00
|
|
|
defflag opt_gttwsi.h GTTWSI_ALLWINNER
|
2011-01-04 04:24:56 +03:00
|
|
|
|
2003-09-30 04:35:30 +04:00
|
|
|
#
|
|
|
|
# I2C client devices
|
|
|
|
#
|
|
|
|
|
|
|
|
# M41T00 Real Time Clock
|
2003-10-20 20:24:10 +04:00
|
|
|
device m41trtc
|
|
|
|
attach m41trtc at iic
|
|
|
|
file dev/i2c/m41t00.c m41trtc
|
2003-09-30 04:35:30 +04:00
|
|
|
|
|
|
|
# M41ST84 Real Time Clock
|
|
|
|
device strtc
|
|
|
|
attach strtc at iic
|
|
|
|
file dev/i2c/m41st84.c strtc
|
2010-10-10 09:17:44 +04:00
|
|
|
defflag opt_strtc.h STRTC_NO_USERRAM
|
|
|
|
STRTC_NO_WATCHDOG
|
2003-09-30 04:35:30 +04:00
|
|
|
|
|
|
|
# MAX6900 Real Time Clock
|
|
|
|
device maxrtc
|
|
|
|
attach maxrtc at iic
|
|
|
|
file dev/i2c/max6900.c maxrtc
|
|
|
|
|
2011-01-21 22:11:47 +03:00
|
|
|
# NXP/Philips PCF8563 Real Time Clock
|
|
|
|
device pcf8563rtc
|
|
|
|
attach pcf8563rtc at iic
|
|
|
|
file dev/i2c/pcf8563.c pcf8563rtc
|
|
|
|
|
2003-09-30 04:35:30 +04:00
|
|
|
# Philips PCF8583 Real Time Clock
|
|
|
|
device pcfrtc
|
|
|
|
attach pcfrtc at iic
|
|
|
|
file dev/i2c/pcf8583.c pcfrtc
|
|
|
|
|
2011-04-04 21:58:40 +04:00
|
|
|
# Seiko Instruments S-xx390A Real Time Clock
|
|
|
|
device s390rtc
|
|
|
|
attach s390rtc at iic
|
|
|
|
file dev/i2c/s390.c s390rtc
|
|
|
|
|
2003-09-30 04:35:30 +04:00
|
|
|
# Atmel/Microchip 24Cxx Serial EEPROM
|
|
|
|
define at24cxx_eeprom
|
|
|
|
device seeprom
|
|
|
|
attach seeprom at iic
|
|
|
|
file dev/i2c/at24cxx.c seeprom | at24cxx_eeprom
|
|
|
|
needs-flag
|
|
|
|
|
|
|
|
# National Semiconductor LM75 temperature sensor
|
|
|
|
device lmtemp: sysmon_envsys
|
|
|
|
attach lmtemp at iic
|
|
|
|
file dev/i2c/lm75.c lmtemp
|
|
|
|
|
2014-05-18 15:46:23 +04:00
|
|
|
# IST-AG Humidity and Teperature sensor (P14)
|
|
|
|
device hythygtemp: sysmon_envsys
|
|
|
|
attach hythygtemp at iic
|
|
|
|
file dev/i2c/hytp14.c hythygtemp
|
|
|
|
|
2008-10-12 17:17:28 +04:00
|
|
|
# National Semiconductor LM78 temp sensor/fan controller
|
|
|
|
attach lm at iic with lm_iic
|
|
|
|
file dev/i2c/lm_i2c.c lm_iic
|
|
|
|
|
2013-10-15 23:13:32 +04:00
|
|
|
# National Semiconductor LM87 and clones system hardware monitor
|
|
|
|
device lmenv: sysmon_envsys
|
|
|
|
attach lmenv at iic
|
|
|
|
file dev/i2c/lm87.c lmenv
|
|
|
|
|
2003-09-30 04:35:30 +04:00
|
|
|
# Dallas DS1307 Real Time Clock
|
2014-10-15 09:11:36 +04:00
|
|
|
device dsrtc: sysmon_envsys
|
2003-09-30 04:35:30 +04:00
|
|
|
attach dsrtc at iic
|
|
|
|
file dev/i2c/ds1307.c dsrtc
|
2003-10-06 22:02:54 +04:00
|
|
|
|
|
|
|
# Xicor X1226 Real Time Clock
|
|
|
|
device xrtc
|
|
|
|
attach xrtc at iic
|
|
|
|
file dev/i2c/x1226.c xrtc
|
2005-08-10 18:18:28 +04:00
|
|
|
|
Add new driver for dbCool(tm) family of Thermal Monitor and Fan Controller.
Supported chips: ADM1027, ADM1030, ADT7463, ADT7466, ADT7467, ADT7468,
ADT7473, ADT7475, and ADT7476. Notably missing is the ADT7490, and fan
controller support on the ADT7466 is still on the to-do list.
Tested by myself and njoly@
Reviewed by garbled@
Commit approved by christos@, bouyer@, cube@, and matt@
2008-10-02 04:47:51 +04:00
|
|
|
# Analog Devices dBCool family of thermal monitors / fan controllers
|
|
|
|
device dbcool: sysmon_envsys
|
|
|
|
attach dbcool at iic
|
|
|
|
file dev/i2c/dbcool.c dbcool
|
|
|
|
|
2005-08-16 15:09:12 +04:00
|
|
|
# RICOH RS5C372[AB] Real Time Clock
|
|
|
|
device rs5c372rtc
|
|
|
|
attach rs5c372rtc at iic
|
|
|
|
file dev/i2c/rs5c372.c rs5c372rtc
|
2006-03-06 23:29:06 +03:00
|
|
|
|
|
|
|
# RICOH R2025S/D Real Time Clock
|
|
|
|
device r2025rtc
|
|
|
|
attach r2025rtc at iic
|
|
|
|
file dev/i2c/r2025.c r2025rtc
|
2006-04-26 01:18:16 +04:00
|
|
|
|
|
|
|
# VESA Display Data Channel 2
|
|
|
|
device ddc
|
2006-04-26 10:52:09 +04:00
|
|
|
define ddc_read_edid
|
2006-04-26 01:18:16 +04:00
|
|
|
attach ddc at iic
|
2006-04-26 10:52:09 +04:00
|
|
|
file dev/i2c/ddc.c ddc | ddc_read_edid
|
2007-01-06 05:44:16 +03:00
|
|
|
|
2007-01-18 02:33:23 +03:00
|
|
|
# SGS TDA7433 audio mixer
|
2007-09-02 05:40:46 +04:00
|
|
|
device sgsmix
|
|
|
|
attach sgsmix at iic
|
2007-01-18 02:33:23 +03:00
|
|
|
file dev/i2c/sgsmix.c sgsmix needs-flag
|
2007-09-02 05:40:46 +04:00
|
|
|
defflag opt_sgsmix.h SGSMIX_DEBUG
|
2007-01-18 02:33:23 +03:00
|
|
|
|
2007-08-18 15:26:35 +04:00
|
|
|
# Memory Serial Presence Detect
|
2010-03-24 03:31:41 +03:00
|
|
|
attach spdmem at iic with spdmem_iic
|
|
|
|
file dev/i2c/spdmem_i2c.c spdmem_iic
|
2008-10-29 20:26:56 +03:00
|
|
|
|
2009-05-09 19:04:25 +04:00
|
|
|
# Memory Temp Sensor
|
2009-05-14 17:22:26 +04:00
|
|
|
device sdtemp: sysmon_envsys
|
2009-05-09 19:04:25 +04:00
|
|
|
attach sdtemp at iic
|
|
|
|
file dev/i2c/sdtemp.c sdtemp
|
|
|
|
|
2013-09-06 04:56:12 +04:00
|
|
|
# DS1672 Real Time Clock
|
|
|
|
device ds1672rtc
|
|
|
|
attach ds1672rtc at iic
|
|
|
|
file dev/i2c/ds1672.c ds1672rtc
|
|
|
|
|
2008-10-29 20:26:56 +03:00
|
|
|
# ADM1021
|
2008-10-30 15:52:46 +03:00
|
|
|
device admtemp: sysmon_envsys
|
2008-10-29 20:26:56 +03:00
|
|
|
attach admtemp at iic
|
|
|
|
file dev/i2c/adm1021.c admtemp
|
2010-02-22 06:50:56 +03:00
|
|
|
|
2015-12-16 10:56:48 +03:00
|
|
|
# ADM1026 hardware monitor
|
|
|
|
device adm1026hm: sysmon_envsys
|
|
|
|
attach adm1026hm at iic
|
|
|
|
file dev/i2c/adm1026.c adm1026hm
|
|
|
|
|
2010-02-22 06:50:56 +03:00
|
|
|
# SMSC LPC47M192 hardware monitor
|
|
|
|
device smscmon: sysmon_envsys
|
|
|
|
attach smscmon at iic
|
|
|
|
file dev/i2c/smscmon.c smscmon
|
2010-10-02 10:07:37 +04:00
|
|
|
|
|
|
|
# G760a FAN controller
|
|
|
|
device g760a: sysmon_envsys
|
|
|
|
attach g760a at iic
|
|
|
|
file dev/i2c/g760a.c g760a
|
2011-02-14 11:50:38 +03:00
|
|
|
|
|
|
|
# IBM Hawk Integrated Systems Management Processor
|
|
|
|
device ibmhawk: sysmon_envsys
|
|
|
|
attach ibmhawk at iic
|
|
|
|
file dev/i2c/ibmhawk.c ibmhawk
|
2012-12-31 17:26:42 +04:00
|
|
|
|
|
|
|
# TI TPS65950 OMAP Power Management and System Companion Device
|
2012-12-31 23:47:27 +04:00
|
|
|
device tps65950pm: sysmon_wdog
|
2012-12-31 17:26:42 +04:00
|
|
|
attach tps65950pm at iic
|
|
|
|
file dev/i2c/tps65950.c tps65950pm
|
2013-04-26 00:55:34 +04:00
|
|
|
|
|
|
|
# TI TPS65217
|
|
|
|
device tps65217pmic: sysmon_envsys
|
|
|
|
attach tps65217pmic at iic
|
2016-07-03 14:40:58 +03:00
|
|
|
file dev/i2c/tps65217pmic.c tps65217pmic needs-flag
|
2013-04-26 00:55:34 +04:00
|
|
|
|
2013-05-07 02:04:12 +04:00
|
|
|
# Microchip MCP980x
|
|
|
|
device mcp980x: sysmon_envsys
|
|
|
|
attach mcp980x at iic
|
|
|
|
file dev/i2c/mcp980x.c mcp980x
|
|
|
|
|
2013-08-06 19:58:25 +04:00
|
|
|
# Nuvoton W83795G/ADG Hardware Monitor
|
|
|
|
device w83795g: gpiobus, sysmon_envsys, sysmon_wdog
|
|
|
|
attach w83795g at iic
|
|
|
|
file dev/i2c/w83795g.c w83795g
|
2013-09-08 18:59:42 +04:00
|
|
|
|
|
|
|
# Freescale MPL115A2
|
|
|
|
device mpl115a: sysmon_envsys
|
|
|
|
attach mpl115a at iic
|
|
|
|
file dev/i2c/mpl115a.c mpl115a
|
|
|
|
|
2014-09-10 02:47:33 +04:00
|
|
|
# AXP20x Power Management Unit
|
2017-10-07 21:22:06 +03:00
|
|
|
device axp20x { }: sysmon_envsys
|
|
|
|
device axp20xreg: axp20x
|
2014-09-10 02:47:33 +04:00
|
|
|
attach axp20x at iic
|
2017-10-07 21:22:06 +03:00
|
|
|
attach axp20xreg at axp20x
|
2015-10-21 12:03:13 +03:00
|
|
|
file dev/i2c/axp20x.c axp20x needs-flag
|
2014-10-13 03:58:42 +04:00
|
|
|
|
|
|
|
# AXP22x Power Management Unit
|
|
|
|
device axp22x: sysmon_envsys
|
|
|
|
attach axp22x at iic
|
|
|
|
file dev/i2c/axp22x.c axp22x
|
2014-12-07 03:33:26 +03:00
|
|
|
|
|
|
|
# AXP806 Power Management Unit
|
|
|
|
device axp806pm
|
|
|
|
attach axp806pm at iic
|
|
|
|
file dev/i2c/axp806.c axp806pm needs-flag
|
|
|
|
|
|
|
|
# AXP809 Power Management Unit
|
|
|
|
device axp809pm
|
|
|
|
attach axp809pm at iic
|
|
|
|
file dev/i2c/axp809.c axp809pm needs-flag
|
2014-12-07 17:24:11 +03:00
|
|
|
|
|
|
|
# AC100 integrated audio codec and RTC
|
|
|
|
device ac100ic
|
|
|
|
attach ac100ic at iic
|
|
|
|
file dev/i2c/ac100.c ac100ic needs-flag
|
2015-01-01 20:33:18 +03:00
|
|
|
|
|
|
|
# ACT8846 Power Management Unit
|
|
|
|
device act8846pm
|
|
|
|
attach act8846pm at iic
|
|
|
|
file dev/i2c/act8846.c act8846pm needs-flag
|
2015-05-12 23:54:08 +03:00
|
|
|
|
|
|
|
# Texas Instruments TMP451 Temperature Sensor
|
|
|
|
device titemp: sysmon_envsys
|
|
|
|
attach titemp at iic
|
|
|
|
file dev/i2c/titemp.c titemp
|
2015-11-11 15:35:22 +03:00
|
|
|
|
|
|
|
# AMS AS3722 Power Management IC
|
2017-04-23 00:48:56 +03:00
|
|
|
device as3722pmic { }: sysmon_wdog
|
|
|
|
device as3722reg: as3722pmic
|
2015-11-11 15:35:22 +03:00
|
|
|
attach as3722pmic at iic
|
2017-04-23 00:48:56 +03:00
|
|
|
attach as3722reg at as3722pmic
|
2015-11-11 15:35:22 +03:00
|
|
|
file dev/i2c/as3722.c as3722pmic needs-flag
|
2017-08-27 00:02:35 +03:00
|
|
|
|
|
|
|
# Texas Instruments TCA8418 Keypad Scan IC
|
2017-08-31 22:55:43 +03:00
|
|
|
device tcakp: wskbddev, linux_keymap
|
2017-08-27 00:02:35 +03:00
|
|
|
attach tcakp at iic
|
|
|
|
file dev/i2c/tcakp.c tcakp
|
2017-09-22 21:12:31 +03:00
|
|
|
|
|
|
|
# MAXIM MAX77620 Power Management IC
|
|
|
|
device max77620pmic
|
|
|
|
attach max77620pmic at iic
|
|
|
|
file dev/i2c/max77620.c max77620pmic
|
|
|
|
|
|
|
|
# Texas Instruments TCA9539 I/O Expander
|
|
|
|
device tcagpio
|
|
|
|
attach tcagpio at iic
|
|
|
|
file dev/i2c/tcagpio.c tcagpio
|
2017-10-03 01:48:02 +03:00
|
|
|
|
2017-12-29 02:23:47 +03:00
|
|
|
# Silicon Lab SI7013/SI7020/SI7021 Temperature and Humidity sensor
|
|
|
|
device si70xxtemp
|
|
|
|
attach si70xxtemp at iic
|
|
|
|
file dev/i2c/si70xx.c si70xxtemp
|
|
|
|
|
|
|
|
# Aosong AM2315 Temperature and Humidity sensor
|
|
|
|
device am2315temp
|
|
|
|
attach am2315temp at iic
|
|
|
|
file dev/i2c/am2315.c am2315temp
|
|
|
|
|
2017-10-03 01:48:02 +03:00
|
|
|
# Silergy SY8106A regulator
|
|
|
|
device sy8106a
|
|
|
|
attach sy8106a at iic
|
|
|
|
file dev/i2c/sy8106a.c sy8106a
|
2017-12-10 20:05:54 +03:00
|
|
|
|
2018-02-02 00:44:17 +03:00
|
|
|
# Maxim DS1631 High-Precision Digital Thermometer and Thermostat
|
|
|
|
device dstemp: sysmon_envsys
|
|
|
|
attach dstemp at iic
|
|
|
|
file dev/i2c/dstemp.c dstemp
|
|
|
|
|
2018-01-05 06:07:15 +03:00
|
|
|
# EM3027 Real Time Clock and Temperature Sensor
|
|
|
|
device em3027rtc: sysmon_envsys
|
|
|
|
attach em3027rtc at iic
|
|
|
|
file dev/i2c/em3027.c em3027rtc
|
|
|
|
|
2018-03-09 02:25:56 +03:00
|
|
|
# Apple Fan Control Unit found in some G5
|
|
|
|
device fcu: sysmon_envsys
|
|
|
|
attach fcu at iic
|
|
|
|
file dev/i2c/fcu.c fcu
|
|
|
|
|
2018-03-09 23:16:54 +03:00
|
|
|
# Analog Devices AD7417 thermometer and ADC
|
|
|
|
device adadc: sysmon_envsys
|
|
|
|
attach adadc at iic
|
|
|
|
file dev/i2c/adadc.c adadc
|
|
|
|
|
2017-12-10 20:05:54 +03:00
|
|
|
# HID over i2c
|
|
|
|
# HID "bus"
|
|
|
|
define ihidbus {[ reportid = -1 ]}
|
|
|
|
|
|
|
|
# HID root device for multiple report IDs
|
|
|
|
device ihidev: hid, ihidbus
|
|
|
|
attach ihidev at iic
|
|
|
|
file dev/i2c/ihidev.c ihidev
|
|
|
|
|
|
|
|
#HID mice
|
|
|
|
device ims: hid, hidms, wsmousedev
|
|
|
|
attach ims at ihidbus
|
|
|
|
file dev/i2c/ims.c ims
|
|
|
|
|
|
|
|
#HID multitouch
|
|
|
|
device imt: hid, hidmt, wsmousedev
|
|
|
|
attach imt at ihidbus
|
|
|
|
file dev/i2c/imt.c imt
|