[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231205074723.3546295-3-chou.cosmo@gmail.com>
Date: Tue, 5 Dec 2023 15:47:22 +0800
From: Cosmo Chou <chou.cosmo@...il.com>
To: jdelvare@...e.com, linux@...ck-us.net, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
corbet@....net, heiko@...ech.de, jernej.skrabec@...il.com,
macromorgan@...mail.com, linus.walleij@...aro.org
Cc: linux-hwmon@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
chou.cosmo@...il.com, cosmo.chou@...ntatw.com
Subject: [PATCH 2/3] dt-bindings: hwmon: pt516xx: add bindings
Add dt-bindings for pt516xx temperature monitor.
Signed-off-by: Cosmo Chou <chou.cosmo@...il.com>
---
.../bindings/hwmon/asteralabs,pt516xx.yaml | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/asteralabs,pt516xx.yaml
diff --git a/Documentation/devicetree/bindings/hwmon/asteralabs,pt516xx.yaml b/Documentation/devicetree/bindings/hwmon/asteralabs,pt516xx.yaml
new file mode 100644
index 000000000000..5700d4c91a0d
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/asteralabs,pt516xx.yaml
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwmon/asteralabs,pt516xx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: PT5161L hwmon sensor
+
+maintainers:
+ - Cosmo Chou <cosmo.chou@...ntatw.com>
+
+properties:
+ compatible:
+ enum:
+ - asteralabs,pt5161l
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sensor@24 {
+ compatible = "asteralabs,pt5161l";
+ reg = <0x24>;
+ };
+ };
--
2.34.1
Powered by blists - more mailing lists