summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
AgeCommit message (Collapse)Author
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
the sysctl link sets are processed, and remove redundancy. Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate lines of code.
2014-01-09add three temperature sensors from ST.mlelstv
2014-01-08Fix whitespace issues.jakllsch
2014-01-08Add unused tps65217pmic_reg_write() function.jakllsch
2013-12-31Remove unused variable.skrll
OK rkujawa
2013-11-08fix an array bound error which was spotted by gcc 4.8nisimura
2013-11-04Add missing braces.jdc
Fix logic error - check the data read from the chip against 0xff.
2013-10-28Fix name of sysctl setup function.rkujawa
2013-10-26A fan reading of 0xff is also invalid (observed on AlphaServer DS20L).jdc
2013-10-25Add "i2c-at34c02" AT34C02 EEPROM. This is compatible with the AT24C02jdc
EEPROM, apart from software write protection (not supported in our driver).
2013-10-25Allow the EEPROM size to be specified in the kernel configuration byjdc
using flags. Add the flags values, and configuration examples to the manual page.
2013-10-18Remove extraneous printf().jdc
2013-10-17remove unused variablechristos
2013-10-15Add lmenv to the configuration framework.jdc
2013-10-15Add a driver for the LM81, LM87, and compatible iic hardware monitorsjdc
(lmenv). Ported from OpenBSD's lm87.c, revision 1.20.
2013-10-15Add forgotten register definitions for previous commit.rkujawa
2013-10-15Add sysctl knobs to set temperature limit and hysteresis. Reaching the limitrkujawa
causes alert line of the chip to be asserted. These limits could be tied to critical limit set in envsys, but it's more versatile to keep it as separate value.
2013-10-15Simplify sysctl handling.rkujawa
2013-10-15Clean up register read and write functions, add functions for 8-bit read andrkujawa
write (needed to access config register). Add sysctl knob to set resolution from user space.
2013-09-24Add a property "i2c-indirect-config" to allow/disallow i2c indirect config.jdc
If missing, "allowed" is assumed. Set it to false for OFW machines. Patch from martin@. Removes erroneous i2c probe messages that appeared with wildcard support.
2013-09-12Fix evil "sizeof(void*)" botchmartin
2013-09-12Remove unused variablemartin
2013-09-12Remove unused variablesmartin
2013-09-08Preliminary support for MPL115A2 pressure sensor. It works, but accurracy isrkujawa
awful. I should add presure as a new type of sensor to envsys at some point...
2013-09-06Make gttswi MI and usuable from non-Marvell SoCs.matt
(should rename to mvi2c but ...)
2013-08-07Allow i2c addr wildcard matching. Use with care!soren
2013-08-06Add driver for Nuvoton W83795G voltage/temp/fan/gpio monitoring device.soren
As used in the HP Microserver N36L/N40L/N54L: w83795g* at iic? addr 0x2f gpio* at gpiobus? Note that the gpio and watchdog functionality appears to be useless on the Microserver, as the gpio pins don't affect the LED's and a watchdog trigger does not cause a reset. Perhaps the reset pin just isn't wired. There are quite flexible fan control options as well as just monitoring, but it is not clear to me how best to export that function to userspace.
2013-08-04Monitor for power source changes and report with appropriate information inrkujawa
dmesg, a pmf event and sysmon_pswitch event.
2013-07-28Call iic_exec() with I2C_F_POLL. Don't sleep in probe/attach time.kiyohara
2013-07-22Use the standard i2c address to DIMM slot mapping to show the slot number.soren
2013-05-16Fix typo: s/300/500/ .rkujawa
2013-05-07Add WLED register defines.jakllsch
2013-05-06Add driver for Microchip MCP9800/1/2/3 temperature sensors.rkujawa
2013-04-28put the one out-of-order register info in its proper sequencejakllsch
2013-04-28remove trailing whitespacejakllsch
2013-04-26Add envsys(4) support to TPS65217 PMIC driver.rkujawa
2013-04-26Add sanity, flexibility and readability to TPS65217 driver. In preparation torkujawa
add envsys support.
2013-04-25Add minimal support for TPS65217 PMIC as found on BeagleBone. Next step is torkujawa
expose regulated voltages through envsys(4).
2013-02-08Handle direct configuration if ia->ia_name is set, using iic_compat_match().jdc
If ia->ia_name is set, display the name on attach. Display the size (if known) on attach. Move the iic_acquire_bus() and iic_release_bus() calls inside the read and write loops, to avoid holding the bus for the full duration of the read or write.
2013-02-03Also set ia.ia_size from size when doing direct config.jdc
2012-12-31add TPS65950 RTC supportjmcneill
2012-12-31add support for TPS65950 watchdog timerjmcneill
2012-12-31TI TPS65950 driver, right now about all it can do is control LEDsjmcneill
2012-10-27split device_t/softc for all remaining drivers.chs
replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
2012-09-12Initialize the sysctl(9) stuff before configuring the spd(4) devices.pgoyette
Otherwise, the devices do not create their own sysctl nodes!
2012-09-01pic16lcreg.h has been unused since removal of Xbox support, remove.jakllsch
2012-07-29Use const nodes. Let sysctl_createv initialize sysctl_data.mlelstv
2012-07-28Use (void *) instead of (type **) which gcc complains about.matt
2012-07-25Clean up error messages.matt
Tidy some logic.
2012-06-02Add some pre-processor magic to verify that the type of the data itemdsl
passed to sysctl_createv() actually matches the declared type for the item itself. In the places where the caller specifies a function and a structure address (typically the 'softc') an explicit (void *) cast is now needed. Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting AcpiGbl_EnableAmlDebugObject. (mostly passing the address of a uint64_t when typed as CTLTYPE_INT). I've test built quite a few kernels, but there may be some unfixed MD fallout. Most likely passing &char[] to char *. Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.