dts: bindings: tach: Add nodes and bindings for tachometer

Introduction of tachometer device nodes for the Microchip
MEC1501 SOC. In addition, dts bindings for are also introduced.

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
This commit is contained in:
Francisco Munoz 2020-02-03 16:50:44 -08:00 committed by Maureen Helm
commit 98bef9a08c
3 changed files with 69 additions and 0 deletions

View file

@ -342,6 +342,42 @@
#size-cells = <0>;
status = "disabled";
};
tach0: tach@40006000 {
compatible = "microchip,xec-tach";
reg = <0x40006000 0x10>;
interrupts = <71 4>;
label = "TACH_0";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
tach1: tach@40006010 {
compatible = "microchip,xec-tach";
reg = <0x40006010 0x10>;
interrupts = <72 4>;
label = "TACH_1";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
tach2: tach@40006020 {
compatible = "microchip,xec-tach";
reg = <0x40006020 0x10>;
interrupts = <73 4>;
label = "TACH_2";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
tach3: tach@40006030 {
compatible = "microchip,xec-tach";
reg = <0x40006030 0x10>;
interrupts = <159 4>;
label = "TACH_3";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
};
};

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

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