Skip to content

Commit 2b74240

Browse files
committed
Merge tag 'counter-for-5.16a-take2' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
Jonathan writes: First set of counter subsystem new feature support for the 5.16 cycle Most interesting element this time is the new chrdev based interface for the counter subsystem. Affects all drivers. Some minor precursor patches. Major parts: * Bring all the sysfs attribute setup into the counter core rather than leaving it to individual drivers. Docs updates accompany these changes. * Move various definitions to a uapi header as now needed from userspace. * Add the chardev interface + extensive documentation and example tool * Add new ABI needed to identify indexes needed for chrdev interface * Implement new interface for the 104-quad-8 * Follow up deals with wrong path for documentation build * Various trivial cleanups and missing feature additions related to this series * tag 'counter-for-5.16a-take2' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: docs: counter: Include counter-chrdev kernel-doc to generic-counter.rst counter: fix docum. build problems after filename change counter: microchip-tcb-capture: Tidy up a false kernel-doc /** marking. counter: 104-quad-8: Add IRQ support for the ACCES 104-QUAD-8 counter: 104-quad-8: Replace mutex with spinlock counter: Implement events_queue_size sysfs attribute counter: Implement *_component_id sysfs attributes counter: Implement signalZ_action_component_id sysfs attribute tools/counter: Create Counter tools docs: counter: Document character device interface counter: Add character device interface counter: Move counter enums to uapi header docs: counter: Update to reflect sysfs internalization counter: Update counter.h comments to reflect sysfs internalization counter: Internalize sysfs interface code counter: stm32-timer-cnt: Provide defines for slave mode selection counter: stm32-lptimer-cnt: Provide defines for clock polarities
2 parents 22d4f9b + 49af37f commit 2b74240

29 files changed

+3604
-2794
lines changed

Documentation/ABI/testing/sysfs-bus-counter

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,27 @@ Description:
203203
both edges:
204204
Any state transition.
205205

206+
What: /sys/bus/counter/devices/counterX/countY/ceiling_component_id
207+
What: /sys/bus/counter/devices/counterX/countY/floor_component_id
208+
What: /sys/bus/counter/devices/counterX/countY/count_mode_component_id
209+
What: /sys/bus/counter/devices/counterX/countY/direction_component_id
210+
What: /sys/bus/counter/devices/counterX/countY/enable_component_id
211+
What: /sys/bus/counter/devices/counterX/countY/error_noise_component_id
212+
What: /sys/bus/counter/devices/counterX/countY/prescaler_component_id
213+
What: /sys/bus/counter/devices/counterX/countY/preset_component_id
214+
What: /sys/bus/counter/devices/counterX/countY/preset_enable_component_id
215+
What: /sys/bus/counter/devices/counterX/countY/signalZ_action_component_id
216+
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_component_id
217+
What: /sys/bus/counter/devices/counterX/signalY/cable_fault_enable_component_id
218+
What: /sys/bus/counter/devices/counterX/signalY/filter_clock_prescaler_component_id
219+
What: /sys/bus/counter/devices/counterX/signalY/index_polarity_component_id
220+
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode_component_id
221+
KernelVersion: 5.16
222+
223+
Description:
224+
Read-only attribute that indicates the component ID of the
225+
respective extension or Synapse.
226+
206227
What: /sys/bus/counter/devices/counterX/countY/spike_filter_ns
207228
KernelVersion: 5.14
208229
@@ -212,6 +233,14 @@ Description:
212233
shorter or equal to configured value are ignored. Value 0 means
213234
filter is disabled.
214235

236+
What: /sys/bus/counter/devices/counterX/events_queue_size
237+
KernelVersion: 5.16
238+
239+
Description:
240+
Size of the Counter events queue in number of struct
241+
counter_event data structures. The number of elements will be
242+
rounded-up to a power of 2.
243+
215244
What: /sys/bus/counter/devices/counterX/name
216245
KernelVersion: 5.2
217246
@@ -286,7 +315,14 @@ What: /sys/bus/counter/devices/counterX/signalY/signal
286315
KernelVersion: 5.2
287316
288317
Description:
289-
Signal data of Signal Y represented as a string.
318+
Signal level state of Signal Y. The following signal level
319+
states are available:
320+
321+
low:
322+
Low level state.
323+
324+
high:
325+
High level state.
290326

291327
What: /sys/bus/counter/devices/counterX/signalY/synchronous_mode
292328
KernelVersion: 5.2

0 commit comments

Comments
 (0)