From 1b4921623de4ffd9da6ed472e83ffb3b8aebd034 Mon Sep 17 00:00:00 2001 From: Steven Chang Date: Fri, 15 Mar 2024 10:46:31 +0800 Subject: [PATCH] dts: binding: tach: Add kb1200 tach A new tach controller addition Signed-off-by: Steven Chang --- dts/bindings/tach/ene,kb1200-tach.yaml | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dts/bindings/tach/ene,kb1200-tach.yaml diff --git a/dts/bindings/tach/ene,kb1200-tach.yaml b/dts/bindings/tach/ene,kb1200-tach.yaml new file mode 100644 index 00000000000..4f89d9a882d --- /dev/null +++ b/dts/bindings/tach/ene,kb1200-tach.yaml @@ -0,0 +1,34 @@ +# Copyright (c) 2024 ENE Technology Inc. +# SPDX-License-Identifier: Apache-2.0 + +description: ENE, KB1200-Tachometer node + +compatible: "ene,kb1200-tach" + +include: [tach.yaml, pinctrl-device.yaml] + +properties: + reg: + required: true + + pulses-per-round: + required: true + type: int + description: number of pulses (holes) per round of tachometer's input (encoder) + + sample-time-us: + required: true + type: int + enum: + - 2 + - 8 + - 16 + - 64 + description: | + sampling time of tachometer. Please notice that it must be 2/8/16/64 us. + + pinctrl-0: + required: true + + pinctrl-names: + required: true