freebsd-nq/sys/dev/iicbus
Emmanuel Vadot 30068a1de9 Add support for interrupts, sensors and GPIO for AXP209 PMIC.
Pressing the PEK (power enable key) will shutdown the board.
Some events are reported to devd via system "PMU" and subsystem
"Battery", "AC" and "USB" such as connected/disconnected.
Some sensors values (power source voltage/current) are reported via
sysctl (dev.axp209_pmu.X.)
It also expose a gpioc node usable in kernel and userland. Only 3 of
the 4 GPIO are exposed (The GPIO3 is different and mostly unused on
boards). Most popular boards uses GPIO1 as a sense pin for OTG power.
Add a dtsi file that adds gpio-controller capability to the device as
upstream doesn't defined it and include it in our custom DTS.

Reviewed by:	jmcneill
Approved by:	cognet (mentor)
Differential Revision:	https://reviews.freebsd.org/D6135
2016-05-26 21:09:07 +00:00
..
twsi Add support for interrupts, sensors and GPIO for AXP209 PMIC. 2016-05-26 21:09:07 +00:00
ad7417.c
ad7418.c
adm1030.c
adt746x.c Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:06:38 +00:00
ds133x.c
ds1307.c
ds1307reg.h
ds1374.c
ds1631.c
ds1672.c
ds1775.c
ds3231.c
ds3231reg.h Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
icee.c
if_ic.c
iic.c iic_rdwr_data->nmsgs is uint32_t, so limit the allowable number of messages to prevent memory exhaustion and short allocations on 32-bit systems. Since iicrdwr is intended to be a workalike of a Linux i2c-dev call, use the same limit of 42 that Linux uses. 2016-05-20 03:03:04 +00:00
iic.h iic_rdwr_data->nmsgs is uint32_t, so limit the allowable number of messages to prevent memory exhaustion and short allocations on 32-bit systems. Since iicrdwr is intended to be a workalike of a Linux i2c-dev call, use the same limit of 42 that Linux uses. 2016-05-20 03:03:04 +00:00
iicbb_if.m Remove a couple of extra blank lines. 2016-05-22 04:09:05 +00:00
iicbb.c
iicbus_if.m
iicbus.c
iicbus.h
iicoc.c
iicoc.h
iiconf.c Remove a couple of extra blank lines. 2016-05-22 04:09:05 +00:00
iiconf.h
iicsmb.c
lm75.c Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
max6690.c
ofw_iicbus.c Move the OFW iicbus code to dev/iicbus to stop polluting dev/ofw with 2016-05-24 01:33:49 +00:00
pcf8563.c
pcf8563reg.h
s35390a.c