1# Copyright (c) 2021 Nuvoton Technology Corporation. 2# SPDX-License-Identifier: Apache-2.0 3 4description: Nuvoton, NPCX-Tachometer node 5 6compatible: "nuvoton,npcx-tach" 7 8include: [tach.yaml, pinctrl-device.yaml] 9 10properties: 11 reg: 12 required: true 13 clocks: 14 required: true 15 pinctrl-0: 16 required: true 17 pinctrl-names: 18 required: true 19 sample-clk: 20 type: int 21 description: | 22 sampling clock frequency of tachometer. Please notice that it must be 23 fixed to 32768 if bus in clocks property is NPCX_CLOCK_BUS_LFCLK. 24 port: 25 type: int 26 description: selected port of tachometer (port-A is 0 and port-B is 1) 27 pulses-per-round: 28 type: int 29 description: number of pulses (holes) per round of tachometer's input (encoder) 30