[PATCH 2/2] dt-bindings: hwmon: Add description for new hwmon driver hs300x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the initial description.

Signed-off-by: Andre Werner <andre.werner@xxxxxxxxxxxxxxxxxxxxx>
---
 .../devicetree/bindings/hwmon/hs300x.yaml     | 58 +++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/hs300x.yaml

diff --git a/Documentation/devicetree/bindings/hwmon/hs300x.yaml b/Documentation/devicetree/bindings/hwmon/hs300x.yaml
new file mode 100644
index 000000000000..7a9b3ee3738b
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/hs300x.yaml
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/hs300x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Renesas HS300x humidity and temperature sensor
+
+maintainers:
+  - Andre Werner (andre.werner@xxxxxxxxxxxxxxxxxxxxx)
+
+description: |
+  This driver implements support for the Renesas HS300x chips, a humidity
+  and temperature family. Temperature is measured in degrees celsius, relative
+  humidity is expressed as a percentage. In the sysfs interface, all values are
+  scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.
+
+  The device communicates with the I2C protocol. Sensors can have the I2C
+  address 0x44 by default.
+
+  The driver does not support the sensor's configuration possibilities.
+
+  The driver is able to be read out using lmsensors.
+
+  Datasheets:
+  https://www.renesas.com/us/en/document/dst/hs300x-datasheet?r=417401
+
+
+
+properties:
+  compatible:
+    enum:
+      - hs3001
+      - hs3002
+      - hs3003
+      - hs3004
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          humidity: hs3002@44 {
+              compatible = "hs3002";
+              reg = <0x44>;
+          };
+    };
-- 
2.41.0




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux