Skip to content

Commit a094766

Browse files
committed
Merge tag 'char-misc-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc and other driver updates from Greg KH: "Here is the large set of char/misc and other small driver subsystem changes for 6.1-rc1. Loads of different things in here: - IIO driver updates, additions, and changes. Probably the largest part of the diffstat - habanalabs driver update with support for new hardware and features, the second largest part of the diff. - fpga subsystem driver updates and additions - mhi subsystem updates - Coresight driver updates - gnss subsystem updates - extcon driver updates - icc subsystem updates - fsi subsystem updates - nvmem subsystem and driver updates - misc driver updates - speakup driver additions for new features - lots of tiny driver updates and cleanups All of these have been in the linux-next tree for a while with no reported issues" * tag 'char-misc-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (411 commits) w1: Split memcpy() of struct cn_msg flexible array spmi: pmic-arb: increase SPMI transaction timeout delay spmi: pmic-arb: block access for invalid PMIC arbiter v5 SPMI writes spmi: pmic-arb: correct duplicate APID to PPID mapping logic spmi: pmic-arb: add support to dispatch interrupt based on IRQ status spmi: pmic-arb: check apid against limits before calling irq handler spmi: pmic-arb: do not ack and clear peripheral interrupts in cleanup_irq spmi: pmic-arb: handle spurious interrupt spmi: pmic-arb: add a print in cleanup_irq drivers: spmi: Directly use ida_alloc()/free() MAINTAINERS: add TI ECAP driver info counter: ti-ecap-capture: capture driver support for ECAP Documentation: ABI: sysfs-bus-counter: add frequency & num_overflows items dt-bindings: counter: add ti,am62-ecap-capture.yaml counter: Introduce the COUNTER_COMP_ARRAY component type counter: Consolidate Counter extension sysfs attribute creation counter: Introduce the Count capture component counter: 104-quad-8: Add Signal polarity component counter: Introduce the Signal polarity component counter: interrupt-cnt: Implement watch_validate callback ...
2 parents e8bc52c + 7cd0401 commit a094766

File tree

411 files changed

+18105
-3573
lines changed

Some content is hidden

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

411 files changed

+18105
-3573
lines changed

Documentation/ABI/testing/sysfs-bus-coresight-devices-etm4x

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,3 +516,11 @@ Contact: Mathieu Poirier <[email protected]>
516516
Description: (Read) Returns the number of special conditional P1 right-hand keys
517517
that the trace unit can use (0x194). The value is taken
518518
directly from the HW.
519+
520+
What: /sys/bus/coresight/devices/etm<N>/ts_source
521+
Date: October 2022
522+
KernelVersion: 6.1
523+
Contact: Mathieu Poirier <[email protected]> or Suzuki K Poulose <[email protected]>
524+
Description: (Read) When FEAT_TRF is implemented, value of TRFCR_ELx.TS used for
525+
trace session. Otherwise -1 indicates an unknown time source. Check
526+
trcidr0.tssize to see if a global timestamp is available.

Documentation/ABI/testing/sysfs-bus-counter

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Contact: [email protected]
44
Description:
55
Count data of Count Y represented as a string.
66

7+
What: /sys/bus/counter/devices/counterX/countY/capture
8+
KernelVersion: 6.1
9+
10+
Description:
11+
Historical capture of the Count Y count data.
12+
713
What: /sys/bus/counter/devices/counterX/countY/ceiling
814
KernelVersion: 5.2
915
@@ -203,6 +209,13 @@ Description:
203209
both edges:
204210
Any state transition.
205211

212+
What: /sys/bus/counter/devices/counterX/countY/num_overflows
213+
KernelVersion: 6.1
214+
215+
Description:
216+
This attribute indicates the number of overflows of count Y.
217+
218+
What: /sys/bus/counter/devices/counterX/countY/capture_component_id
206219
What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id
207220
What: /sys/bus/counter/devices/counterX/countY/floor_component_id
208221
What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id
@@ -213,11 +226,14 @@ What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id
213226
What: /sys/bus/counter/devices/counterX/countY/preset_component_id
214227
What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id
215228
What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id
229+
What: /sys/bus/counter/devices/counterX/countY/num_overflows_component_id
216230
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id
217231
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id
218232
What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id
219233
What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id
234+
What: /sys/bus/counter/devices/counterX/signalY/polarity_component_id
220235
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id
236+
What: /sys/bus/counter/devices/counterX/signalY/frequency_component_id
221237
KernelVersion: 5.16
222238
223239
Description:
@@ -303,6 +319,19 @@ Description:
303319
Discrete set of available values for the respective Signal Y
304320
configuration are listed in this file.
305321

322+
What: /sys/bus/counter/devices/counterX/signalY/polarity
323+
KernelVersion: 6.1
324+
325+
Description:
326+
Active level of Signal Y. The following polarity values are
327+
available:
328+
329+
positive:
330+
Signal high state considered active level (rising edge).
331+
332+
negative:
333+
Signal low state considered active level (falling edge).
334+
306335
What: /sys/bus/counter/devices/counterX/signalY/name
307336
KernelVersion: 5.2
308337
@@ -345,3 +374,9 @@ Description:
345374
via index_polarity. The index function (as enabled via
346375
preset_enable) is performed synchronously with the
347376
quadrature clock on the active level of the index input.
377+
378+
What: /sys/bus/counter/devices/counterX/signalY/frequency
379+
KernelVersion: 6.1
380+
381+
Description:
382+
Read-only attribute that indicates the signal Y frequency, in Hz.

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Description:
196196
Raw capacitance measurement from channel Y. Units after
197197
application of scale and offset are nanofarads.
198198

199-
What: /sys/.../iio:deviceX/in_capacitanceY-in_capacitanceZ_raw
199+
What: /sys/.../iio:deviceX/in_capacitanceY-capacitanceZ_raw
200200
KernelVersion: 3.2
201201
202202
Description:
@@ -207,6 +207,25 @@ Description:
207207
is required is a consistent labeling. Units after application
208208
of scale and offset are nanofarads.
209209

210+
What: /sys/.../iio:deviceX/in_capacitanceY-capacitanceZ_zeropoint
211+
KernelVersion: 6.1
212+
213+
Description:
214+
For differential channels, this an offset that is applied
215+
equally to both inputs. As the reading is of the difference
216+
between the two inputs, this should not be applied to the _raw
217+
reading by userspace (unlike _offset) and unlike calibbias
218+
it does not affect the differential value measured because
219+
the effect of _zeropoint cancels out across the two inputs
220+
that make up the differential pair. It's purpose is to bring
221+
the individual signals, before the differential is measured,
222+
within the measurement range of the device. The naming is
223+
chosen because if the separate inputs that make the
224+
differential pair are drawn on a graph in their
225+
_raw units, this is the value that the zero point on the
226+
measurement axis represents. It is expressed with the
227+
same scaling as _raw.
228+
210229
What: /sys/bus/iio/devices/iio:deviceX/in_temp_raw
211230
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_raw
212231
What: /sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
@@ -241,6 +260,15 @@ Description:
241260
Has all of the equivalent parameters as per voltageY. Units
242261
after application of scale and offset are m/s^2.
243262

263+
What: /sys/bus/iio/devices/iio:deviceX/in_accel_linear_x_raw
264+
What: /sys/bus/iio/devices/iio:deviceX/in_accel_linear_y_raw
265+
What: /sys/bus/iio/devices/iio:deviceX/in_accel_linear_z_raw
266+
KernelVersion: 6.1
267+
268+
Description:
269+
As per in_accel_X_raw attributes, but minus the
270+
acceleration due to gravity.
271+
244272
What: /sys/bus/iio/devices/iio:deviceX/in_gravity_x_raw
245273
What: /sys/bus/iio/devices/iio:deviceX/in_gravity_y_raw
246274
What: /sys/bus/iio/devices/iio:deviceX/in_gravity_z_raw
@@ -2038,3 +2066,99 @@ Description:
20382066
Available range for the forced calibration value, expressed as:
20392067

20402068
- a range specified as "[min step max]"
2069+
2070+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageX_sampling_frequency
2071+
What: /sys/bus/iio/devices/iio:deviceX/in_powerY_sampling_frequency
2072+
What: /sys/bus/iio/devices/iio:deviceX/in_currentZ_sampling_frequency
2073+
KernelVersion: 5.20
2074+
2075+
Description:
2076+
Some devices have separate controls of sampling frequency for
2077+
individual channels. If multiple channels are enabled in a scan,
2078+
then the sampling_frequency of the scan may be computed from the
2079+
per channel sampling frequencies.
2080+
2081+
What: /sys/.../events/in_accel_gesture_singletap_en
2082+
What: /sys/.../events/in_accel_gesture_doubletap_en
2083+
KernelVersion: 6.1
2084+
2085+
Description:
2086+
Device generates an event on a single or double tap.
2087+
2088+
What: /sys/.../events/in_accel_gesture_singletap_value
2089+
What: /sys/.../events/in_accel_gesture_doubletap_value
2090+
KernelVersion: 6.1
2091+
2092+
Description:
2093+
Specifies the threshold value that the device is comparing
2094+
against to generate the tap gesture event. The lower
2095+
threshold value increases the sensitivity of tap detection.
2096+
Units and the exact meaning of value are device-specific.
2097+
2098+
What: /sys/.../events/in_accel_gesture_tap_value_available
2099+
KernelVersion: 6.1
2100+
2101+
Description:
2102+
Lists all available threshold values which can be used to
2103+
modify the sensitivity of the tap detection.
2104+
2105+
What: /sys/.../events/in_accel_gesture_singletap_reset_timeout
2106+
What: /sys/.../events/in_accel_gesture_doubletap_reset_timeout
2107+
KernelVersion: 6.1
2108+
2109+
Description:
2110+
Specifies the timeout value in seconds for the tap detector
2111+
to not to look for another tap event after the event as
2112+
occurred. Basically the minimum quiet time between the two
2113+
single-tap's or two double-tap's.
2114+
2115+
What: /sys/.../events/in_accel_gesture_tap_reset_timeout_available
2116+
KernelVersion: 6.1
2117+
2118+
Description:
2119+
Lists all available tap reset timeout values. Units in seconds.
2120+
2121+
What: /sys/.../events/in_accel_gesture_doubletap_tap2_min_delay
2122+
KernelVersion: 6.1
2123+
2124+
Description:
2125+
Specifies the minimum quiet time in seconds between the two
2126+
taps of a double tap.
2127+
2128+
What: /sys/.../events/in_accel_gesture_doubletap_tap2_min_delay_available
2129+
KernelVersion: 6.1
2130+
2131+
Description:
2132+
Lists all available delay values between two taps in the double
2133+
tap. Units in seconds.
2134+
2135+
What: /sys/.../events/in_accel_gesture_tap_maxtomin_time
2136+
KernelVersion: 6.1
2137+
2138+
Description:
2139+
Specifies the maximum time difference allowed between upper
2140+
and lower peak of tap to consider it as the valid tap event.
2141+
Units in seconds.
2142+
2143+
What: /sys/.../events/in_accel_gesture_tap_maxtomin_time_available
2144+
KernelVersion: 6.1
2145+
2146+
Description:
2147+
Lists all available time values between upper peak to lower
2148+
peak. Units in seconds.
2149+
2150+
What: /sys/bus/iio/devices/iio:deviceX/in_rot_yaw_raw
2151+
What: /sys/bus/iio/devices/iio:deviceX/in_rot_pitch_raw
2152+
What: /sys/bus/iio/devices/iio:deviceX/in_rot_roll_raw
2153+
KernelVersion: 6.1
2154+
2155+
Description:
2156+
Raw (unscaled) euler angles readings. Units after
2157+
application of scale are deg.
2158+
2159+
What: /sys/bus/iio/devices/iio:deviceX/serialnumber
2160+
KernelVersion: 6.1
2161+
2162+
Description:
2163+
An example format is 16-bytes, 2-digits-per-byte, HEX-string
2164+
representing the sensor unique ID number.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_accel_raw_range
2+
KernelVersion: 6.1
3+
4+
Description:
5+
Raw (unscaled) range for acceleration readings. Unit after
6+
application of scale is m/s^2. Note that this doesn't affects
7+
the scale (which should be used when changing the maximum and
8+
minimum readable value affects also the reading scaling factor).
9+
10+
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_raw_range
11+
KernelVersion: 6.1
12+
13+
Description:
14+
Range for angular velocity readings in radians per second. Note
15+
that this does not affects the scale (which should be used when
16+
changing the maximum and minimum readable value affects also the
17+
reading scaling factor).
18+
19+
What: /sys/bus/iio/devices/iio:deviceX/in_accel_raw_range_available
20+
KernelVersion: 6.1
21+
22+
Description:
23+
List of allowed values for in_accel_raw_range attribute
24+
25+
What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_raw_range_available
26+
KernelVersion: 6.1
27+
28+
Description:
29+
List of allowed values for in_anglvel_raw_range attribute
30+
31+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_calibration_fast_enable
32+
KernelVersion: 6.1
33+
34+
Description:
35+
Can be 1 or 0. Enables/disables the "Fast Magnetometer
36+
Calibration" HW function.
37+
38+
What: /sys/bus/iio/devices/iio:deviceX/fusion_enable
39+
KernelVersion: 6.1
40+
41+
Description:
42+
Can be 1 or 0. Enables/disables the "sensor fusion" (a.k.a.
43+
NDOF) HW function.
44+
45+
What: /sys/bus/iio/devices/iio:deviceX/calibration_data
46+
KernelVersion: 6.1
47+
48+
Description:
49+
Reports the binary calibration data blob for the IMU sensors.
50+
51+
What: /sys/bus/iio/devices/iio:deviceX/in_accel_calibration_auto_status
52+
KernelVersion: 6.1
53+
54+
Description:
55+
Reports the autocalibration status for the accelerometer sensor.
56+
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
57+
the number, the better the calibration status.
58+
59+
What: /sys/bus/iio/devices/iio:deviceX/in_gyro_calibration_auto_status
60+
KernelVersion: 6.1
61+
62+
Description:
63+
Reports the autocalibration status for the gyroscope sensor.
64+
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
65+
the number, the better the calibration status.
66+
67+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_calibration_auto_status
68+
KernelVersion: 6.1
69+
70+
Description:
71+
Reports the autocalibration status for the magnetometer sensor.
72+
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
73+
the number, the better the calibration status.
74+
75+
What: /sys/bus/iio/devices/iio:deviceX/sys_calibration_auto_status
76+
KernelVersion: 6.1
77+
78+
Description:
79+
Reports the status for the IMU overall autocalibration.
80+
Can be 0 (calibration non even enabled) or 1 to 5 where the greater
81+
the number, the better the calibration status.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
What: /sys/.../iio:deviceX/in_capacitableY_calibbias_calibration
2+
What: /sys/.../iio:deviceX/in_capacitableY_calibscale_calibration
3+
KernelVersion: 6.1
4+
5+
Description:
6+
Write 1 to trigger a calibration of the calibbias or
7+
calibscale. For calibscale, a full scale capacitance should
8+
be connected to the capacitance input and a
9+
calibscale_calibration then started. For calibbias see
10+
the device datasheet section on "capacitive system offset
11+
calibration".
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune
2+
Date: October 2022
3+
KernelVersion: 6.1
4+
Contact: Yicong Yang <[email protected]>
5+
Description: This directory contains files for tuning the PCIe link
6+
parameters(events). Each file is named after the event
7+
of the PCIe link.
8+
9+
See Documentation/trace/hisi-ptt.rst for more information.
10+
11+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl
12+
Date: October 2022
13+
KernelVersion: 6.1
14+
Contact: Yicong Yang <[email protected]>
15+
Description: (RW) Controls the weight of Tx completion TLPs, which influence
16+
the proportion of outbound completion TLPs on the PCIe link.
17+
The available tune data is [0, 1, 2]. Writing a negative value
18+
will return an error, and out of range values will be converted
19+
to 2. The value indicates a probable level of the event.
20+
21+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np
22+
Date: October 2022
23+
KernelVersion: 6.1
24+
Contact: Yicong Yang <[email protected]>
25+
Description: (RW) Controls the weight of Tx non-posted TLPs, which influence
26+
the proportion of outbound non-posted TLPs on the PCIe link.
27+
The available tune data is [0, 1, 2]. Writing a negative value
28+
will return an error, and out of range values will be converted
29+
to 2. The value indicates a probable level of the event.
30+
31+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p
32+
Date: October 2022
33+
KernelVersion: 6.1
34+
Contact: Yicong Yang <[email protected]>
35+
Description: (RW) Controls the weight of Tx posted TLPs, which influence the
36+
proportion of outbound posted TLPs on the PCIe link.
37+
The available tune data is [0, 1, 2]. Writing a negative value
38+
will return an error, and out of range values will be converted
39+
to 2. The value indicates a probable level of the event.
40+
41+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level
42+
Date: October 2022
43+
KernelVersion: 6.1
44+
Contact: Yicong Yang <[email protected]>
45+
Description: (RW) Control the allocated buffer watermark for inbound packets.
46+
The packets will be stored in the buffer first and then transmitted
47+
either when the watermark reached or when timed out.
48+
The available tune data is [0, 1, 2]. Writing a negative value
49+
will return an error, and out of range values will be converted
50+
to 2. The value indicates a probable level of the event.
51+
52+
What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level
53+
Date: October 2022
54+
KernelVersion: 6.1
55+
Contact: Yicong Yang <[email protected]>
56+
Description: (RW) Control the allocated buffer watermark of outbound packets.
57+
The packets will be stored in the buffer first and then transmitted
58+
either when the watermark reached or when timed out.
59+
The available tune data is [0, 1, 2]. Writing a negative value
60+
will return an error, and out of range values will be converted
61+
to 2. The value indicates a probable level of the event.

0 commit comments

Comments
 (0)