forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'iio-for-4.6a' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/jic23/iio into staging-next Jonathan writes: First round of new IIO device support, features and cleanups for the 4.6 cycle. Device Support * ad5761 - new driver * at91_sama5d2 ADC. - new driver and MAINTAINERS entry. - minor cleanups followed. * atlas pH-SM - new driver (this has possibly the prettiest data sheet I've ever seen) * mcp3422 - mcp3425 ADC added. * mcp4725 - mcp4726 DAC added. * mma8452 - mma8451q accelerometer added. * mpl115 - mpl115a1 added (a lot bigger than it seems as this is an SPI part whereas previous parts were i2c). * si7005 - Hoperf th02 (seems to be a repackaged part) * si7020 - Hoperf th06 (seems to be a repackaged part) New features * Core - IIO_PH type. Does what it says on the tin. * max30100 - LED current configuration support. * mcp320x - more differential measurement combinations. * mma8452 - free fall deteciton - opt3001 - enable operation without a IRQ line. - device tree docs. Somehow the original docs have disappeared down a rabbit hole, so here is a new set. * st-sensors - Support active-low interrupts. Cleanups and minor / not so minor reworks * Documentation - drop some defunct ABI from the docs in staging. * presure / Kconfig - white space cleanup. * ad7150 - BIT macro usage - Alignment fixes * ad7192 - false indent fixed. * ak8975 - constify the ak_def structures * axp288 - drop a redundant double const. * dht11 - substantial reliability improvements by being more tolerant of missing start bits. - simplify the decoding algorithm * mma8452 - whitespace cleanup * mpl115 - don't bother setting i2c_client_data as nothing uses it. * mpu6050 - drop unused function parameter. * opt3001 - extract integration time as constants. - trivial refactoring.
- Loading branch information
Showing
53 changed files
with
2,531 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -497,7 +497,9 @@ Description: | |
6kohm_to_gnd: connected to ground via a 6kOhm resistor, | ||
20kohm_to_gnd: connected to ground via a 20kOhm resistor, | ||
100kohm_to_gnd: connected to ground via an 100kOhm resistor, | ||
125kohm_to_gnd: connected to ground via an 125kOhm resistor, | ||
500kohm_to_gnd: connected to ground via a 500kOhm resistor, | ||
640kohm_to_gnd: connected to ground via a 640kOhm resistor, | ||
three_state: left floating. | ||
For a list of available output power down options read | ||
outX_powerdown_mode_available. If Y is not present the | ||
|
@@ -1491,3 +1493,10 @@ Description: | |
This ABI is especially applicable for humidity sensors | ||
to heatup the device and get rid of any condensation | ||
in some humidity environment | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_ph_raw | ||
KernelVersion: 4.5 | ||
Contact: [email protected] | ||
Description: | ||
Raw (unscaled no offset etc.) pH reading of a substance as a negative | ||
base-10 logarithm of hydrodium ions in a litre of water. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
* AT91 SAMA5D2 Analog to Digital Converter (ADC) | ||
|
||
Required properties: | ||
- compatible: Should be "atmel,sama5d2-adc". | ||
- reg: Should contain ADC registers location and length. | ||
- interrupts: Should contain the IRQ line for the ADC. | ||
- clocks: phandle to device clock. | ||
- clock-names: Must be "adc_clk". | ||
- vref-supply: Supply used as reference for conversions. | ||
- vddana-supply: Supply for the adc device. | ||
- atmel,min-sample-rate-hz: Minimum sampling rate, it depends on SoC. | ||
- atmel,max-sample-rate-hz: Maximum sampling rate, it depends on SoC. | ||
- atmel,startup-time-ms: Startup time expressed in ms, it depends on SoC. | ||
|
||
Example: | ||
|
||
adc: adc@fc030000 { | ||
compatible = "atmel,sama5d2-adc"; | ||
reg = <0xfc030000 0x100>; | ||
interrupts = <40 IRQ_TYPE_LEVEL_HIGH 7>; | ||
clocks = <&adc_clk>; | ||
clock-names = "adc_clk"; | ||
atmel,min-sample-rate-hz = <200000>; | ||
atmel,max-sample-rate-hz = <20000000>; | ||
atmel,startup-time-ms = <4>; | ||
vddana-supply = <&vdd_3v3_lp_reg>; | ||
vref-supply = <&vdd_3v3_lp_reg>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Documentation/devicetree/bindings/iio/chemical/atlas,ph-sm.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
* Atlas Scientific pH-SM OEM sensor | ||
|
||
http://www.atlas-scientific.com/_files/_datasheets/_oem/pH_oem_datasheet.pdf | ||
|
||
Required properties: | ||
|
||
- compatible: must be "atlas,ph-sm" | ||
- reg: the I2C address of the sensor | ||
- interrupt-parent: should be the phandle for the interrupt controller | ||
- interrupts: the sole interrupt generated by the device | ||
|
||
Refer to interrupt-controller/interrupts.txt for generic interrupt client | ||
node bindings. | ||
|
||
Example: | ||
|
||
atlas@65 { | ||
compatible = "atlas,ph-sm"; | ||
reg = <0x65>; | ||
interrupt-parent = <&gpio1>; | ||
interrupts = <16 2>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
* Texas Instruments OPT3001 Ambient Light Sensor | ||
|
||
The driver supports interrupt-driven and interrupt-less operation, depending | ||
on whether an interrupt property has been populated into the DT. Note that | ||
the optional generation of IIO events on rising/falling light threshold changes | ||
requires the use of interrupts. Without interrupts, only the simple reading | ||
of the current light value is supported through the IIO API. | ||
|
||
http://www.ti.com/product/opt3001 | ||
|
||
Required properties: | ||
- compatible: should be "ti,opt3001" | ||
- reg: the I2C address of the sensor | ||
|
||
Optional properties: | ||
- interrupt-parent: should be the phandle for the interrupt controller | ||
- interrupts: interrupt mapping for GPIO IRQ (configure for falling edge) | ||
|
||
Example: | ||
|
||
opt3001@44 { | ||
compatible = "ti,opt3001"; | ||
reg = <0x44>; | ||
interrupt-parent = <&gpio1>; | ||
interrupts = <28 IRQ_TYPE_EDGE_FALLING>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1945,6 +1945,12 @@ M: Nicolas Ferre <[email protected]> | |
S: Supported | ||
F: drivers/tty/serial/atmel_serial.c | ||
|
||
ATMEL SAMA5D2 ADC DRIVER | ||
M: Ludovic Desroches <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: drivers/iio/adc/at91-sama5d2_adc.c | ||
|
||
ATMEL Audio ALSA driver | ||
M: Nicolas Ferre <[email protected]> | ||
L: [email protected] (moderated for non-subscribers) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.