Commit 98bcee25 authored by Alexander Stein's avatar Alexander Stein Committed by Daniel Lezcano

dt-bindings: imx-thermal: Add #thermal-sensor-cells property

This property is defined in thermal-sensor.yaml. Reference this file and
constraint '#thermal-sensor-cells' to 0 for imx-thermal.
Fixes the warning:
arch/arm/boot/dts/nxp/imx/imx6q-mba6a.dtb: tempmon:
 '#thermal-sensor-cells' does not match any of the regexes: 'pinctrl-[0-9]+'
 From schema: Documentation/devicetree/bindings/thermal/imx-thermal.yaml
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20231012080033.2715241-2-alexander.stein@ew.tq-group.com
parent 50ab5309
...@@ -60,6 +60,9 @@ properties: ...@@ -60,6 +60,9 @@ properties:
clocks: clocks:
maxItems: 1 maxItems: 1
"#thermal-sensor-cells":
const: 0
required: required:
- compatible - compatible
- interrupts - interrupts
...@@ -67,6 +70,9 @@ required: ...@@ -67,6 +70,9 @@ required:
- nvmem-cells - nvmem-cells
- nvmem-cell-names - nvmem-cell-names
allOf:
- $ref: thermal-sensor.yaml#
additionalProperties: false additionalProperties: false
examples: examples:
...@@ -104,5 +110,6 @@ examples: ...@@ -104,5 +110,6 @@ examples:
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade"; nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
#thermal-sensor-cells = <0>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment