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-4.21-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/gregkh/staging Pull staging/IIO driver updates from Greg KH: "Here is the big staging and iio driver pull request for 4.21-rc1. Lots and lots of tiny patches here, nothing major at all. Which is good, tiny cleanups is nice to see. No new huge driver removal or addition, this release cycle, although there are lots of good IIO driver changes, addtions, and movement from staging into the "real" part of the kernel, which is always great. Full details are in the shortlog, and all of these have been in linux-next for a while with no reported issues" * tag 'staging-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (553 commits) staging: mt7621-mmc: Correct spelling mistakes in comments staging: wilc1000: fix missing read_write setting when reading data mt7621-mmc: char * array declaration might be better as static const mt7621-mmc: return statement in void function unnecessary mt7621-mmc: Alignment should match open parenthesis mt7621-mmc: Removed unnecessary blank lines mt7621-mmc: Fix some coding style issues staging: android: ashmem: doc: Fix spelling staging: rtl8188eu: cleanup brace coding style issues staging: rtl8188eu: add spaces around '&' in rtw_mlme_ext.c staging: rtl8188eu: change return type of is_basicrate() to bool staging: rtl8188eu: simplify null array initializations staging: rtl8188eu: change order of declarations to improve readability staging: rtl8188eu: make some arrays static in rtw_mlme_ext.c staging: rtl8188eu: constify some arrays staging: rtl8188eu: convert unsigned char arrays to u8 staging: rtl8188eu: remove redundant declaration in rtw_mlme_ext.c staging: rtl8188eu: remove unused arrays WFD_OUI and WMM_INFO_OUI staging: rtl8188eu: remove unnecessary parentheses in rtw_mlme_ext.c staging: rtl8188eu: remove unnecessary comments in rtw_mlme_ext.c ...
- Loading branch information
Showing
409 changed files
with
12,686 additions
and
11,291 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,16 @@ | ||
* Analog Devices AD7949/AD7682/AD7689 | ||
|
||
Required properties: | ||
- compatible: Should be one of | ||
* "adi,ad7949" | ||
* "adi,ad7682" | ||
* "adi,ad7689" | ||
- reg: spi chip select number for the device | ||
- vref-supply: The regulator supply for ADC reference voltage | ||
|
||
Example: | ||
adc@0 { | ||
compatible = "adi,ad7949"; | ||
reg = <0>; | ||
vref-supply = <&vdd_supply>; | ||
}; |
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,23 @@ | ||
Common ADCs properties | ||
|
||
Optional properties for child nodes: | ||
- bipolar : Boolean, if set the channel is used in bipolar mode. | ||
- diff-channels : Differential channels muxed for this ADC. The first value | ||
specifies the positive input pin, the second value the negative | ||
input pin. | ||
|
||
Example: | ||
adc@0 { | ||
compatible = "some,adc"; | ||
... | ||
channel@0 { | ||
bipolar; | ||
diff-channels = <0 1>; | ||
... | ||
}; | ||
|
||
channel@1 { | ||
diff-channels = <2 3>; | ||
... | ||
}; | ||
}; |
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,75 @@ | ||
Analog Devices AD7124 ADC device driver | ||
|
||
Required properties for the AD7124: | ||
- compatible: Must be one of "adi,ad7124-4" or "adi,ad7124-8" | ||
- 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 | ||
|
||
Required properties: | ||
* #address-cells: Must be 1. | ||
* #size-cells: Must be 0. | ||
|
||
Subnode(s) represent the external channels which are connected to the ADC. | ||
Each subnode represents one channel and has the following properties: | ||
Required properties: | ||
* reg: The channel number. It can have up to 4 channels on ad7124-4 | ||
and 8 channels on ad7124-8, numbered from 0 to 15. | ||
* diff-channels: see: Documentation/devicetree/bindings/iio/adc/adc.txt | ||
|
||
Optional properties: | ||
* bipolar: see: Documentation/devicetree/bindings/iio/adc/adc.txt | ||
* adi,reference-select: Select the reference source to use when | ||
converting on the the specific channel. Valid values are: | ||
0: REFIN1(+)/REFIN1(−). | ||
1: REFIN2(+)/REFIN2(−). | ||
3: AVDD | ||
If this field is left empty, internal reference is selected. | ||
|
||
Optional properties: | ||
- refin1-supply: refin1 supply can be used as reference for conversion. | ||
- refin2-supply: refin2 supply can be used as reference for conversion. | ||
- avdd-supply: avdd supply can be used as reference for conversion. | ||
|
||
Example: | ||
adc@0 { | ||
compatible = "adi,ad7124-4"; | ||
reg = <0>; | ||
spi-max-frequency = <5000000>; | ||
interrupts = <25 2>; | ||
interrupt-parent = <&gpio>; | ||
refin1-supply = <&adc_vref>; | ||
clocks = <&ad7124_mclk>; | ||
clock-names = "mclk"; | ||
|
||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
channel@0 { | ||
reg = <0>; | ||
diff-channels = <0 1>; | ||
adi,reference-select = <0>; | ||
}; | ||
|
||
channel@1 { | ||
reg = <1>; | ||
bipolar; | ||
diff-channels = <2 3>; | ||
adi,reference-select = <0>; | ||
}; | ||
|
||
channel@2 { | ||
reg = <2>; | ||
diff-channels = <4 5>; | ||
}; | ||
|
||
channel@3 { | ||
reg = <3>; | ||
diff-channels = <6 7>; | ||
}; | ||
}; |
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
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,23 @@ | ||
TI DAC7311 device tree bindings | ||
|
||
Required properties: | ||
- compatible: must be set to: | ||
* "ti,dac7311" | ||
* "ti,dac6311" | ||
* "ti,dac5311" | ||
- reg: spi chip select number for the device | ||
- vref-supply: The regulator supply for ADC reference voltage | ||
|
||
Optional properties: | ||
- spi-max-frequency: Max SPI frequency to use | ||
|
||
Example: | ||
|
||
spi_master { | ||
dac@0 { | ||
compatible = "ti,dac7311"; | ||
reg = <0>; /* CS0 */ | ||
spi-max-frequency = <1000000>; | ||
vref-supply = <&vdd_supply>; | ||
}; | ||
}; |
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,18 @@ | ||
VISHAY VCNL4035 - Ambient Light and proximity sensor | ||
|
||
Link to datasheet: https://www.vishay.com/docs/84251/vcnl4035x01.pdf | ||
|
||
Required properties: | ||
|
||
-compatible: should be "vishay,vcnl4035" | ||
-reg: I2C address of the sensor, should be 0x60 | ||
-interrupts: interrupt mapping for GPIO IRQ (level active low) | ||
|
||
Example: | ||
|
||
light-sensor@60 { | ||
compatible = "vishay,vcnl4035"; | ||
reg = <0x60>; | ||
interrupt-parent = <&gpio4>; | ||
interrupts = <11 IRQ_TYPE_LEVEL_LOW>; | ||
}; |
20 changes: 20 additions & 0 deletions
20
Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.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 @@ | ||
* PNI RM3100 3-axis magnetometer sensor | ||
|
||
Required properties: | ||
|
||
- compatible : should be "pni,rm3100" | ||
- reg : the I2C address or SPI chip select number of the sensor. | ||
|
||
Optional properties: | ||
|
||
- interrupts: data ready (DRDY) from the chip. | ||
The interrupts can be triggered on level high. | ||
|
||
Example: | ||
|
||
rm3100: rm3100@20 { | ||
compatible = "pni,rm3100"; | ||
reg = <0x20>; | ||
interrupt-parent = <&gpio0>; | ||
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; | ||
}; |
28 changes: 28 additions & 0 deletions
28
Documentation/devicetree/bindings/iio/potentiometer/mcp41010.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 @@ | ||
* Microchip MCP41010/41050/41100/42010/42050/42100 Digital Potentiometer | ||
|
||
Datasheet publicly available at: | ||
http://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf | ||
|
||
The node for this driver must be a child node of a SPI controller, hence | ||
all mandatory properties described in | ||
|
||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
must be specified. | ||
|
||
Required properties: | ||
- compatible: Must be one of the following, depending on the | ||
model: | ||
"microchip,mcp41010" | ||
"microchip,mcp41050" | ||
"microchip,mcp41100" | ||
"microchip,mcp42010" | ||
"microchip,mcp42050" | ||
"microchip,mcp42100" | ||
|
||
Example: | ||
potentiometer@0 { | ||
compatible = "microchip,mcp41010"; | ||
reg = <0>; | ||
spi-max-frequency = <500000>; | ||
}; |
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,31 @@ | ||
Analog Devices AD2S90 Resolver-to-Digital Converter | ||
|
||
https://www.analog.com/en/products/ad2s90.html | ||
|
||
Required properties: | ||
- compatible: should be "adi,ad2s90" | ||
- reg: SPI chip select number for the device | ||
- spi-max-frequency: set maximum clock frequency, must be 830000 | ||
- spi-cpol and spi-cpha: | ||
Either SPI mode (0,0) or (1,1) must be used, so specify none or both of | ||
spi-cpha, spi-cpol. | ||
|
||
See for more details: | ||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
Note about max frequency: | ||
Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns | ||
delay is expected between the application of a logic LO to CS and the | ||
application of SCLK, as also specified. And since the delay is not | ||
implemented in the spi code, to satisfy it, SCLK's period should be at most | ||
2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives | ||
roughly 830000Hz. | ||
|
||
Example: | ||
resolver@0 { | ||
compatible = "adi,ad2s90"; | ||
reg = <0>; | ||
spi-max-frequency = <830000>; | ||
spi-cpol; | ||
spi-cpha; | ||
}; |
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
Oops, something went wrong.