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.3-rc1' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/gregkh/staging Pull staging and IIO driver updates from Greg KH: "Here is the big Staging and IIO driver update for 5.3-rc1. Lots of new IIO drivers are in here, along with loads of tiny staging driver cleanups and fixes. Overall we almost break even with the same lines added as removed. Full details are in the shortlog, they are too large to list here. All of these changes have been in linux-next for a while with no reported issues" * tag 'staging-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (608 commits) staging: kpc2000: simplify comparison to NULL in fileops.c staging: kpc2000: simplify comparison to NULL in dma.c staging: kpc2000: simplify comparison to NULL in kpc2000_spi.c staging: rtl8723bs: hal: remove redundant assignment to packetType staging: rtl8723bs: Change return type of hal_btcoex_IsBtDisabled() staging: rtl8723bs: Remove rtw_btcoex_DisplayBtCoexInfo() staging: rtl8723bs: Remove function rtw_btcoex_GetDBG() staging: rtl8723bs: Remove function rtw_btcoex_SetDBG() staging: rtl8723bs: Remove rtw_btcoex_IsBTCoexCtrlAMPDUSize() staging: rtl8723bs: Remove rtw_btcoex_BtInfoNotify() staging: rtl8723bs: Remove rtw_btcoex_ScanNotify() staging: rtl8723bs: Remove rtw_btcoex_SetSingleAntPath() staging: rtl8723bs: Remove rtw_btcoex_SetPGAntNum() staging: rtl8192e: remove redundant initialization of rtstatus staging: rtl8723bs: Remove rtw_btcoex_GetRaMask() staging: rtl8723bs: Remove rtw_btcoex_SetChipType() staging: rtl8723bs: Remove rtw_btcoex_ConnectNotify() staging: rtl8723bs: Remove rtw_btcoex_SetBTCoexist() staging: rtl8723bs: Remove rtw_btcoex_IsBtDisabled() staging: rtl8723bs: Remove rtw_btcoex_IsBtControlLps() ...
- Loading branch information
Showing
358 changed files
with
10,815 additions
and
10,006 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,8 +61,11 @@ What: /sys/bus/iio/devices/triggerX/sampling_frequency_available | |
KernelVersion: 2.6.35 | ||
Contact: [email protected] | ||
Description: | ||
When the internal sampling clock can only take a small | ||
discrete set of values, this file lists those available. | ||
When the internal sampling clock can only take a specific set of | ||
frequencies, we can specify the available values with: | ||
- a small discrete set of values like "0 2 4 6 8" | ||
- a range with minimum, step and maximum frequencies like | ||
"[min step max]" | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/oversampling_ratio | ||
KernelVersion: 2.6.38 | ||
|
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 |
---|---|---|
|
@@ -18,11 +18,11 @@ Description: | |
values are 'base' and 'lid'. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/id | ||
Date: Septembre 2017 | ||
Date: September 2017 | ||
KernelVersion: 4.14 | ||
Contact: [email protected] | ||
Description: | ||
This attribute is exposed by the CrOS EC legacy accelerometer | ||
driver and represents the sensor ID as exposed by the EC. This | ||
ID is used by the Android sensor service hardware abstraction | ||
layer (sensor HAL) through the Android container on ChromeOS. | ||
This attribute is exposed by the CrOS EC sensors driver and | ||
represents the sensor ID as exposed by the EC. This ID is used | ||
by the Android sensor service hardware abstraction layer (sensor | ||
HAL) through the Android container on ChromeOS. |
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,44 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency | ||
KernelVersion: | ||
Contact: [email protected] | ||
Description: | ||
Stores the PLL frequency in Hz for channel Y. | ||
Reading returns the actual frequency in Hz. | ||
The ADF4371 has an integrated VCO with fundamendal output | ||
frequency ranging from 4000000000 Hz 8000000000 Hz. | ||
|
||
out_altvoltage0_frequency: | ||
A divide by 1, 2, 4, 8, 16, 32 or circuit generates | ||
frequencies from 62500000 Hz to 8000000000 Hz. | ||
out_altvoltage1_frequency: | ||
This channel duplicates the channel 0 frequency | ||
out_altvoltage2_frequency: | ||
A frequency doubler generates frequencies from | ||
8000000000 Hz to 16000000000 Hz. | ||
out_altvoltage3_frequency: | ||
A frequency quadrupler generates frequencies from | ||
16000000000 Hz to 32000000000 Hz. | ||
|
||
Note: writes to one of the channels will affect the frequency of | ||
all the other channels, since it involves changing the VCO | ||
fundamental output frequency. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_name | ||
KernelVersion: | ||
Contact: [email protected] | ||
Description: | ||
Reading returns the datasheet name for channel Y: | ||
|
||
out_altvoltage0_name: RF8x | ||
out_altvoltage1_name: RFAUX8x | ||
out_altvoltage2_name: RF16x | ||
out_altvoltage3_name: RF32x | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown | ||
KernelVersion: | ||
Contact: [email protected] | ||
Description: | ||
This attribute allows the user to power down the PLL and it's | ||
RFOut buffers. | ||
Writing 1 causes the specified channel to power down. | ||
Clearing returns to normal operation. |
72 changes: 72 additions & 0 deletions
72
Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml
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,72 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/accelerometers/adi,adxl345.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers | ||
|
||
maintainers: | ||
- Michael Hennerich <[email protected]> | ||
|
||
description: | | ||
Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers that supports | ||
both I2C & SPI interfaces. | ||
http://www.analog.com/en/products/mems/accelerometers/adxl345.html | ||
http://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html | ||
properties: | ||
compatible: | ||
enum: | ||
- adi,adxl345 | ||
- adi,adxl375 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
spi-cpha: true | ||
|
||
spi-cpol: true | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
i2c0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
/* Example for a I2C device node */ | ||
accelerometer@2a { | ||
compatible = "adi,adxl345"; | ||
reg = <0x53>; | ||
interrupt-parent = <&gpio0>; | ||
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
}; | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
spi0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
/* Example for a SPI device node */ | ||
accelerometer@0 { | ||
compatible = "adi,adxl345"; | ||
reg = <0>; | ||
spi-max-frequency = <5000000>; | ||
spi-cpol; | ||
spi-cpha; | ||
interrupt-parent = <&gpio0>; | ||
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
}; |
63 changes: 63 additions & 0 deletions
63
Documentation/devicetree/bindings/iio/accel/adi,adxl372.yaml
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,63 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/accelerometers/adi,adxl372.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer | ||
|
||
maintainers: | ||
- Stefan Popa <[email protected]> | ||
|
||
description: | | ||
Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer that supports | ||
both I2C & SPI interfaces | ||
https://www.analog.com/en/products/adxl372.html | ||
properties: | ||
compatible: | ||
enum: | ||
- adi,adxl372 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
i2c0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
/* Example for a I2C device node */ | ||
accelerometer@53 { | ||
compatible = "adi,adxl372"; | ||
reg = <0x53>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>; | ||
}; | ||
}; | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
spi0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
accelerometer@0 { | ||
compatible = "adi,adxl372"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
interrupt-parent = <&gpio>; | ||
interrupts = <25 IRQ_TYPE_EDGE_FALLING>; | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.