Skip to content

Commit 5e54664

Browse files
committed
Merge tag 'char-misc-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char / misc driver updates from Greg KH: "Here is the "big" set of char/misc and other driver subsystem changes for 6.12-rc1. Lots of changes in here, primarily dominated by the usual IIO driver updates and additions, but there are also small driver subsystem updates all over the place. Included in here are: - lots and lots of new IIO drivers and updates to existing ones - interconnect subsystem updates and new drivers - nvmem subsystem updates and new drivers - mhi driver updates - power supply subsystem updates - kobj_type const work for many different small subsystems - comedi driver fix - coresight subsystem and driver updates - fpga subsystem improvements - slimbus fixups - binder new feature addition for "frozen" notifications - lots and lots of other small driver updates and cleanups All of these have been in linux-next for a long time with no reported problems" * tag 'char-misc-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (354 commits) greybus: gb-beagleplay: Add firmware upload API arm64: dts: ti: k3-am625-beagleplay: Add bootloader-backdoor-gpios to cc1352p7 dt-bindings: net: ti,cc1352p7: Add bootloader-backdoor-gpios MAINTAINERS: Update path for U-Boot environment variables YAML nvmem: layouts: add U-Boot env layout comedi: ni_routing: tools: Check when the file could not be opened ocxl: Remove the unused declarations in headr file hpet: Fix the wrong format specifier uio: Constify struct kobj_type cxl: Constify struct kobj_type binder: modify the comment for binder_proc_unlock iio: adc: axp20x_adc: add support for AXP717 ADC dt-bindings: iio: adc: Add AXP717 compatible iio: adc: axp20x_adc: Add adc_en1 and adc_en2 to axp_data w1: ds2482: Drop explicit initialization of struct i2c_device_id::driver_data to 0 tools: iio: rm .*.cmd when make clean iio: adc: standardize on formatting for id match tables iio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor bus: mhi: host: pci_generic: Enable EDL trigger for Foxconn modems bus: mhi: host: pci_generic: Update EDL firmware path for Foxconn modems ...
2 parents b707512 + 0cf7bef commit 5e54664

File tree

337 files changed

+21959
-3114
lines changed

Some content is hidden

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

337 files changed

+21959
-3114
lines changed

Documentation/ABI/stable/sysfs-bus-nvmem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Description:
1111
Read returns '0' or '1' for read-write or read-only modes
1212
respectively.
1313
Write parses one of 'YyTt1NnFf0', or [oO][NnFf] for "on"
14-
and "off", i.e. what kstrbool() supports.
14+
and "off", i.e. what kstrtobool() supports.
1515
Note: This file is only present if CONFIG_NVMEM_SYSFS
1616
is enabled.
1717

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
What: /sys/kernel/debug/iio/iio:deviceX/calibration_table_dump
2+
KernelVersion: 6.11
3+
Contact: linux-iio@vger.kernel.org
4+
Description:
5+
This dumps the calibration table that was filled during the
6+
digital interface tuning process.
7+
8+
What: /sys/kernel/debug/iio/iio:deviceX/in_voltage_test_mode_available
9+
KernelVersion: 6.11
10+
Contact: linux-iio@vger.kernel.org
11+
Description:
12+
List all the available test tones:
13+
- off
14+
- midscale_short
15+
- pos_fullscale
16+
- neg_fullscale
17+
- checkerboard
18+
- prbs23
19+
- prbs9
20+
- one_zero_toggle
21+
- user
22+
- bit_toggle
23+
- sync
24+
- one_bit_high
25+
- mixed_bit_frequency
26+
- ramp
27+
28+
Note that depending on the actual device being used, some of the
29+
above might not be available (and they won't be listed when
30+
reading the file).
31+
32+
What: /sys/kernel/debug/iio/iio:deviceX/in_voltageY_test_mode
33+
KernelVersion: 6.11
34+
Contact: linux-iio@vger.kernel.org
35+
Description:
36+
Writing to this file will initiate one of available test tone on
37+
channel Y. Reading it, shows which test is running. In cases
38+
where an IIO backend is available and supports the test tone,
39+
additional information about the data correctness is given.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
What: /sys/kernel/debug/iio/iio:deviceX/backendY/name
2+
KernelVersion: 6.11
3+
Contact: linux-iio@vger.kernel.org
4+
Description:
5+
Name of Backend Y connected to device X.
6+
7+
What: /sys/kernel/debug/iio/iio:deviceX/backendY/direct_reg_access
8+
KernelVersion: 6.11
9+
Contact: linux-iio@vger.kernel.org
10+
Description:
11+
Directly access the registers of backend Y. Typical usage is:
12+
13+
Reading address 0x50
14+
echo 0x50 > direct_reg_access
15+
cat direct_reg_access
16+
17+
Writing address 0x50
18+
echo 0x50 0x3 > direct_reg_access
19+
//readback address 0x50
20+
cat direct_reg_access

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 63 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -523,13 +523,27 @@ Description:
523523
What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias
524524
What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias
525525
What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias
526+
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_i_calibbias
527+
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_q_calibbias
526528
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias
527529
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias
528530
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias
531+
What: /sys/bus/iio/devices/iio:deviceX/in_capacitance_calibbias
532+
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibbias
529533
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias
530-
What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
531-
What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias
534+
What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_calibbias
535+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_calibbias
536+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_calibbias
537+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_calibbias
532538
What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibbias
539+
What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias
540+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity_calibbias
541+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
542+
What: /sys/bus/iio/devices/iio:deviceX/in_resistance_calibbias
543+
What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibbias
544+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibbias
545+
What: /sys/bus/iio/devices/iio:deviceX/out_currentY_calibbias
546+
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibbias
533547
KernelVersion: 2.6.35
534548
Contact: linux-iio@vger.kernel.org
535549
Description:
@@ -541,6 +555,10 @@ Description:
541555

542556
What: /sys/bus/iio/devices/iio:deviceX/in_accel_calibbias_available
543557
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_calibbias_available
558+
What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibbias_available
559+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity_calibbias_available
560+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibbias_available
561+
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibbias_available
544562
KernelVersion: 5.8
545563
Contact: linux-iio@vger.kernel.org
546564
Description:
@@ -549,32 +567,55 @@ Description:
549567
- a small discrete set of values like "0 2 4 6 8"
550568
- a range specified as "[min step max]"
551569

552-
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale
553-
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale
554-
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale
555-
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale
556-
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale
557-
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale
558-
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage_calibscale
559-
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale
560570
What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale
561571
What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale
562572
What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale
573+
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage_calibscale
563574
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale
564575
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale
565576
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale
577+
What: /sys/bus/iio/devices/iio:deviceX/in_capacitance_calibscale
578+
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale
566579
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
567-
What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
568-
What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
580+
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_both_calibscale
581+
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_calibscale
582+
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_ir_calibscale
583+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_calibscale
584+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_calibscale
585+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_calibscale
569586
What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale
570-
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale
587+
What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
588+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
589+
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale
590+
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale
591+
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale
592+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale
593+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale
594+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale
595+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale
596+
What: /sys/bus/iio/devices/iio:deviceX/out_currentY_calibscale
597+
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibscale
571598
KernelVersion: 2.6.35
572599
Contact: linux-iio@vger.kernel.org
573600
Description:
574601
Hardware applied calibration scale factor (assumed to fix
575602
production inaccuracies). If shared across all channels,
576603
<type>_calibscale is used.
577604

605+
What: /sys/bus/iio/devices/iio:deviceX/in_illuminanceY_calibscale_available
606+
What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_calibscale_available
607+
What: /sys/bus/iio/devices/iio:deviceX/in_proximityY_calibscale_available
608+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale_available
609+
KernelVersion: 4.8
610+
Contact: linux-iio@vger.kernel.org
611+
Description:
612+
Available values of calibscale. Maybe expressed as either of:
613+
614+
- a small discrete set of values like "1 8 16"
615+
- a range specified as "[min step max]"
616+
617+
If shared across all channels, <type>_calibscale_available is used.
618+
578619
What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
579620
What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
580621
What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
@@ -708,6 +749,7 @@ Description:
708749
2.5kohm_to_gnd: connected to ground via a 2.5kOhm resistor,
709750
6kohm_to_gnd: connected to ground via a 6kOhm resistor,
710751
20kohm_to_gnd: connected to ground via a 20kOhm resistor,
752+
42kohm_to_gnd: connected to ground via a 42kOhm resistor,
711753
90kohm_to_gnd: connected to ground via a 90kOhm resistor,
712754
100kohm_to_gnd: connected to ground via an 100kOhm resistor,
713755
125kohm_to_gnd: connected to ground via an 125kOhm resistor,
@@ -2289,3 +2331,11 @@ KernelVersion: 6.7
22892331
Contact: linux-iio@vger.kernel.org
22902332
Description:
22912333
List of available timeout value for tap gesture confirmation.
2334+
2335+
What: /sys/.../iio:deviceX/in_shunt_resistor
2336+
What: /sys/.../iio:deviceX/in_current_shunt_resistor
2337+
What: /sys/.../iio:deviceX/in_power_shunt_resistor
2338+
KernelVersion: 6.10
2339+
Contact: linux-iio@vger.kernel.org
2340+
Description:
2341+
The value of current sense resistor in Ohms.

Documentation/ABI/testing/sysfs-bus-iio-adc-max9611

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

Documentation/ABI/testing/sysfs-bus-iio-chemical-sgp40

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,3 @@ Description:
1515
Set the relative humidity. This value is sent to the sensor for
1616
humidity compensation.
1717
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 <ak@it-klinger.de>
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
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/out_currentY_toggle_en
2+
KernelVersion: 5.18
3+
Contact: linux-iio@vger.kernel.org
4+
Description:
5+
Toggle enable. Write 1 to enable toggle or 0 to disable it. This
6+
is useful when one wants to change the DAC output codes. For
7+
autonomous toggling, the way it should be done is:
8+
9+
- disable toggle operation;
10+
- change out_currentY_rawN, where N is the integer value of the symbol;
11+
- enable toggle operation.
12+
13+
What: /sys/bus/iio/devices/iio:deviceX/out_currentY_rawN
14+
KernelVersion: 5.18
15+
Contact: linux-iio@vger.kernel.org
16+
Description:
17+
This attribute has the same meaning as out_currentY_raw. It is
18+
specific to toggle enabled channels and refers to the DAC output
19+
code in INPUT_N (_rawN), where N is the integer value of the symbol.
20+
The same scale and offset as in out_currentY_raw applies.
21+
22+
What: /sys/bus/iio/devices/iio:deviceX/out_currentY_symbol
23+
KernelVersion: 5.18
24+
Contact: linux-iio@vger.kernel.org
25+
Description:
26+
Performs a SW switch to a predefined output symbol. This attribute
27+
is specific to toggle enabled channels and allows switching between
28+
multiple predefined symbols. Each symbol corresponds to a different
29+
output, denoted as out_currentY_rawN, where N is the integer value
30+
of the symbol. Writing an integer value N will select out_currentY_rawN.
31+
32+
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en
33+
KernelVersion: 5.18
34+
Contact: linux-iio@vger.kernel.org
35+
Description:
36+
Toggle enable. Write 1 to enable toggle or 0 to disable it. This
37+
is useful when one wants to change the DAC output codes. For
38+
autonomous toggling, the way it should be done is:
39+
40+
- disable toggle operation;
41+
- change out_voltageY_rawN, where N is the integer value of the symbol;
42+
- enable toggle operation.
43+
44+
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_rawN
45+
KernelVersion: 5.18
46+
Contact: linux-iio@vger.kernel.org
47+
Description:
48+
This attribute has the same meaning as out_currentY_raw. It is
49+
specific to toggle enabled channels and refers to the DAC output
50+
code in INPUT_N (_rawN), where N is the integer value of the symbol.
51+
The same scale and offset as in out_currentY_raw applies.
52+
53+
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol
54+
KernelVersion: 5.18
55+
Contact: linux-iio@vger.kernel.org
56+
Description:
57+
Performs a SW switch to a predefined output symbol. This attribute
58+
is specific to toggle enabled channels and allows switching between
59+
multiple predefined symbols. Each symbol corresponds to a different
60+
output, denoted as out_voltageY_rawN, where N is the integer value
61+
of the symbol. Writing an integer value N will select out_voltageY_rawN.

Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2688

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,3 @@ KernelVersion: 5.18
5353
Contact: linux-iio@vger.kernel.org
5454
Description:
5555
Returns the available values for the dither phase.
56-
57-
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en
58-
KernelVersion: 5.18
59-
Contact: linux-iio@vger.kernel.org
60-
Description:
61-
Toggle enable. Write 1 to enable toggle or 0 to disable it. This is
62-
useful when one wants to change the DAC output codes. The way it should
63-
be done is:
64-
65-
- disable toggle operation;
66-
- change out_voltageY_raw0 and out_voltageY_raw1;
67-
- enable toggle operation.
68-
69-
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw0
70-
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw1
71-
KernelVersion: 5.18
72-
Contact: linux-iio@vger.kernel.org
73-
Description:
74-
It has the same meaning as out_voltageY_raw. This attribute is
75-
specific to toggle enabled channels and refers to the DAC output
76-
code in INPUT_A (_raw0) and INPUT_B (_raw1). The same scale and offset
77-
as in out_voltageY_raw applies.
78-
79-
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol
80-
KernelVersion: 5.18
81-
Contact: linux-iio@vger.kernel.org
82-
Description:
83-
Performs a SW toggle. This attribute is specific to toggle
84-
enabled channels and allows to toggle between out_voltageY_raw0
85-
and out_voltageY_raw1 through software. Writing 0 will select
86-
out_voltageY_raw0 while 1 selects out_voltageY_raw1.

Documentation/ABI/testing/sysfs-bus-iio-filter-admv8818

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ KernelVersion:
33
Contact: linux-iio@vger.kernel.org
44
Description:
55
Reading this returns the valid values that can be written to the
6-
on_altvoltage0_mode attribute:
6+
filter_mode attribute:
77

88
- auto -> Adjust bandpass filter to track changes in input clock rate.
99
- manual -> disable/unregister the clock rate notifier / input clock tracking.

Documentation/ABI/testing/sysfs-bus-iio-ina2xx-adc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,3 @@ Description:
1313
available for reading data. However, samples can be occasionally skipped
1414
or repeated, depending on the beat between the capture and conversion
1515
rates.
16-
17-
What: /sys/bus/iio/devices/iio:deviceX/in_shunt_resistor
18-
Date: December 2015
19-
KernelVersion: 4.4
20-
Contact: linux-iio@vger.kernel.org
21-
Description:
22-
The value of the shunt resistor may be known only at runtime fom an
23-
eeprom content read by a client application. This attribute allows to
24-
set its value in ohms.

0 commit comments

Comments
 (0)