From: Kamel Bouhara <kamel.bouhara@bootlin.com>
To: William Breathitt Gray <vilhelm.gray@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Ludovic Desroches <ludovic.desroches@microchip.com>,
linux-arm-kernel@lists.infradead.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-iio@vger.kernel.org,
Kamel Bouhara <kamel.bouhara@bootlin.com>
Subject: [PATCH v5 0/5] Microchip TCB Capture driver
Date: Tue, 19 May 2020 10:37:11 +0200 [thread overview]
Message-ID: <20200519083716.938384-1-kamel.bouhara@bootlin.com> (raw)
Hello,
Here is a new counter driver to support Microchip TCB capture devices.
Each SoC has two TCB blocks, each one including three independent
channels.The following series adds support for two counter modes:
increase and quadrature decoder.
As for the atmel clocksource and pwm, the counter driver needs to fill
some tcb capabilities in order to operate with the right configuration.
This is achieved in first patch of this series.
Please feel free to comment.
Cheers,
Changes in v5:
- Fix duplicate keys errors in yaml dt-schema
Changes in v4:
- Use existing binding to document capture mode of the Microchip TCBs.
Changes in v3:
- Updated the brand name: s/atmel/microchip/.
- Added missing kernel doc for new elements introduced in structure
atmel_tcb_config.
- Removed useless blank line
- Added an explicit clock removing path using devm_add_action_or_reset
Changes in v2:
- Fixed first patch not applying on mainline
- Updated return code to -EINVAL when user is requesting qdec mode on
a counter device not supporting it.
- Added an error case returning -EINVAL when action edge is performed
in
qdec mode.
- Removed no need to explicity setting ops to NULL from static struct
as
it is the default value.
- Changed confusing code by using snprintf for the sake of clarity.
- Changed code to use ARRAY_SIZE so that future reviewers will know
that num_counts matches what's in the atmel_tc_count array without
having to check so themselves.
- Fixed errors reported by dt_binding_check
Alexandre Belloni (2):
dt-bindings: atmel-tcb: convert bindings to json-schema
dt-bindings: microchip: atmel,at91rm9200-tcb: add sama5d2 compatible
Kamel Bouhara (3):
ARM: at91: add atmel tcb capabilities
dt-bindings: counter: microchip-tcb-capture counter
counter: Add microchip TCB capture counter
.../devicetree/bindings/mfd/atmel-tcb.txt | 56 ---
.../soc/microchip/atmel,at91rm9200-tcb.yaml | 176 ++++++++
drivers/counter/Kconfig | 11 +
drivers/counter/Makefile | 1 +
drivers/counter/microchip-tcb-capture.c | 397 ++++++++++++++++++
include/soc/at91/atmel_tcb.h | 5 +
6 files changed, 590 insertions(+), 56 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mfd/atmel-tcb.txt
create mode 100644 Documentation/devicetree/bindings/soc/microchip/atmel,at91rm9200-tcb.yaml
create mode 100644 drivers/counter/microchip-tcb-capture.c
--
2.25.0
next reply other threads:[~2020-05-19 8:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 8:37 Kamel Bouhara [this message]
2020-05-19 8:37 ` [PATCH v5 1/5] ARM: at91: add atmel tcb capabilities Kamel Bouhara
2020-05-19 8:37 ` [PATCH v5 2/5] dt-bindings: atmel-tcb: convert bindings to json-schema Kamel Bouhara
2020-05-26 22:49 ` Rob Herring
2020-05-19 8:37 ` [PATCH v5 3/5] dt-bindings: microchip: atmel,at91rm9200-tcb: add sama5d2 compatible Kamel Bouhara
2020-05-26 22:50 ` [PATCH v5 3/5] dt-bindings: microchip: atmel, at91rm9200-tcb: " Rob Herring
2020-05-19 8:37 ` [PATCH v5 4/5] dt-bindings: counter: microchip-tcb-capture counter Kamel Bouhara
2020-05-26 22:51 ` Rob Herring
2020-05-19 8:37 ` [PATCH v5 5/5] counter: Add microchip TCB capture counter Kamel Bouhara
2020-05-24 15:16 ` Jonathan Cameron
2020-05-24 15:35 ` William Breathitt Gray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200519083716.938384-1-kamel.bouhara@bootlin.com \
--to=kamel.bouhara@bootlin.com \
--cc=alexandre.belloni@bootlin.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=ludovic.desroches@microchip.com \
--cc=mark.rutland@arm.com \
--cc=nicolas.ferre@microchip.com \
--cc=robh+dt@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=vilhelm.gray@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).