From 98bef9a08cfdcf9b1789ea9fa065f970531b3408 Mon Sep 17 00:00:00 2001 From: Francisco Munoz Date: Mon, 3 Feb 2020 16:50:44 -0800 Subject: [PATCH] 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 --- dts/arm/microchip/mec1501hsz.dtsi | 36 +++++++++++++++++++++++ dts/bindings/tach/microchip,xec-tach.yaml | 21 +++++++++++++ dts/bindings/tach/tach.yaml | 12 ++++++++ 3 files changed, 69 insertions(+) create mode 100644 dts/bindings/tach/microchip,xec-tach.yaml create mode 100644 dts/bindings/tach/tach.yaml diff --git a/dts/arm/microchip/mec1501hsz.dtsi b/dts/arm/microchip/mec1501hsz.dtsi index 7a228a892c1..1672dbec66d 100644 --- a/dts/arm/microchip/mec1501hsz.dtsi +++ b/dts/arm/microchip/mec1501hsz.dtsi @@ -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>; + }; }; }; diff --git a/dts/bindings/tach/microchip,xec-tach.yaml b/dts/bindings/tach/microchip,xec-tach.yaml new file mode 100644 index 00000000000..be849a0da03 --- /dev/null +++ b/dts/bindings/tach/microchip,xec-tach.yaml @@ -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 diff --git a/dts/bindings/tach/tach.yaml b/dts/bindings/tach/tach.yaml new file mode 100644 index 00000000000..0091a27acb6 --- /dev/null +++ b/dts/bindings/tach/tach.yaml @@ -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