Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: counter: Convert ftm-quaddec.txt to yaml format

Convert ftm-quaddec.txt to yaml format.

Additional changes:
- Remove "status" at example.
- Remove label at example.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250410222509.3242241-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
65e079fd a172b5de

+37 -19
+36
Documentation/devicetree/bindings/counter/fsl,ftm-quaddec.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/counter/fsl,ftm-quaddec.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: FlexTimer Quadrature decoder counter 8 + 9 + description: 10 + Exposes a simple counter for the quadrature decoder mode. 11 + 12 + maintainers: 13 + - Frank Li <Frank.li@nxp.com> 14 + 15 + properties: 16 + compatible: 17 + const: fsl,ftm-quaddec 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + big-endian: true 23 + 24 + required: 25 + - compatible 26 + - reg 27 + 28 + additionalProperties: false 29 + 30 + examples: 31 + - | 32 + counter@29d0000 { 33 + compatible = "fsl,ftm-quaddec"; 34 + reg = <0x29d0000 0x10000>; 35 + big-endian; 36 + };
-18
Documentation/devicetree/bindings/counter/ftm-quaddec.txt
··· 1 - FlexTimer Quadrature decoder counter 2 - 3 - This driver exposes a simple counter for the quadrature decoder mode. 4 - 5 - Required properties: 6 - - compatible: Must be "fsl,ftm-quaddec". 7 - - reg: Must be set to the memory region of the flextimer. 8 - 9 - Optional property: 10 - - big-endian: Access the device registers in big-endian mode. 11 - 12 - Example: 13 - counter0: counter@29d0000 { 14 - compatible = "fsl,ftm-quaddec"; 15 - reg = <0x0 0x29d0000 0x0 0x10000>; 16 - big-endian; 17 - status = "disabled"; 18 - };
+1 -1
MAINTAINERS
··· 9203 9203 M: Patrick Havelange <patrick.havelange@essensium.com> 9204 9204 L: linux-iio@vger.kernel.org 9205 9205 S: Maintained 9206 - F: Documentation/devicetree/bindings/counter/ftm-quaddec.txt 9206 + F: Documentation/devicetree/bindings/counter/fsl,ftm-quaddec.yaml 9207 9207 F: drivers/counter/ftm-quaddec.c 9208 9208 9209 9209 FLOPPY DRIVER