Skip to content

Commit ebf435d

Browse files
committed
Merge tag 'staging-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull IIO and staging driver updates from Greg KH: "Here is the big set of staging and IIO driver updates for 5.15-rc1. Also included in here are the counter driver subsystem updates as the IIO drivers needed them. Lots of churn in some staging drivers, we dropped the "old" rtl8188eu driver and replaced it with a newer version of the driver that had been maintained out-of-tree by Larry with the end goal of actually being able to get this driver out of staging eventually. Despite that driver being "newer" the line count of this pull request is going up. Some drivers moved out of staging as well, which is always nice to see, that is why there are additions to the mfc and misc driver subsystems. All of these were acked by the various subsystem maintainers involved. But by far, as normal, it's coding style cleanups all over the drivers/staging/ tree in here. Full details of these changes are in the shortlog. All of these have been in linux-next for a while with no reported problems" [ Note: the r8188eu merge clashed with commit 89939e8 ("staging: rtlwifi: use siocdevprivate") from the networking tree. When resolving the issue, I noted that the whole r8188eu rtw_android code is dead since commit ae7471c ("staging: r8188eu: remove rtw_ioctl function"). End result: the merge resolution was to throw all of that away, rather than do the mindless fixup to code that isn't actually reachable - Linus ] * tag 'staging-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (551 commits) staging: vt6655: Remove filenames in files staging: r8188eu: add extra TODO entries staging: vt6656: Remove filenames in files staging: wlan-ng: fix invalid assignment warning staging: r8188eu: rename fields of struct rtl_ps staging: r8188eu: remove ODM_DynamicPrimaryCCA_DupRTS() staging: r8188eu: rename fields of struct dyn_primary_cca staging: r8188eu: rename struct field Wifi_Error_Status staging: r8188eu: Provide a TODO file for this driver staging: r8188eu: remove unneeded variable staging: r8188eu: remove unneeded conversions to bool staging: r8188eu: remove {read,write}_macreg staging: r8188eu: core: remove condition with no effect staging: r8188eu: remove ethernet.h header file staging: r8188eu: remove ip.h header file staging: r8188eu: remove if_ether.h header file staging: r8188eu: make rtw_deinit_intf_priv return void staging: r8188eu: use is_multicast_ether_addr in os_dep/recv_linux.c staging: r8188eu: use is_multicast_ether_addr in hal/rtl8188eu_xmit.c staging: r8188eu: use is_multicast_ether_addr in core/rtw_xmit.c ...
2 parents c6c3c57 + 4adb389 commit ebf435d

File tree

508 files changed

+70162
-37823
lines changed

Some content is hidden

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

508 files changed

+70162
-37823
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/out_temp_raw
2+
Date: August 2021
3+
KernelVersion: 5.15
4+
Contact: Andreas Klinger <[email protected]>
5+
Description:
6+
Set the temperature. This value is sent to the sensor for
7+
temperature compensation.
8+
Default value: 25000 (25 °C)
9+
10+
What: /sys/bus/iio/devices/iio:deviceX/out_humidityrelative_raw
11+
Date: August 2021
12+
KernelVersion: 5.15
13+
Contact: Andreas Klinger <[email protected]>
14+
Description:
15+
Set the relative humidity. This value is sent to the sensor for
16+
humidity compensation.
17+
Default value: 50000 (50 % relative humidity)
18+
19+
What: /sys/bus/iio/devices/iio:deviceX/in_resistance_calibbias
20+
Date: August 2021
21+
KernelVersion: 5.15
22+
Contact: Andreas Klinger <[email protected]>
23+
Description:
24+
Set the bias value for the resistance which is used for
25+
calculation of in_concentration_input as follows:
26+
27+
x = (in_resistance_raw - in_resistance_calibbias) * 0.65
28+
29+
in_concentration_input = 500 / (1 + e^x)
30+
31+
Default value: 30000

Documentation/devicetree/bindings/iio/accel/bosch,bma180.yaml

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

Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ title: Bosch BMA255 and Similar Accelerometers
88

99
maintainers:
1010
- Linus Walleij <[email protected]>
11+
- Stephan Gerhold <[email protected]>
1112

1213
description:
1314
3 axis accelerometers with varying range and I2C or SPI
@@ -16,15 +17,24 @@ description:
1617
properties:
1718
compatible:
1819
enum:
19-
- bosch,bmc150_accel
20-
- bosch,bmi055_accel
20+
# bmc150-accel driver in Linux
21+
- bosch,bma222
22+
- bosch,bma222e
23+
- bosch,bma250e
2124
- bosch,bma253
2225
- bosch,bma254
2326
- bosch,bma255
24-
- bosch,bma250e
25-
- bosch,bma222
26-
- bosch,bma222e
2727
- bosch,bma280
28+
- bosch,bmc150_accel
29+
- bosch,bmc156_accel
30+
- bosch,bmi055_accel
31+
32+
# bma180 driver in Linux
33+
- bosch,bma023
34+
- bosch,bma150
35+
- bosch,bma180
36+
- bosch,bma250
37+
- bosch,smb380
2838

2939
reg:
3040
maxItems: 1
@@ -36,9 +46,21 @@ properties:
3646
minItems: 1
3747
maxItems: 2
3848
description: |
39-
The first interrupt listed must be the one connected to the INT1 pin,
40-
the second (optional) interrupt listed must be the one connected to the
41-
INT2 pin (if available).
49+
Without interrupt-names, the first interrupt listed must be the one
50+
connected to the INT1 pin, the second (optional) interrupt listed must be
51+
the one connected to the INT2 pin (if available). The type should be
52+
IRQ_TYPE_EDGE_RISING.
53+
54+
BMC156 does not have an INT1 pin, therefore the first interrupt pin is
55+
always treated as INT2.
56+
57+
interrupt-names:
58+
minItems: 1
59+
maxItems: 2
60+
items:
61+
enum:
62+
- INT1
63+
- INT2
4264

4365
mount-matrix:
4466
description: an optional 3x3 mounting rotation matrix.
@@ -63,7 +85,22 @@ examples:
6385
reg = <0x08>;
6486
vddio-supply = <&vddio>;
6587
vdd-supply = <&vdd>;
66-
interrupts = <57 IRQ_TYPE_EDGE_FALLING>;
88+
interrupts = <57 IRQ_TYPE_EDGE_RISING>;
89+
interrupt-names = "INT1";
90+
};
91+
};
92+
- |
93+
#include <dt-bindings/interrupt-controller/irq.h>
94+
i2c {
95+
#address-cells = <1>;
96+
#size-cells = <0>;
97+
accelerometer@10 {
98+
compatible = "bosch,bmc156_accel";
99+
reg = <0x10>;
100+
vddio-supply = <&vddio>;
101+
vdd-supply = <&vdd>;
102+
interrupts = <116 IRQ_TYPE_EDGE_RISING>;
103+
interrupt-names = "INT2";
67104
};
68105
};
69106
- |

Documentation/devicetree/bindings/iio/adc/ingenic,adc.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ properties:
2323
enum:
2424
- ingenic,jz4725b-adc
2525
- ingenic,jz4740-adc
26+
- ingenic,jz4760-adc
27+
- ingenic,jz4760b-adc
2628
- ingenic,jz4770-adc
2729

2830
'#io-channel-cells':
@@ -43,6 +45,23 @@ properties:
4345
interrupts:
4446
maxItems: 1
4547

48+
ingenic,use-internal-divider:
49+
description:
50+
If present, battery voltage is read from the VBAT_IR pin, which has an
51+
internal 1/4 divider. If absent, it is read through the VBAT_ER pin,
52+
which does not have such a divider.
53+
type: boolean
54+
55+
if:
56+
not:
57+
properties:
58+
compatible:
59+
contains:
60+
const: ingenic,jz4760b-adc
61+
then:
62+
properties:
63+
ingenic,use-internal-divider: false
64+
4665
required:
4766
- compatible
4867
- '#io-channel-cells'
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/adc/renesas,rzg2l-adc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G2L ADC
8+
9+
maintainers:
10+
- Lad Prabhakar <[email protected]>
11+
12+
description: |
13+
A/D Converter block is a successive approximation analog-to-digital converter
14+
with a 12-bit accuracy. Up to eight analog input channels can be selected.
15+
Conversions can be performed in single or repeat mode. Result of the ADC is
16+
stored in a 32-bit data register corresponding to each channel.
17+
18+
properties:
19+
compatible:
20+
items:
21+
- enum:
22+
- renesas,r9a07g044-adc # RZ/G2{L,LC}
23+
- const: renesas,rzg2l-adc
24+
25+
reg:
26+
maxItems: 1
27+
28+
interrupts:
29+
maxItems: 1
30+
31+
clocks:
32+
items:
33+
- description: converter clock
34+
- description: peripheral clock
35+
36+
clock-names:
37+
items:
38+
- const: adclk
39+
- const: pclk
40+
41+
power-domains:
42+
maxItems: 1
43+
44+
resets:
45+
maxItems: 2
46+
47+
reset-names:
48+
items:
49+
- const: presetn
50+
- const: adrst-n
51+
52+
'#address-cells':
53+
const: 1
54+
55+
'#size-cells':
56+
const: 0
57+
58+
required:
59+
- compatible
60+
- reg
61+
- interrupts
62+
- clocks
63+
- clock-names
64+
- power-domains
65+
- resets
66+
- reset-names
67+
68+
patternProperties:
69+
"^channel@[0-7]$":
70+
$ref: "adc.yaml"
71+
type: object
72+
description: |
73+
Represents the external channels which are connected to the ADC.
74+
75+
properties:
76+
reg:
77+
description: |
78+
The channel number. It can have up to 8 channels numbered from 0 to 7.
79+
items:
80+
- minimum: 0
81+
maximum: 7
82+
83+
required:
84+
- reg
85+
86+
additionalProperties: false
87+
88+
additionalProperties: false
89+
90+
examples:
91+
- |
92+
#include <dt-bindings/clock/r9a07g044-cpg.h>
93+
#include <dt-bindings/interrupt-controller/arm-gic.h>
94+
95+
adc: adc@10059000 {
96+
compatible = "renesas,r9a07g044-adc", "renesas,rzg2l-adc";
97+
reg = <0x10059000 0x400>;
98+
interrupts = <GIC_SPI 347 IRQ_TYPE_EDGE_RISING>;
99+
clocks = <&cpg CPG_MOD R9A07G044_ADC_ADCLK>,
100+
<&cpg CPG_MOD R9A07G044_ADC_PCLK>;
101+
clock-names = "adclk", "pclk";
102+
power-domains = <&cpg>;
103+
resets = <&cpg R9A07G044_ADC_PRESETN>,
104+
<&cpg R9A07G044_ADC_ADRST_N>;
105+
reset-names = "presetn", "adrst-n";
106+
107+
#address-cells = <1>;
108+
#size-cells = <0>;
109+
110+
channel@0 {
111+
reg = <0>;
112+
};
113+
channel@1 {
114+
reg = <1>;
115+
};
116+
channel@2 {
117+
reg = <2>;
118+
};
119+
channel@3 {
120+
reg = <3>;
121+
};
122+
channel@4 {
123+
reg = <4>;
124+
};
125+
channel@5 {
126+
reg = <5>;
127+
};
128+
channel@6 {
129+
reg = <6>;
130+
};
131+
channel@7 {
132+
reg = <7>;
133+
};
134+
};

Documentation/devicetree/bindings/iio/adc/rockchip-saradc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ properties:
2020
- rockchip,px30-saradc
2121
- rockchip,rk3308-saradc
2222
- rockchip,rk3328-saradc
23+
- rockchip,rk3568-saradc
2324
- rockchip,rv1108-saradc
2425
- const: rockchip,rk3399-saradc
2526

0 commit comments

Comments
 (0)