2021-01-12 17:45:06 +08:00
|
|
|
# Copyright (c) 2021 Nuvoton Technology Corporation.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
description: Nuvoton, NPCX-Tachometer node
|
|
|
|
|
|
|
|
compatible: "nuvoton,npcx-tach"
|
|
|
|
|
2022-02-22 11:38:22 +08:00
|
|
|
include: [tach.yaml, pinctrl-device.yaml]
|
2021-01-12 17:45:06 +08:00
|
|
|
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
required: true
|
|
|
|
clocks:
|
|
|
|
required: true
|
|
|
|
pinctrl-0:
|
2022-02-22 11:38:22 +08:00
|
|
|
required: true
|
|
|
|
pinctrl-names:
|
|
|
|
required: true
|
2021-03-23 14:57:51 +08:00
|
|
|
sample-clk:
|
2021-01-12 17:45:06 +08:00
|
|
|
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)
|
2021-03-23 14:57:51 +08:00
|
|
|
pulses-per-round:
|
2021-01-12 17:45:06 +08:00
|
|
|
type: int
|
|
|
|
required: false
|
|
|
|
description: number of pulses (holes) per round of tachometer's input (encoder)
|