| # 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 |
| 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 |
| description: selected port of tachometer (port-A is 0 and port-B is 1) |
| pulses-per-round: |
| type: int |
| description: number of pulses (holes) per round of tachometer's input (encoder) |