aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Havelange <patrick.havelange@essensium.com>2019-04-02 15:30:50 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-25 21:33:41 +0200
commit7f2e3ea306fc12c2a0939793c5b4e35aef22ac4a (patch)
tree648e1c72c0aea83da8e3ebfa867e60427b92caa5
parentdrivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines (diff)
downloadlinux-dev-7f2e3ea306fc12c2a0939793c5b4e35aef22ac4a.tar.xz
linux-dev-7f2e3ea306fc12c2a0939793c5b4e35aef22ac4a.zip
dt-bindings: counter: ftm-quaddec
FlexTimer quadrature decoder driver. Reviewed-by: Esben Haabendal <esben@haabendal.dk> Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--Documentation/devicetree/bindings/counter/ftm-quaddec.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/counter/ftm-quaddec.txt b/Documentation/devicetree/bindings/counter/ftm-quaddec.txt
new file mode 100644
index 000000000000..4d18cd722074
--- /dev/null
+++ b/Documentation/devicetree/bindings/counter/ftm-quaddec.txt
@@ -0,0 +1,18 @@
+FlexTimer Quadrature decoder counter
+
+This driver exposes a simple counter for the quadrature decoder mode.
+
+Required properties:
+- compatible: Must be "fsl,ftm-quaddec".
+- reg: Must be set to the memory region of the flextimer.
+
+Optional property:
+- big-endian: Access the device registers in big-endian mode.
+
+Example:
+ counter0: counter@29d0000 {
+ compatible = "fsl,ftm-quaddec";
+ reg = <0x0 0x29d0000 0x0 0x10000>;
+ big-endian;
+ status = "disabled";
+ };