mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250107131027.246608-1-krzysztof.kozlowski@linaro.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/thermal/imx8mm-thermal.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: NXP i.MX8M Mini Thermal
|
|
|
|
maintainers:
|
|
- Shawn Guo <shawnguo@kernel.org>
|
|
- Sascha Hauer <s.hauer@pengutronix.de>
|
|
- Fabio Estevam <festevam@gmail.com>
|
|
|
|
description: |
|
|
i.MX8MM has TMU IP to allow temperature measurement, there are
|
|
currently two distinct major versions of the IP that is supported
|
|
by a single driver. The IP versions are named v1 and v2, v1 is
|
|
for i.MX8MM which has ONLY 1 sensor, v2 is for i.MX8MP which has
|
|
2 sensors.
|
|
|
|
$ref: thermal-sensor.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- fsl,imx8mm-tmu
|
|
- fsl,imx8mp-tmu
|
|
- items:
|
|
- const: fsl,imx8mn-tmu
|
|
- const: fsl,imx8mm-tmu
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
nvmem-cells:
|
|
maxItems: 1
|
|
description: Phandle to the calibration data provided by ocotp
|
|
|
|
nvmem-cell-names:
|
|
const: calib
|
|
|
|
"#thermal-sensor-cells":
|
|
description: |
|
|
Number of cells required to uniquely identify the thermal
|
|
sensors, 0 for ONLY one sensor and 1 for multiple sensors.
|
|
enum:
|
|
- 0
|
|
- 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/imx8mm-clock.h>
|
|
|
|
thermal-sensor@30260000 {
|
|
compatible = "fsl,imx8mm-tmu";
|
|
reg = <0x30260000 0x10000>;
|
|
clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
|
|
#thermal-sensor-cells = <0>;
|
|
};
|
|
|
|
...
|