blob: ed4d352dcaad04b79d8aa9a9ec23fd969dcedaff [file] [log] [blame]
# Copyright (c) 2021 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
description: Nuvoton, NPCX-Tachometer node
compatible: "nuvoton,npcx-tach"
include: [tach.yaml, pinctrl-device.yaml]
properties:
reg:
required: true
clocks:
required: true
pinctrl-0:
required: true
pinctrl-names:
required: true
sample-clk:
type: int
required: false
description: |
sampling clock frequency of tachometer. Please notice that it must be
fixed to 32768 if bus in clocks property is NPCX_CLOCK_BUS_LFCLK.
port:
type: int
required: false
description: selected port of tachometer (port-A is 0 and port-B is 1)
pulses-per-round:
type: int
required: false
description: number of pulses (holes) per round of tachometer's input (encoder)