From 048787d3cfd0595748513b94fc10a179fd91b01d Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Wed, 27 Apr 2022 21:49:23 +0530 Subject: [PATCH] documentation: Add DT binding document for generic PWM based tachometer Add Device Tree binding document for the generic PWM based tachometer. Bug 3621819 Change-Id: Ic8184e3e86d8708fd776d276e4d9994e4103b5ed Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2703730 GVS: Gerrit_Virtual_Submit --- .../hwmon/generic-pwm-tachometer.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.yaml diff --git a/Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.yaml b/Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.yaml new file mode 100644 index 00000000..4778eca9 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/generic-pwm-tachometer.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/generic-pwm-tachometer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic PWM based tachometer HW monitor driver + +maintainers: + - Laxman Dewangan + +description: | + Generic PWM based tachometer driver which captures the PWM signal and reports + the speed of the device which generates the PWM signal. This helps in monitor + the speed of fan. + +properties: + compatible: + enum: + - generic-pwm-tachometer + + pwms: + maxItems: 1 + description: | + This property contains the phandle of the PWM controller which capture the + PWM signal. + +required: + - compatible + - pwms + +additionalProperties: false + +examples: + - | + tegra_tachometer: tachometer@39c0000 { + reg = <0x39c0000 0x0>; + #pwm-cells = <2>; + /* Other properties of tachometer */ + }; + + generic_pwm_tachometer { + compatible = "generic-pwm-tachometer"; + pwms = <&tegra_tachometer 0 1000000>; + }; +...