Skip to content

Commit e786741

Browse files
committed
Merge tag 'staging-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/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() ...
2 parents 97ff4ca + 5d15324 commit e786741

358 files changed

Lines changed: 10815 additions & 10006 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/testing/sysfs-bus-iio‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ What: /sys/bus/iio/devices/triggerX/sampling_frequency_available
6161
KernelVersion: 2.6.35
6262
Contact: linux-iio@vger.kernel.org
6363
Description:
64-
When the internal sampling clock can only take a small
65-
discrete set of values, this file lists those available.
64+
When the internal sampling clock can only take a specific set of
65+
frequencies, we can specify the available values with:
66+
- a small discrete set of values like "0 2 4 6 8"
67+
- a range with minimum, step and maximum frequencies like
68+
"[min step max]"
6669

6770
What: /sys/bus/iio/devices/iio:deviceX/oversampling_ratio
6871
KernelVersion: 2.6.38

‎Documentation/ABI/testing/sysfs-bus-iio-cros-ec‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Description:
1818
values are 'base' and 'lid'.
1919

2020
What: /sys/bus/iio/devices/iio:deviceX/id
21-
Date: Septembre 2017
21+
Date: September 2017
2222
KernelVersion: 4.14
2323
Contact: linux-iio@vger.kernel.org
2424
Description:
25-
This attribute is exposed by the CrOS EC legacy accelerometer
26-
driver and represents the sensor ID as exposed by the EC. This
27-
ID is used by the Android sensor service hardware abstraction
28-
layer (sensor HAL) through the Android container on ChromeOS.
25+
This attribute is exposed by the CrOS EC sensors driver and
26+
represents the sensor ID as exposed by the EC. This ID is used
27+
by the Android sensor service hardware abstraction layer (sensor
28+
HAL) through the Android container on ChromeOS.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency
2+
KernelVersion:
3+
Contact: linux-iio@vger.kernel.org
4+
Description:
5+
Stores the PLL frequency in Hz for channel Y.
6+
Reading returns the actual frequency in Hz.
7+
The ADF4371 has an integrated VCO with fundamendal output
8+
frequency ranging from 4000000000 Hz 8000000000 Hz.
9+
10+
out_altvoltage0_frequency:
11+
A divide by 1, 2, 4, 8, 16, 32 or circuit generates
12+
frequencies from 62500000 Hz to 8000000000 Hz.
13+
out_altvoltage1_frequency:
14+
This channel duplicates the channel 0 frequency
15+
out_altvoltage2_frequency:
16+
A frequency doubler generates frequencies from
17+
8000000000 Hz to 16000000000 Hz.
18+
out_altvoltage3_frequency:
19+
A frequency quadrupler generates frequencies from
20+
16000000000 Hz to 32000000000 Hz.
21+
22+
Note: writes to one of the channels will affect the frequency of
23+
all the other channels, since it involves changing the VCO
24+
fundamental output frequency.
25+
26+
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_name
27+
KernelVersion:
28+
Contact: linux-iio@vger.kernel.org
29+
Description:
30+
Reading returns the datasheet name for channel Y:
31+
32+
out_altvoltage0_name: RF8x
33+
out_altvoltage1_name: RFAUX8x
34+
out_altvoltage2_name: RF16x
35+
out_altvoltage3_name: RF32x
36+
37+
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown
38+
KernelVersion:
39+
Contact: linux-iio@vger.kernel.org
40+
Description:
41+
This attribute allows the user to power down the PLL and it's
42+
RFOut buffers.
43+
Writing 1 causes the specified channel to power down.
44+
Clearing returns to normal operation.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/accelerometers/adi,adxl345.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers
8+
9+
maintainers:
10+
- Michael Hennerich <michael.hennerich@analog.com>
11+
12+
description: |
13+
Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers that supports
14+
both I2C & SPI interfaces.
15+
http://www.analog.com/en/products/mems/accelerometers/adxl345.html
16+
http://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
17+
18+
properties:
19+
compatible:
20+
enum:
21+
- adi,adxl345
22+
- adi,adxl375
23+
24+
reg:
25+
maxItems: 1
26+
27+
spi-cpha: true
28+
29+
spi-cpol: true
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
required:
35+
- compatible
36+
- reg
37+
- interrupts
38+
39+
examples:
40+
- |
41+
#include <dt-bindings/gpio/gpio.h>
42+
#include <dt-bindings/interrupt-controller/irq.h>
43+
i2c0 {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
47+
/* Example for a I2C device node */
48+
accelerometer@2a {
49+
compatible = "adi,adxl345";
50+
reg = <0x53>;
51+
interrupt-parent = <&gpio0>;
52+
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
53+
};
54+
};
55+
- |
56+
#include <dt-bindings/gpio/gpio.h>
57+
#include <dt-bindings/interrupt-controller/irq.h>
58+
spi0 {
59+
#address-cells = <1>;
60+
#size-cells = <0>;
61+
62+
/* Example for a SPI device node */
63+
accelerometer@0 {
64+
compatible = "adi,adxl345";
65+
reg = <0>;
66+
spi-max-frequency = <5000000>;
67+
spi-cpol;
68+
spi-cpha;
69+
interrupt-parent = <&gpio0>;
70+
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
71+
};
72+
};
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/accelerometers/adi,adxl372.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer
8+
9+
maintainers:
10+
- Stefan Popa <stefan.popa@analog.com>
11+
12+
description: |
13+
Analog Devices ADXL372 3-Axis, +/-(200g) Digital Accelerometer that supports
14+
both I2C & SPI interfaces
15+
https://www.analog.com/en/products/adxl372.html
16+
17+
properties:
18+
compatible:
19+
enum:
20+
- adi,adxl372
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts
32+
33+
examples:
34+
- |
35+
#include <dt-bindings/gpio/gpio.h>
36+
#include <dt-bindings/interrupt-controller/irq.h>
37+
i2c0 {
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
41+
/* Example for a I2C device node */
42+
accelerometer@53 {
43+
compatible = "adi,adxl372";
44+
reg = <0x53>;
45+
interrupt-parent = <&gpio>;
46+
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
47+
};
48+
};
49+
- |
50+
#include <dt-bindings/gpio/gpio.h>
51+
#include <dt-bindings/interrupt-controller/irq.h>
52+
spi0 {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
accelerometer@0 {
57+
compatible = "adi,adxl372";
58+
reg = <0>;
59+
spi-max-frequency = <1000000>;
60+
interrupt-parent = <&gpio>;
61+
interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
62+
};
63+
};

‎Documentation/devicetree/bindings/iio/accel/adxl345.txt‎

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎Documentation/devicetree/bindings/iio/accel/adxl372.txt‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

‎Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt‎

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)