From 3c5adb91eafcc13cb30caa71b028f5171baa4a87 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Fri, 22 Apr 2022 10:20:21 +0000 Subject: [PATCH] Documentation: devicetree: Add DT binding document for pex9749-thermal Add device tree binding document for the thermal sensor pex9749. bug 3587973 Change-Id: I0793854fd5a22cc2daa59408bb9adcb4aa78cade Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2701480 GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas --- .../bindings/thermal/pex9749-thermal.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/pex9749-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/pex9749-thermal.yaml b/Documentation/devicetree/bindings/thermal/pex9749-thermal.yaml new file mode 100644 index 00000000..fda10b5a --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/pex9749-thermal.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/pex9749-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PEX9749 Thermal Sensor + +maintainers: + - Laxman Dewangan + +description: | + PEX9749 thermal sensor monitors the temperature. + +properties: + compatible: + const: "pex9749" + + reg: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + +required: + - compatible + - reg + - "#thermal-sensor-cells" + +additionalProperties: false + +examples: + - | + i2c@3180000 { + pex9749: pex9749@5f { + compatible = "pex9749"; + reg = <0x5f>; + #thermal-sensor-cells = <1>; + }; + };