Skip to content

Commit 83bd892

Browse files
committed
Merge tag 'char-misc-6.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc/IIO driver updates from Greg KH: "Here is the big set of char/misc/iio driver updates for 6.19-rc1. Lots of stuff in here including: - lots of IIO driver updates, cleanups, and additions - large interconnect driver changes as they get converted over to a dynamic system of ids - coresight driver updates - mwave driver updates - binder driver updates and changes - comedi driver fixes now that the fuzzers are being set loose on them - nvmem driver updates - new uio driver addition - lots of other small char/misc driver updates, full details in the shortlog All of these have been in linux-next for a while now" * tag 'char-misc-6.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (304 commits) char: applicom: fix NULL pointer dereference in ac_ioctl hangcheck-timer: fix coding style spacing hangcheck-timer: Replace %Ld with %lld hangcheck-timer: replace printk(KERN_CRIT) with pr_crit uio: Add SVA support for PCI devices via uio_pci_generic_sva.c dt-bindings: slimbus: fix warning from example intel_th: Fix error handling in intel_th_output_open misc: rp1: Fix an error handling path in rp1_probe() char: xillybus: add WQ_UNBOUND to alloc_workqueue users misc: bh1770glc: use pm_runtime_resume_and_get() in power_state_store misc: cb710: Fix a NULL vs IS_ERR() check in probe() mux: mmio: Add suspend and resume support virt: acrn: split acrn_mmio_dev_res out of acrn_mmiodev greybus: gb-beagleplay: Fix timeout handling in bootloader functions greybus: add WQ_PERCPU to alloc_workqueue users char/mwave: drop typedefs char/mwave: drop printk wrapper char/mwave: remove printk tracing char/mwave: remove unneeded fops char/mwave: remove MWAVE_FUTZ_WITH_OTHER_DEVICES ifdeffery ...
2 parents 701d7d7 + 82d1208 commit 83bd892

302 files changed

Lines changed: 23657 additions & 14077 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: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ What: /sys/.../iio:deviceX/events/in_tempY_thresh_rising_en
898898
What: /sys/.../iio:deviceX/events/in_tempY_thresh_falling_en
899899
What: /sys/.../iio:deviceX/events/in_capacitanceY_thresh_rising_en
900900
What: /sys/.../iio:deviceX/events/in_capacitanceY_thresh_falling_en
901+
What: /sys/.../iio:deviceX/events/in_pressure_thresh_rising_en
901902
KernelVersion: 2.6.37
902903
Contact: linux-iio@vger.kernel.org
903904
Description:
@@ -926,6 +927,7 @@ What: /sys/.../iio:deviceX/events/in_accel_y_roc_rising_en
926927
What: /sys/.../iio:deviceX/events/in_accel_y_roc_falling_en
927928
What: /sys/.../iio:deviceX/events/in_accel_z_roc_rising_en
928929
What: /sys/.../iio:deviceX/events/in_accel_z_roc_falling_en
930+
What: /sys/.../iio:deviceX/events/in_accel_x&y&z_roc_rising_en
929931
What: /sys/.../iio:deviceX/events/in_anglvel_x_roc_rising_en
930932
What: /sys/.../iio:deviceX/events/in_anglvel_x_roc_falling_en
931933
What: /sys/.../iio:deviceX/events/in_anglvel_y_roc_rising_en
@@ -1001,6 +1003,7 @@ Description:
10011003
to the raw signal, allowing slow tracking to resume and the
10021004
adaptive threshold event detection to function as expected.
10031005

1006+
What: /sys/.../events/in_accel_mag_adaptive_rising_value
10041007
What: /sys/.../events/in_accel_thresh_rising_value
10051008
What: /sys/.../events/in_accel_thresh_falling_value
10061009
What: /sys/.../events/in_accel_x_raw_thresh_rising_value
@@ -1045,6 +1048,7 @@ What: /sys/.../events/in_capacitanceY_thresh_rising_value
10451048
What: /sys/.../events/in_capacitanceY_thresh_falling_value
10461049
What: /sys/.../events/in_capacitanceY_thresh_adaptive_rising_value
10471050
What: /sys/.../events/in_capacitanceY_thresh_falling_rising_value
1051+
What: /sys/.../events/in_pressure_thresh_rising_value
10481052
KernelVersion: 2.6.37
10491053
Contact: linux-iio@vger.kernel.org
10501054
Description:
@@ -1147,6 +1151,7 @@ Description:
11471151
will get activated once in_voltage0_raw goes above 1200 and will become
11481152
deactivated again once the value falls below 1150.
11491153

1154+
What: /sys/.../events/in_accel_roc_rising_value
11501155
What: /sys/.../events/in_accel_x_raw_roc_rising_value
11511156
What: /sys/.../events/in_accel_x_raw_roc_falling_value
11521157
What: /sys/.../events/in_accel_y_raw_roc_rising_value
@@ -1193,6 +1198,8 @@ Description:
11931198
value is in raw device units or in processed units (as _raw
11941199
and _input do on sysfs direct channel read attributes).
11951200

1201+
What: /sys/.../events/in_accel_mag_adaptive_rising_period
1202+
What: /sys/.../events/in_accel_roc_rising_period
11961203
What: /sys/.../events/in_accel_x_thresh_rising_period
11971204
What: /sys/.../events/in_accel_x_thresh_falling_period
11981205
What: /sys/.../events/in_accel_x_roc_rising_period
@@ -1362,6 +1369,15 @@ Description:
13621369
number or direction is not specified, applies to all channels of
13631370
this type.
13641371

1372+
What: /sys/.../iio:deviceX/events/in_accel_x_mag_adaptive_rising_en
1373+
What: /sys/.../iio:deviceX/events/in_accel_y_mag_adaptive_rising_en
1374+
What: /sys/.../iio:deviceX/events/in_accel_z_mag_adaptive_rising_en
1375+
KernelVersion: 2.6.37
1376+
Contact: linux-iio@vger.kernel.org
1377+
Description:
1378+
Similar to in_accel_x_thresh[_rising|_falling]_en, but here the
1379+
magnitude of the channel is compared to the adaptive threshold.
1380+
13651381
What: /sys/.../iio:deviceX/events/in_accel_mag_referenced_en
13661382
What: /sys/.../iio:deviceX/events/in_accel_mag_referenced_rising_en
13671383
What: /sys/.../iio:deviceX/events/in_accel_mag_referenced_falling_en
@@ -2422,3 +2438,23 @@ Description:
24222438
Value representing the user's attention to the system expressed
24232439
in units as percentage. This usually means if the user is
24242440
looking at the screen or not.
2441+
2442+
What: /sys/.../events/in_accel_value_available
2443+
KernelVersion: 6.18
2444+
Contact: linux-iio@vger.kernel.org
2445+
Description:
2446+
List of available threshold values for acceleration event
2447+
generation. Applies to all event types on in_accel channels.
2448+
Units after application of scale and offset are m/s^2.
2449+
Expressed as:
2450+
2451+
- a range specified as "[min step max]"
2452+
2453+
What: /sys/.../events/in_accel_period_available
2454+
KernelVersion: 6.18
2455+
Contact: linux-iio@vger.kernel.org
2456+
Description:
2457+
List of available periods for accelerometer event detection in
2458+
seconds, expressed as:
2459+
2460+
- a range specified as "[min step max]"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
What: /sys/bus/pci/drivers/uio_pci_sva/<pci_dev>/pasid
2+
Date: September 2025
3+
Contact: Yaxing Guo <guoyaxing@bosc.ac.cn>
4+
Description:
5+
Process Address Space ID (PASID) assigned by IOMMU driver to
6+
the device for use with Shared Virtual Addressing (SVA).
7+
8+
This read-only attribute exposes the PASID (A 20-bit identifier
9+
used in PCIe Address Translation Services and iommu table walks)
10+
allocated by the IOMMU driver during sva device binding.
11+
12+
User-space UIO applications must read this attribute to obtain
13+
the PASID and program it into the device's configuration registers.
14+
This enables the device to perform DMA using user-space virtual
15+
address, with address translation handled by IOMMU.
16+
17+
UIO User-space applications must:
18+
- Opening device and Mapping the device's register space via /dev/uioX
19+
(This triggers the IOMMU driver to allocate the PASID)
20+
- Reading the PASID from sysfs
21+
- Writing the PASID to a device-specific register (with example offset)
22+
The code may be like:
23+
24+
map = mmap(..., "/dev/uio0", ...);
25+
26+
f = fopen("/sys/.../pasid", "r");
27+
fscanf(f, "%d", &pasid);
28+
29+
map[REG_PASID_OFFSET] = pasid;

Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ properties:
3636
$nodename:
3737
pattern: "^tpdm(@[0-9a-f]+)$"
3838
compatible:
39-
items:
40-
- const: qcom,coresight-tpdm
41-
- const: arm,primecell
39+
oneOf:
40+
- items:
41+
- const: qcom,coresight-static-tpdm
42+
- items:
43+
- const: qcom,coresight-tpdm
44+
- const: arm,primecell
4245

4346
reg:
4447
maxItems: 1
@@ -147,4 +150,18 @@ examples:
147150
};
148151
};
149152
};
153+
154+
turing-llm-tpdm {
155+
compatible = "qcom,coresight-static-tpdm";
156+
157+
qcom,cmb-element-bits = <32>;
158+
159+
out-ports {
160+
port {
161+
turing_llm_tpdm_out: endpoint {
162+
remote-endpoint = <&turing0_funnel_in1>;
163+
};
164+
};
165+
};
166+
};
150167
...

Documentation/devicetree/bindings/fpga/fpga-region.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ description: |
210210
FPGA Bridges that exist on the FPGA fabric prior to the partial reconfiguration.
211211
212212
--
213-
[1] www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/ug/ug_partrecon.pdf
213+
[1] https://www.intel.com/programmable/technical-pdfs/683404.pdf
214214
[2] tspace.library.utoronto.ca/bitstream/1807/67932/1/Byma_Stuart_A_201411_MAS_thesis.pdf
215-
[3] https://www.xilinx.com/support/documentation/sw_manuals/xilinx14_1/ug702.pdf
215+
[3] https://docs.amd.com/v/u/en-US/ug702
216216
217217
properties:
218218
$nodename:

Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,17 @@ properties:
3535
spi-3wire: true
3636

3737
interrupts:
38-
maxItems: 1
38+
minItems: 1
39+
maxItems: 2
3940

4041
interrupt-names:
42+
minItems: 1
4143
items:
4244
- enum: [INT1, INT2]
45+
- const: INT2
4346

4447
dependencies:
4548
interrupts: [ interrupt-names ]
46-
interrupt-names: [ interrupts ]
4749

4850
required:
4951
- compatible
@@ -84,7 +86,8 @@ examples:
8486
spi-cpol;
8587
spi-cpha;
8688
interrupt-parent = <&gpio0>;
87-
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
88-
interrupt-names = "INT2";
89+
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,
90+
<1 IRQ_TYPE_LEVEL_HIGH>;
91+
interrupt-names = "INT1", "INT2";
8992
};
9093
};

Documentation/devicetree/bindings/iio/accel/adi,adxl380.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ maintainers:
1111
- Antoniu Miclaus <antoniu.miclaus@analog.com>
1212

1313
description: |
14-
The ADXL380/ADXL382 is a low noise density, low power, 3-axis
15-
accelerometer with selectable measurement ranges. The ADXL380
16-
supports the ±4 g, ±8 g, and ±16 g ranges, and the ADXL382 supports
17-
±15 g, ±30 g, and ±60 g ranges.
14+
The ADXL380/ADXL382 and ADXL318/ADXL319 are low noise density,
15+
low power, 3-axis accelerometers with selectable measurement ranges.
16+
The ADXL380 and ADXL318 support the ±4 g, ±8 g, and ±16 g ranges,
17+
while the ADXL382 and ADXL319 support ±15 g, ±30 g, and ±60 g ranges.
1818
19+
https://www.analog.com/en/products/adxl318.html
1920
https://www.analog.com/en/products/adxl380.html
2021
2122
properties:
2223
compatible:
2324
enum:
25+
- adi,adxl318
26+
- adi,adxl319
2427
- adi,adxl380
2528
- adi,adxl382
2629

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$id: http://devicetree.org/schemas/iio/accel/bosch,bma220.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Bosch BMA220 Trixial Acceleration Sensor
7+
title: Bosch BMA220 Triaxial Acceleration Sensor
88

99
maintainers:
1010
- Jonathan Cameron <Jonathan.Cameron@huawei.com>
@@ -20,6 +20,9 @@ properties:
2020
interrupts:
2121
maxItems: 1
2222

23+
spi-cpha: true
24+
spi-cpol: true
25+
2326
vdda-supply: true
2427
vddd-supply: true
2528
vddio-supply: true
@@ -44,8 +47,10 @@ examples:
4447
compatible = "bosch,bma220";
4548
reg = <0>;
4649
spi-max-frequency = <2500000>;
50+
spi-cpol;
51+
spi-cpha;
4752
interrupt-parent = <&gpio0>;
48-
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
53+
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
4954
};
5055
};
5156
...

Documentation/devicetree/bindings/iio/adc/adi,ad4080.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ properties:
2626
compatible:
2727
enum:
2828
- adi,ad4080
29+
- adi,ad4081
30+
- adi,ad4083
31+
- adi,ad4084
32+
- adi,ad4086
33+
- adi,ad4087
2934

3035
reg:
3136
maxItems: 1
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
# Copyright 2023-2025 Analog Devices Inc.
3+
# Copyright 2023 Kim Seer Paller
4+
# Copyright 2025 Marilene Andrade Garcia
5+
%YAML 1.2
6+
---
7+
$id: http://devicetree.org/schemas/iio/adc/adi,max14001.yaml#
8+
$schema: http://devicetree.org/meta-schemas/core.yaml#
9+
10+
title: Analog Devices MAX14001-MAX14002 ADC
11+
12+
maintainers:
13+
- Kim Seer Paller <kimseer.paller@analog.com>
14+
- Marilene Andrade Garcia <marilene.agarcia@gmail.com>
15+
16+
description: |
17+
Single channel 10 bit ADC with SPI interface.
18+
Datasheet can be found here
19+
https://www.analog.com/media/en/technical-documentation/data-sheets/MAX14001-MAX14002.pdf
20+
21+
$ref: /schemas/spi/spi-peripheral-props.yaml#
22+
23+
properties:
24+
compatible:
25+
oneOf:
26+
- const: adi,max14002
27+
- items:
28+
- const: adi,max14001
29+
- const: adi,max14002
30+
31+
reg:
32+
maxItems: 1
33+
34+
spi-max-frequency:
35+
maximum: 5000000
36+
37+
vdd-supply:
38+
description:
39+
Isolated DC-DC power supply input voltage.
40+
41+
vddl-supply:
42+
description:
43+
Logic power supply.
44+
45+
refin-supply:
46+
description:
47+
ADC voltage reference supply.
48+
49+
interrupts:
50+
minItems: 1
51+
items:
52+
- description: |
53+
cout: comparator output signal that asserts high on the COUT pin
54+
when ADC readings exceed the upper threshold and low when readings
55+
fall below the lower threshold.
56+
- description: |
57+
fault: when fault reporting is enabled, the FAULT pin is asserted
58+
low whenever one of the monitored fault conditions occurs.
59+
60+
interrupt-names:
61+
minItems: 1
62+
items:
63+
- const: cout
64+
- const: fault
65+
66+
required:
67+
- compatible
68+
- reg
69+
- vdd-supply
70+
- vddl-supply
71+
72+
unevaluatedProperties: false
73+
74+
examples:
75+
- |
76+
spi {
77+
#address-cells = <1>;
78+
#size-cells = <0>;
79+
80+
adc@0 {
81+
compatible = "adi,max14001", "adi,max14002";
82+
reg = <0>;
83+
spi-max-frequency = <5000000>;
84+
spi-lsb-first;
85+
vdd-supply = <&vdd>;
86+
vddl-supply = <&vddl>;
87+
};
88+
};
89+
...

Documentation/devicetree/bindings/iio/adc/aspeed,ast2600-adc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ properties:
2929
enum:
3030
- aspeed,ast2600-adc0
3131
- aspeed,ast2600-adc1
32+
- aspeed,ast2700-adc0
33+
- aspeed,ast2700-adc1
3234
description:
3335
Their trimming data, which is used to calibrate internal reference volage,
3436
locates in different address of OTP.

0 commit comments

Comments
 (0)