Spreadtrum thermal sensor controller
Schema identifier ($id): "http://devicetree.org/schemas/thermal/sprd-thermal.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
Shared schema rule ($ref): thermal-sensor.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sprd,ums512-thermal"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"enable"
nvmem-cells — required here #
Maximum number of items (maxItems): 2
Reference to nvmem nodes for the calibration data.
nvmem-cell-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"thm_sign_cal"
Item 2
Exact value (
const):"thm_ratio_cal"
#thermal-sensor-cells — not listed as required here #
Exact value (const): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^([a-z]*-)?sensor(-section)?@[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Represent one thermal sensor.
Properties and child nodes (properties) #
reg — required here
Specify the sensor id.
Maximum number of items (maxItems): 1
nvmem-cells — required here
Maximum number of items (maxItems): 1
Reference to an nvmem node for the calibration data.
nvmem-cell-names — required here
Exact value (const): "sen_delta_cal"
Required in this object (required): "reg", "nvmem-cells", "nvmem-cell-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "nvmem-cells", "nvmem-cell-names", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
thermal@32200000 {
compatible = "sprd,ums512-thermal";
reg = <0x32200000 0x10000>;
clock-names = "enable";
clocks = <&aonapb_gate 32>;
#thermal-sensor-cells = <1>;
nvmem-cells = <&thm0_sign>, <&thm0_ratio>;
nvmem-cell-names = "thm_sign_cal", "thm_ratio_cal";
#address-cells = <1>;
#size-cells = <0>;
prometheus-sensor@0 {
reg = <0>;
nvmem-cells = <&thm0_sen0>;
nvmem-cell-names = "sen_delta_cal";
};
ank-sensor@1 {
reg = <1>;
nvmem-cells = <&thm0_sen1>;
nvmem-cell-names = "sen_delta_cal";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)