lkml.org 
[lkml]   [2020]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC 1/2] dt-bindings: thermal: sprd: Add virtual thermal documentation
Date
From: "jeson.gao" <jeson.gao@unisoc.com>

virtual thermal node definition description in dts file

Signed-off-by: jeson.gao <jeson.gao@unisoc.com>
---
.../thermal/sprd-virtual-thermal.yaml | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/sprd-virtual-thermal.yaml

diff --git a/Documentation/devicetree/bindings/thermal/sprd-virtual-thermal.yaml b/Documentation/devicetree/bindings/thermal/sprd-virtual-thermal.yaml
new file mode 100644
index 000000000000..3e3d2282e2a4
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/sprd-virtual-thermal.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/sprd-virtual-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Spreadtrum virtual thermal driver bindings
+
+maintainers:
+ - Yunxiao Gao <gao.yunxiao6@gmail.com>
+
+properties:
+ compatible:
+ const: sprd,virtual-thermal
+
+ reg:
+ description: specify the virtual sensor id.
+ maxItems: 1
+
+ thmzone-names:
+ description: specify per-core thermal zone name.
+
+required:
+ - compatible
+ - reg
+ - thmzone-names
+
+additionalProperties: false
+
+examples:
+ - |
+ virtual_sensor: virtual-sensor@1 {
+ compatible = "sprd,virtual-thermal";
+ reg = <1>;
+ thmzone-names = "ank0-thmzone","ank1-thmzone","ank2-thmzone",
+ "ank3-thmzone","ank4-thmzone","ank5-thmzone","prometheus6-tzone0",
+ "prometheus6-tzone1","prometheus7-thmzone";
+ };
--
2.28.0
\
 
 \ /
  Last update: 2020-11-27 09:36    [W:0.068 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site