dt-bindings: thermal: Convert da906{1,2} thermal to json-schema
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 31 Jan 2024 10:26:54 +0000 (10:26 +0000)
committerLee Jones <lee@kernel.org>
Thu, 8 Feb 2024 13:05:52 +0000 (13:05 +0000)
Convert the da906{1,2} thermal device tree binding documentation to
json-schema.

Update MAINTAINERS entries and description by referring to
dlg,da9062-thermal.yaml binding file.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240131102656.3379-5-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/devicetree/bindings/mfd/da9062.txt
Documentation/devicetree/bindings/thermal/da9062-thermal.txt [deleted file]
Documentation/devicetree/bindings/thermal/dlg,da9062-thermal.yaml [new file with mode: 0644]
MAINTAINERS

index 154c31fa44434cf830f7198fa7574c414757dfb7..c8a7f119ac84fe332a7692fed07128815415288f 100644 (file)
@@ -88,7 +88,7 @@ Sub-nodes:
 
 - watchdog: See ../watchdog/dlg,da9062-watchdog.yaml
 
-- thermal : See ../thermal/da9062-thermal.txt
+- thermal : See ../thermal/dlg,da9062-thermal.yaml
 
 Example:
 
diff --git a/Documentation/devicetree/bindings/thermal/da9062-thermal.txt b/Documentation/devicetree/bindings/thermal/da9062-thermal.txt
deleted file mode 100644 (file)
index e241bb5..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-* Dialog DA9062/61 TJUNC Thermal Module
-
-This module is part of the DA9061/DA9062. For more details about entire
-DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt
-
-Junction temperature thermal module uses an interrupt signal to identify
-high THERMAL_TRIP_HOT temperatures for the PMIC device.
-
-Required properties:
-
-- compatible: should be one of the following valid compatible string lines:
-        "dlg,da9061-thermal", "dlg,da9062-thermal"
-        "dlg,da9062-thermal"
-
-Optional properties:
-
-- polling-delay-passive : Specify the polling period, measured in
-    milliseconds, between thermal zone device update checks.
-
-Example: DA9062
-
-       pmic0: da9062@58 {
-               thermal {
-                       compatible = "dlg,da9062-thermal";
-                       polling-delay-passive = <3000>;
-               };
-       };
-
-Example: DA9061 using a fall-back compatible for the DA9062 onkey driver
-
-       pmic0: da9061@58 {
-               thermal {
-                       compatible = "dlg,da9061-thermal", "dlg,da9062-thermal";
-                       polling-delay-passive = <3000>;
-               };
-       };
diff --git a/Documentation/devicetree/bindings/thermal/dlg,da9062-thermal.yaml b/Documentation/devicetree/bindings/thermal/dlg,da9062-thermal.yaml
new file mode 100644 (file)
index 0000000..206635f
--- /dev/null
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/dlg,da9062-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Dialog DA9062/61 TJUNC Thermal Module
+
+maintainers:
+  - Biju Das <biju.das.jz@bp.renesas.com>
+
+description: |
+  This module is part of the DA9061/DA9062. For more details about entire
+  DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt
+
+  Junction temperature thermal module uses an interrupt signal to identify
+  high THERMAL_TRIP_HOT temperatures for the PMIC device.
+
+properties:
+  compatible:
+    oneOf:
+      - const: dlg,da9062-thermal
+      - items:
+          - const: dlg,da9061-thermal
+          - const: dlg,da9062-thermal
+
+  polling-delay-passive:
+    description:
+      Specify the polling period, measured in milliseconds, between
+      thermal zone device update checks.
+
+required:
+  - compatible
+
+additionalProperties: false
index 60bbdb08bbd6c90969fd7c49ce0c22abd481e5a8..c721a609373c0730459080309c5a469c6b44b73a 100644 (file)
@@ -6154,7 +6154,7 @@ F:        Documentation/devicetree/bindings/regulator/da92*.txt
 F:     Documentation/devicetree/bindings/regulator/dlg,da9*.yaml
 F:     Documentation/devicetree/bindings/regulator/dlg,slg51000.yaml
 F:     Documentation/devicetree/bindings/sound/da[79]*.txt
-F:     Documentation/devicetree/bindings/thermal/da90??-thermal.txt
+F:     Documentation/devicetree/bindings/thermal/dlg,da9062-thermal.yaml
 F:     Documentation/devicetree/bindings/watchdog/dlg,da9062-watchdog.yaml
 F:     Documentation/hwmon/da90??.rst
 F:     drivers/gpio/gpio-da90??.c