summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't compare array against null pointer; found by clang.kettenis2016-09-241-3/+2
| | | | ok jca@, jcs@
* correct the size passed to free in iatp_write_regjsg2016-09-041-2/+2
| | | | ok jcs@
* zaurus has been retiredguenther2016-09-031-317/+0
|
* add iatp(4), a driver for the i2c touchpad and touchscreen found onjcs2016-09-012-1/+929
| | | | the chromebook pixel
* I2C driver for the Maxim DS1307 Real Time Clock chip.mglocker2016-06-202-1/+301
| | | | | | | | | | | | The chip has been found on a Sun Fire V210 as a second RTC hooked up to the SMU. Setting the time there has the advantage that it remains after a boot since the internal V210 RTC will be synced by the DS1307 at boot time. Not linked to sparc64 yet since it will overwrite the internal RTC handler. ok deraadt
* Change the identification string to "nxp,pcf8523" as this is what is storedkettenis2016-05-201-2/+2
| | | | in the FDT.
* Attempt to clear the OS flag when we attach.kettenis2016-05-161-1/+7
|
* Add pcfrtc(4).kettenis2016-05-161-1/+6
|
* Driver for the NXP PCF8523 Real Time Clock.kettenis2016-05-161-0/+309
|
* If writing the control register fails, bail out without attaching any sensors.kettenis2016-05-121-1/+5
| | | | | From Marcus Glocker, who has an Apple G5 machine where an advertised sensor isn't there, and plodding on creates annoying dmesg spam.
* Print a meaningful interrupt string for i2c devices.kettenis2016-04-232-4/+6
|
* Fix layer violation in the ihidev(4) code by implementing a generic mechanismkettenis2016-04-102-23/+17
| | | | | | | | | | that allows the i2c controller implementation to establish interrupts on behalf of i2c slave device drivers. Use this mechanism in dwiic(4) to let it configure the right acpi interrupt (global or gpio). Change the level to IPL_TTY as this is the appropriate level to use for keyboards and other input devices. ok jsg@
* Add support for I2C HID devices with GPIO signalled interrupts.jsg2016-04-022-4/+14
| | | | | | Required for the keyboard and touchpad on the ideapad 100s. ok kettenis@
* remove old link to documentation, it's in ihidev.cjcs2016-01-311-4/+2
|
* use hid_desc fields since we have them, instead of manual offsetsjcs2016-01-291-34/+23
| | | | | | into hid_desc_buf tested by jsg
* add hidmt, a HID-layer driver for multitouch touchpads that conformjcs2016-01-202-1/+253
| | | | | | | | to the "Windows Precision Touchpad" standard. when a compatible device is found, hidmt claims all report ids and switches the device into multitouch packet mode. add imt, an i2c-HID driver that sits between ihidev and hidmt
* add the ability to set and get reportsjcs2016-01-202-88/+314
| | | | | | establish interrupt before probing for devices to handle each report id sign an int, found by jsg
* Several fixes for dwiic(4).kettenis2016-01-141-10/+10
| | | | | | | | | | | | | * Properly map bus space; using BUS_SPACE_MAP_PREFATCHABLE is not agood idea as it may lead to reordering or merging of register writes in the store buffer. * Properly implement the iic(4) operations in dwiic_i2c_exec(). * Keep timings set up by the firmware if the SSCN and FMCN methods aren't available. ok jcs@
* Use I2C_F_POLL flag when acquiring and releasing the i2c bus in thekettenis2016-01-141-6/+9
| | | | | | interrupt handler. ok jcs@
* When iterating over the report IDs to calculate the maximum size, takekettenis2016-01-141-16/+14
| | | | | | | | into account the 2 bytes needed to store the length. Also make sure that we have at least wMaxInputLength bytes available for reading input reports. ok jcs@
* Driver for HID-over-i2c keyboards.kettenis2016-01-142-1/+178
|
* fix hid packet length calculationjcs2016-01-131-4/+4
| | | | noticed by jsg
* Don't confuse the HID descriptor address (which really is an office into thekettenis2016-01-132-4/+6
| | | | | | | | | register space of the i2c device) with the i2c address. For i2c busses enumerated by ACPI we get the address from the I2C Serial Bus Connection Resource Descriptor returned by the _CRS methide of the i2c device. Pass the HID descriptor address in the ia_size member. ok jcs@
* rename new i2c_attach_args fields to avoid conflict with cpp magic inderaadt2016-01-122-7/+7
| | | | | isavar.h (a few parts of the tree include both) ok jcs
* Add dwiic, a driver for the Synopsys DesignWare i2c controller foundjcs2016-01-125-2/+894
| | | | | | | | | | | | | on the Samsung ATIV Book 9 laptop. This initial version only supports ACPI config/attachment. Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic handles attaching ihidev devices found in ACPI. Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor and button functionality from HID-compliant i2c trackpads. ok kettenis deraadt
* Acquire/release the i2c bus before/after reading the temperature register.kettenis2015-05-301-3/+4
| | | | | | | Prevents concurrent access to the smu(4) microcontroller on Apple G5 machines, which would result in errors reading the RTC. ok deraadt@, mpi@
* Revert unrelated changes in previous.uebayasi2015-05-291-3/+1
|
* Initial addition of ``Patrol Read'' support in bio(4), biocto(8), anduebayasi2015-05-291-1/+3
| | | | | | mfi(4). Based on FreeBSD, but done without mfiutil(8). OK deraadt@
* Remove some includes include-what-you-use claims don'tjsg2015-03-144-9/+4
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* add some more sdtemp devicesjsg2014-11-142-2/+12
|
* Do not compile sensor code if option SMALL_KERNELmiod2014-10-121-1/+9
|
* add some more sdtemp devicesjsg2014-09-272-3/+63
| | | | ok deraadt@
* Don't mask off revision bits for tests against a fulljsg2014-09-261-3/+3
| | | | | | | device id/revision id value. Makes it possible for se98 and stts424 sensors to match. ok deraadt@
* Provide a forward declaration of struct device.kettenis2013-07-051-1/+3
| | | | ok deraadt@
* Implement support for "clock stretching" where a slave device pulls down SCLkettenis2013-04-201-1/+32
| | | | | | to slow down the master device. This makes the i2c bit-banging code work with slow slave device such as SDVO chips and DDC eeproms found on various graphics hardware supported by inteldrm(4). Mostly from NetBSD.
* Unbreak the build on amd64 by making sure that inteldrm pulls in the generickettenis2013-03-311-2/+2
| | | | | | | | i2c bit-banging code. Requires us to move around the i2c_bitbang define. Also move the onewire_bitbang define to be close to i2c_bitbang since they are similar. ok jsing@
* Detect the ts3000b3 and stts2002, and weaken the cat34ts02 model checkderaadt2011-10-072-10/+19
| | | | | since a similar device (not yet named as far as I can see) has showed up on the market. cat34ts02 tested by weerd.
* Calling a detach function from an attach function is no longer legal (deraadt2011-07-261-12/+2
| | | | | | | see a recent subr_autoconf.c commit). To resolve this problem, mark the other attachment dead, and clean it up when the first servicing timeout gets run. ok kettenis
* Enter nvt(4), a driver for the W83795G and W83795ADG hardware monitor.kettenis2011-07-032-1/+303
| | | | ok deraadt@, miod@
* The check for the mcp98243 sdtemp(4) device was too strict. Relax it.deraadt2011-05-261-2/+2
| | | | Tested by Joe Gidi
* Add support for detecting the NXP SA56004X (we have not actuallyderaadt2011-03-102-2/+12
| | | | | | seen it in the wild yet, but the detection seems easy). Few bugs spotted by kettenis. ok kettenis
* 3 more JEDEC JC-42.4 sensors are the marketderaadt2010-07-092-8/+23
|
* Detect Nuvoton W83795G.kettenis2010-03-221-1/+11
| | | | ok deraadt@
* Split existing spdmem@i2c code into bus-agnostic spd record decoding code,miod2010-03-223-844/+126
| | | | | and an i2c attachment. No functional change; ok jsg@ deraadt@
* correct id for 2nd type of stts424e02; from cnstderaadt2009-12-281-2/+2
|
* match() function was leaving the i2c bus locked; ok kettenisderaadt2009-10-051-3/+6
|
* Don't try to check for ECC with fbdimm as the offset exceedsjsg2009-09-131-4/+1
| | | | | | the number of bytes currently read into the sm_data array. Problem found by recent version of gcc.
* only pull in the source file if it is needed, so that all the othersderaadt2009-08-121-2/+3
| | | | | we use compile brilliant cnst, please learn to test better
* Mark sensor as invalid if the i2c transaction to read its value fails.kettenis2009-08-121-2/+5
| | | | ok deraadt@
* New lisa(4) driver for ST LIS331DL accelerometer in HP 2133 Mini-Note PC; ok deraadtcnst2009-08-123-2/+156
|