e6cfecfe250c98d838020796bde9aefaebfb9929
[openwrt/staging/blocktrron.git] /
1 From 25478932f5d9e6f763cdf9a0ee2272e33510a76a Mon Sep 17 00:00:00 2001
2 From: Michael Shych <michaelsh@nvidia.com>
3 Date: Sat, 30 Apr 2022 14:49:04 +0300
4 Subject: [PATCH] dt-bindings: hwmon: add microchip,emc2305.yaml dt
5 binding description.
6
7 Submitted to linux-hwmon mailing list at
8 https://patchwork.kernel.org/project/linux-hwmon/patch/20220430114905.53448-3-michaelsh@nvidia.com/
9
10 Add basic description of emc2305 driver device tree binding.
11
12 Signed-off-by: Michael Shych <michaelsh@nvidia.com>
13 Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
14 ---
15 .../bindings/hwmon/microchip,emc2305.yaml | 54 +++++++++++++++++++
16 1 file changed, 54 insertions(+)
17 create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,emc2305.yaml
18
19 --- /dev/null
20 +++ b/Documentation/devicetree/bindings/hwmon/microchip,emc2305.yaml
21 @@ -0,0 +1,54 @@
22 +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
23 +%YAML 1.2
24 +---
25 +
26 +$id: http://devicetree.org/schemas/hwmon/emc2305.yaml#
27 +$schema: http://devicetree.org/meta-schemas/core.yaml#
28 +
29 +title: Microchip EMC2305 RPM-based PWM Fan Speed Controller
30 +
31 +properties:
32 + compatible:
33 + enum:
34 + - microcip,emc2305
35 +
36 + emc2305,pwm-min:
37 + description:
38 + Min pwm of emc2305
39 + maxItems: 1
40 + emc2305,pwm-max:
41 + description:
42 + Max pwm of emc2305
43 + maxItems: 1
44 + emc2305,pwm-channel:
45 + description:
46 + Max number of pwm channels
47 + maxItems: 1
48 + emcs205,max-state:
49 + description:
50 + maxItems: 1
51 + emc2305,cooling-levels:
52 + description:
53 + Quantity of cooling level state.
54 + maxItems: 1
55 +
56 +required:
57 + - compatible
58 +
59 +optional:
60 + - emc2305,min-pwm
61 + - emc2305,max-pwm
62 + - emc2305,pwm-channels
63 + - emc2305,cooling-levels
64 +
65 +additionalProperties: false
66 +
67 +examples:
68 + - |
69 + fan {
70 + emc2305,compatible = "microchip,emc2305";
71 + emc2305,pwm-min = <0>;
72 + emc2305,pwm-max = <255>;
73 + emc2305,pwm-channel = <5>
74 + emc2305,cooling-levels = <10>;
75 + };