WIP: device tree MVP

This commit is contained in:
Daniel Agar
2022-01-06 17:20:17 -05:00
parent 07d75d85cf
commit 1f39b42525
1395 changed files with 68755 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# Copyright (c) 2021 ITE Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
description: ITE, it8xxx2 Tachometer node
compatible: "ite,it8xxx2-tach"
include: tach.yaml
properties:
reg:
required: true
dvs-bit:
type: int
required: true
description: tachometer data valid bit of tswctlr register
chsel-bit:
type: int
required: true
description: tachometer data valid status bit of tswctlr register
pinctrl-0:
type: phandles
required: true
description: configuration of tachometer pinmux controller
channel:
type: int
required: true
enum:
- 0
- 1
description: 0 = TACH_CHANNEL_A, 1 = TACH_CHANNEL_B
pulses-per-round:
type: int
required: true
description: number of pulses per round of tachometer's input
+21
View File
@@ -0,0 +1,21 @@
# Copyright (c) 2020, Intel Corporation
# SPDX-License-Identifier: Apache-2.0
description: Microchip XEC tachometer controller
compatible: "microchip,xec-tach"
include: tach.yaml
properties:
"#address-cells":
required: true
const: 1
"#size-cells":
type: int
const: 0
reg:
required: true
interrupts:
required: true
+32
View File
@@ -0,0 +1,32 @@
# Copyright (c) 2021 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
description: Nuvoton, NPCX-Tachometer node
compatible: "nuvoton,npcx-tach"
include: tach.yaml
properties:
reg:
required: true
clocks:
required: true
pinctrl-0:
type: phandles
required: false
description: configurations of pinmux controllers in tachometers
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)
+12
View File
@@ -0,0 +1,12 @@
# Copyright (c) 2020, Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Common properties for HW supported tachometers
include: base.yaml
bus: tach
properties:
label:
required: true