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 <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2703730
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Laxman Dewangan
2022-04-27 21:49:23 +05:30
committed by mobile promotions
parent 5ee5661688
commit 048787d3cf

View File

@@ -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 <ldewangan@nvidia.com>
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>;
};
...