From: Mathew McBride <matt@traverse.com.au>
To: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org,
jdelvare@suse.com, linux@roeck-us.net,
krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org,
leoyang.li@nxp.com, robh+dt@kernel.org,
linux-kernel@vger.kernel.org
Cc: Mathew McBride <matt@traverse.com.au>
Subject: [PATCH 2/3] dt-bindings: add binding for Microchip EMC230X fan controller family
Date: Wed, 14 Sep 2022 05:30:29 +0000 [thread overview]
Message-ID: <20220914053030.8929-3-matt@traverse.com.au> (raw)
In-Reply-To: <20220914053030.8929-1-matt@traverse.com.au>
Add a binding for the Microchip EMC230X fan controller family,
which is supported by the new "emc230x" hwmon driver.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
---
.../bindings/hwmon/microchip,emc2301.yaml | 83 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 84 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml
diff --git a/Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml b/Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml
new file mode 100644
index 000000000000..1e5c7072caee
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/microchip,emc2301.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip EMC230X family RPM fan controller
+
+maintainers:
+ - Mathew McBride <matt@traverse.com.au>
+
+description: |
+ The Microchip EMC230X family (formerly produced by SMSC) is a family
+ of fan controllers which can drive via a set PWM period or
+ to a target RPM speed. They are available in variants from 1 to 5
+ independent channels.
+
+ Product information:
+ https://www.microchip.com/en-us/product/EMC2301
+ https://www.microchip.com/en-us/product/EMC2302
+ https://www.microchip.com/en-us/product/EMC2303
+ https://www.microchip.com/en-us/product/EMC2305
+
+
+properties:
+ compatible:
+ enum:
+ - microchip,emc2301
+ - microchip,emc2302
+ - microchip,emc2303
+ - microchip,emc2305
+ reg:
+ maxItems: 1
+
+ "#address-cells": true
+
+ "#size-cells": true
+
+required:
+ - compatible
+ - reg
+
+patternProperties:
+ "fan@[0-9]+$":
+ type: object
+ description: Fan channel properties for use as a thermal cooling device
+
+ properties:
+ min-rpm:
+ description: Minimum fan RPM when used as a cooling device
+ maxItems: 1
+ max-rpm:
+ description: Maximum fan RPM when used as a cooling device
+ maxItems: 1
+ reg:
+ description: Channel number on EMC230X device the fan is attached to
+ maxItems: 1
+ "#cooling-cells":
+ const: 2
+ required:
+ - reg
+ - min-rpm
+ - max-rpm
+ - "#cooling-cells"
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ fanctrl@2f {
+ compatible = "microchip,emc2301";
+ reg = <0x2f>;
+
+ fan@0 {
+ min-rpm = /bits/ 16 <3500>;
+ max-rpm = /bits/ 16 <5000>;
+ reg = <0>;
+ }
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index bf3c6c3c0492..5938780abe20 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -8046,6 +8046,7 @@ MICROCHIP EMC230X PWM-FAN CONTROLLER DRIVERS
M: Mathew McBride <matt@traverse.com.au>
L: linux-hwmon@vger.kernel.org
S: Maintained
+F: Documentation/devicetree/bindings/hwmon/microchip,emc2301.yaml
F: drivers/hwmon/emc230x.c
MICROCHIP POLARFIRE FPGA DRIVERS
--
2.30.1
next prev parent reply other threads:[~2022-09-14 5:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 5:30 [PATCH 0/3] hwmon: add Microchip EMC230X fan controller driver Mathew McBride
2022-09-14 5:30 ` [PATCH 1/3] hwmon: (emc230x) add Microchip (SMSC) EMC230X fan controller support Mathew McBride
2022-09-14 5:30 ` Mathew McBride [this message]
2022-09-14 5:30 ` [PATCH 3/3] arm64: dts: ten64: add configuration for fan controller Mathew McBride
2022-09-14 10:12 ` [PATCH 0/3] hwmon: add Microchip EMC230X fan controller driver Guenter Roeck
2022-09-14 10:24 ` Mathew McBride
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220914053030.8929-3-matt@traverse.com.au \
--to=matt@traverse.com.au \
--cc=devicetree@vger.kernel.org \
--cc=jdelvare@suse.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=leoyang.li@nxp.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh+dt@kernel.org \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox