Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1582611

[PATCH v2 0/2] iio: Add parent_trigger attribute to triggers

From Benjamin Gaignard <benjamin.gaignard@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v2 0/2] iio: Add parent_trigger attribute to triggers
Date 2017-02-16 15:30 +0100
Message-ID <tbveh-7n6-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


version 2:
- Do not automatically set parent_trigger attribute on all triggers.
  Let driver decide to use it.
- Improve documentation of parent_trigger
- Improve slave modes documentation

Thoses patches add parent_trigger attribute to IIO triggers.
Parent trigger edges or levels could be used to control current
trigger for example to start, stop or reset it.

Similary to what already exist to validate a device, a new (optional) 
validate_trigger function is added in iio_trigger structure and should be
filled by drivers.

For STM32 triggers parent trigger edges or levels could used in various ways.
To be able to select them "slave_mode" attribute is added to STM32 triggers.
For example the combinaison of parent_trigger and slave_mode allows to start
a trigger only when parent trigger level is high or to reset it on parent
trigger rising edge.

Benjamin Gaignard (2):
  iio: Allow triggers to be used as parent of others triggers
  iio: stm32 trigger: Implement parent trigger feature

 .../ABI/testing/sysfs-bus-iio-timer-stm32          |  43 +++++++++
 .../ABI/testing/sysfs-bus-iio-trigger-sysfs        |  10 ++
 drivers/iio/industrialio-trigger.c                 |  68 +++++++++++++
 drivers/iio/trigger/stm32-timer-trigger.c          | 105 +++++++++++++++++++++
 include/linux/iio/trigger.h                        |   7 +-
 5 files changed, 232 insertions(+), 1 deletion(-)

-- 
1.9.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] iio: Add parent_trigger attribute to triggers Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-16 15:30 +0100
  [PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger feature Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-16 15:30 +0100
    Re: [PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger  feature Jonathan Cameron <jic23@kernel.org> - 2017-02-19 17:00 +0100
      Re: [PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger feature Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-02-20 14:30 +0100
        Re: [PATCH v2 2/2] iio: stm32 trigger: Implement parent trigger  feature Jonathan Cameron <jic23@kernel.org> - 2017-02-25 17:40 +0100

csiph-web