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 'staging-5.1-rc1' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/gregkh/staging Pull staging/IIO updates from Greg KH: "Here is the big staging/iio driver pull request for 5.1-rc1. Lots of good IIO driver updates and cleanups in here as always. Combined with the removal of the xgifb driver, we have a net "loss" of over 9000 lines in the pull request, always a nice thing. As the outreachy application process is currently happening, there are loads of tiny checkpatch cleanup fixes all over the staging tree, which accounts for the majority of the fixups" * tag 'staging-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (341 commits) staging: mt7621-dma: remove license boilerplate text staging: mt7621-dma: add SPDX GPL-2.0+ license identifier Staging: ks7010: Replace typecast to int Staging: vt6655: Align a static function declaration staging: speakup: fix line over 80 characters. staging: mt7621-eth: Remove license boilerplate text staging: mt7621-eth: Add SPDX license identifier staging: ks7010: removed custom Michael MIC implementation. staging: rtl8192e: Fix space and suspect issue Staging: vt6655: Modify comment style of SPDX License Identifier Staging: vt6655: Modify comment style for SPDX-License-Identifier Staging: vt6655: Align a function declaration Staging: vt6655: Alignment of function declaration staging: rtl8712: Fix indentation issue staging: wilc1000: fix incorrent type in initializer staging: rtl8188eu: remove unused P2P_PRIVATE_IOCTL_SET_LEN staging: rtl8188eu: remove unused enum P2P_PROTO_WK_ID staging: rtl8723bs: Remove duplicated include from drv_types.h Staging: vt6655: Alignment should match open parenthesis staging: erofs: fix mis-acted TAIL merging behavior ...
- Loading branch information
Showing
335 changed files
with
9,603 additions
and
18,624 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/start_cleaning | ||
Date: December 2018 | ||
KernelVersion: 4.22 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Writing 1 starts sensor self cleaning. Internal fan accelerates | ||
to its maximum speed and keeps spinning for about 10 seconds in | ||
order to blow out accumulated dust. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/cleaning_period | ||
Date: January 2019 | ||
KernelVersion: 5.1 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Sensor is capable of triggering self cleaning periodically. | ||
Period can be changed by writing a new value here. Upon reading | ||
the current one is returned. Units are seconds. | ||
|
||
Writing 0 disables periodical self cleaning entirely. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/cleaning_period_available | ||
Date: January 2019 | ||
KernelVersion: 5.1 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
The range of available values in seconds represented as the | ||
minimum value, the step and the maximum value, all enclosed in | ||
square brackets. |
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,65 @@ | ||
Analog Devices AD7606 Simultaneous Sampling ADC | ||
|
||
Required properties for the AD7606: | ||
|
||
- compatible: Must be one of | ||
* "adi,ad7605-4" | ||
* "adi,ad7606-8" | ||
* "adi,ad7606-6" | ||
* "adi,ad7606-4" | ||
- reg: SPI chip select number for the device | ||
- spi-max-frequency: Max SPI frequency to use | ||
see: Documentation/devicetree/bindings/spi/spi-bus.txt | ||
- spi-cpha: See Documentation/devicetree/bindings/spi/spi-bus.txt | ||
- avcc-supply: phandle to the Avcc power supply | ||
- interrupts: IRQ line for the ADC | ||
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
- adi,conversion-start-gpios: must be the device tree identifier of the CONVST pin. | ||
This logic input is used to initiate conversions on the analog | ||
input channels. As the line is active high, it should be marked | ||
GPIO_ACTIVE_HIGH. | ||
|
||
Optional properties: | ||
|
||
- reset-gpios: must be the device tree identifier of the RESET pin. If specified, | ||
it will be asserted during driver probe. As the line is active high, | ||
it should be marked GPIO_ACTIVE_HIGH. | ||
- standby-gpios: must be the device tree identifier of the STBY pin. This pin is used | ||
to place the AD7606 into one of two power-down modes, Standby mode or | ||
Shutdown mode. As the line is active low, it should be marked | ||
GPIO_ACTIVE_LOW. | ||
- adi,first-data-gpios: must be the device tree identifier of the FRSTDATA pin. | ||
The FRSTDATA output indicates when the first channel, V1, is | ||
being read back on either the parallel, byte or serial interface. | ||
As the line is active high, it should be marked GPIO_ACTIVE_HIGH. | ||
- adi,range-gpios: must be the device tree identifier of the RANGE pin. The polarity on | ||
this pin determines the input range of the analog input channels. If | ||
this pin is tied to a logic high, the analog input range is ±10V for | ||
all channels. If this pin is tied to a logic low, the analog input range | ||
is ±5V for all channels. As the line is active high, it should be marked | ||
GPIO_ACTIVE_HIGH. | ||
- adi,oversampling-ratio-gpios: must be the device tree identifier of the over-sampling | ||
mode pins. As the line is active high, it should be marked | ||
GPIO_ACTIVE_HIGH. | ||
|
||
Example: | ||
|
||
adc@0 { | ||
compatible = "adi,ad7606-8"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
spi-cpol; | ||
|
||
avcc-supply = <&adc_vref>; | ||
|
||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>; | ||
interrupt-parent = <&gpio>; | ||
|
||
adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; | ||
reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; | ||
adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; | ||
adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH | ||
&gpio 23 GPIO_ACTIVE_HIGH | ||
&gpio 26 GPIO_ACTIVE_HIGH>; | ||
standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>; | ||
}; |
41 changes: 41 additions & 0 deletions
41
Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.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,41 @@ | ||
Analog Devices AD7768-1 ADC device driver | ||
|
||
Required properties for the AD7768-1: | ||
|
||
- compatible: Must be "adi,ad7768-1" | ||
- reg: SPI chip select number for the device | ||
- spi-max-frequency: Max SPI frequency to use | ||
see: Documentation/devicetree/bindings/spi/spi-bus.txt | ||
- clocks: phandle to the master clock (mclk) | ||
see: Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
- clock-names: Must be "mclk". | ||
- interrupts: IRQ line for the ADC | ||
see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
- vref-supply: vref supply can be used as reference for conversion | ||
- adi,sync-in-gpios: must be the device tree identifier of the SYNC-IN pin. Enables | ||
synchronization of multiple devices that require simultaneous sampling. | ||
A pulse is always required if the configuration is changed in any way, for example | ||
if the filter decimation rate changes. As the line is active low, it should | ||
be marked GPIO_ACTIVE_LOW. | ||
|
||
Optional properties: | ||
|
||
- reset-gpios : GPIO spec for the RESET pin. If specified, it will be asserted during | ||
driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW. | ||
|
||
Example: | ||
|
||
adc@0 { | ||
compatible = "adi,ad7768-1"; | ||
reg = <0>; | ||
spi-max-frequency = <2000000>; | ||
spi-cpol; | ||
spi-cpha; | ||
vref-supply = <&adc_vref>; | ||
interrupts = <25 IRQ_TYPE_EDGE_RISING>; | ||
interrupt-parent = <&gpio>; | ||
adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>; | ||
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>; | ||
clocks = <&ad7768_mclk>; | ||
clock-names = "mclk"; | ||
}; |
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,48 @@ | ||
* Ingenic JZ47xx ADC controller IIO bindings | ||
|
||
Required properties: | ||
|
||
- compatible: Should be one of: | ||
* ingenic,jz4725b-adc | ||
* ingenic,jz4740-adc | ||
- reg: ADC controller registers location and length. | ||
- clocks: phandle to the SoC's ADC clock. | ||
- clock-names: Must be set to "adc". | ||
- #io-channel-cells: Must be set to <1> to indicate channels are selected | ||
by index. | ||
|
||
ADC clients must use the format described in iio-bindings.txt, giving | ||
a phandle and IIO specifier pair ("io-channels") to the ADC controller. | ||
|
||
Example: | ||
|
||
#include <dt-bindings/iio/adc/ingenic,adc.h> | ||
|
||
adc: adc@10070000 { | ||
compatible = "ingenic,jz4740-adc"; | ||
#io-channel-cells = <1>; | ||
|
||
reg = <0x10070000 0x30>; | ||
|
||
clocks = <&cgu JZ4740_CLK_ADC>; | ||
clock-names = "adc"; | ||
|
||
interrupt-parent = <&intc>; | ||
interrupts = <18>; | ||
}; | ||
|
||
adc-keys { | ||
... | ||
compatible = "adc-keys"; | ||
io-channels = <&adc INGENIC_ADC_AUX>; | ||
io-channel-names = "buttons"; | ||
... | ||
}; | ||
|
||
battery { | ||
... | ||
compatible = "ingenic,jz4740-battery"; | ||
io-channels = <&adc INGENIC_ADC_BATTERY>; | ||
io-channel-names = "battery"; | ||
... | ||
}; |
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
Documentation/devicetree/bindings/iio/adc/nuvoton,npcm-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,24 @@ | ||
Nuvoton NPCM Analog to Digital Converter (ADC) | ||
|
||
The NPCM ADC is a 10-bit converter for eight channel inputs. | ||
|
||
Required properties: | ||
- compatible: "nuvoton,npcm750-adc" for the NPCM7XX BMC. | ||
- reg: specifies physical base address and size of the registers. | ||
- interrupts: Contain the ADC interrupt with flags for falling edge. | ||
|
||
Optional properties: | ||
- clocks: phandle of ADC reference clock, in case the clock is not | ||
added the ADC will use the default ADC sample rate. | ||
- vref-supply: The regulator supply ADC reference voltage, in case the | ||
vref-supply is not added the ADC will use internal voltage | ||
reference. | ||
|
||
Example: | ||
|
||
adc: adc@f000c000 { | ||
compatible = "nuvoton,npcm750-adc"; | ||
reg = <0xf000c000 0x8>; | ||
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk NPCM7XX_CLK_ADC>; | ||
}; |
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
25 changes: 25 additions & 0 deletions
25
Documentation/devicetree/bindings/iio/adc/ti-ads124s08.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,25 @@ | ||
* Texas Instruments' ads124s08 and ads124s06 ADC chip | ||
|
||
Required properties: | ||
- compatible : | ||
"ti,ads124s08" | ||
"ti,ads124s06" | ||
- reg : spi chip select number for the device | ||
|
||
Recommended properties: | ||
- spi-max-frequency : Definition as per | ||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
- spi-cpha : Definition as per | ||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Optional properties: | ||
- reset-gpios : GPIO pin used to reset the device. | ||
|
||
Example: | ||
adc@0 { | ||
compatible = "ti,ads124s08"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
spi-cpha; | ||
reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; | ||
}; |
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,11 @@ | ||
Bosch Sensortec BME680 pressure/temperature/humidity/voc sensors | ||
|
||
Required properties: | ||
- compatible: must be "bosch,bme680" | ||
|
||
Example: | ||
|
||
bme680@76 { | ||
compatible = "bosch,bme680"; | ||
reg = <0x76>; | ||
}; |
20 changes: 20 additions & 0 deletions
20
Documentation/devicetree/bindings/iio/chemical/plantower,pms7003.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,20 @@ | ||
* Plantower PMS7003 particulate matter sensor | ||
|
||
Required properties: | ||
- compatible: must be "plantower,pms7003" | ||
- vcc-supply: phandle to the regulator that provides power to the sensor | ||
|
||
Optional properties: | ||
- plantower,set-gpios: phandle to the GPIO connected to the SET line | ||
- reset-gpios: phandle to the GPIO connected to the RESET line | ||
|
||
Refer to serial/slave-device.txt for generic serial attached device bindings. | ||
|
||
Example: | ||
|
||
&uart0 { | ||
air-pollution-sensor { | ||
compatible = "plantower,pms7003"; | ||
vcc-supply = <®_vcc5v0>; | ||
}; | ||
}; |
15 changes: 15 additions & 0 deletions
15
Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.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,15 @@ | ||
* Sensirion SGP30/SGPC3 multi-pixel Gas Sensor | ||
|
||
Required properties: | ||
|
||
- compatible: must be one of | ||
"sensirion,sgp30" | ||
"sensirion,sgpc3" | ||
- reg: the I2C address of the sensor | ||
|
||
Example: | ||
|
||
gas@58 { | ||
compatible = "sensirion,sgp30"; | ||
reg = <0x58>; | ||
}; |
12 changes: 12 additions & 0 deletions
12
Documentation/devicetree/bindings/iio/chemical/sensirion,sps30.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,12 @@ | ||
* Sensirion SPS30 particulate matter sensor | ||
|
||
Required properties: | ||
- compatible: must be "sensirion,sps30" | ||
- reg: the I2C address of the sensor | ||
|
||
Example: | ||
|
||
sps30@69 { | ||
compatible = "sensirion,sps30"; | ||
reg = <0x69>; | ||
}; |
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 @@ | ||
* Texas Instruments Dual, 12-Bit Serial Input Digital-to-Analog Converter | ||
|
||
The DAC7612 is a dual, 12-bit digital-to-analog converter (DAC) with guaranteed | ||
12-bit monotonicity performance over the industrial temperature range. | ||
Is is programmable through an SPI interface. | ||
|
||
The internal DACs are loaded when the LOADDACS pin is pulled down. | ||
|
||
http://www.ti.com/lit/ds/sbas106/sbas106.pdf | ||
|
||
Required Properties: | ||
- compatible: Should be one of: | ||
"ti,dac7612" | ||
"ti,dac7612u" | ||
"ti,dac7612ub" | ||
- reg: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Optional Properties: | ||
- ti,loaddacs-gpios: GPIO descriptor for the LOADDACS pin. | ||
- spi-*: Definition as per Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Example: | ||
|
||
dac@1 { | ||
compatible = "ti,dac7612"; | ||
reg = <0x1>; | ||
ti,loaddacs-gpios = <&msmgpio 25 GPIO_ACTIVE_LOW>; | ||
}; |
Oops, something went wrong.