Broadcom Stingray Thermal Sensors

Schema identifier ($id): "http://devicetree.org/schemas/thermal/brcm,sr-thermal.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): thermal-sensor.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,sr-thermal"

reg — required here #

Maximum number of items (maxItems): 1

brcm,tmon-mask — required here #

A one-cell bit mask of valid TMON sources. Each bit represents a single TMON source.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

#thermal-sensor-cells — not listed as required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "brcm,tmon-mask"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

tmon: thermal-sensor@0 {
    compatible = "brcm,sr-thermal";
    reg = <0x0 0x40>;
    brcm,tmon-mask = <0x3f>;
    #thermal-sensor-cells = <1>;
};

thermal-zones {
  ihost0_thermal: ihost0-thermal {
    polling-delay-passive = <0>;
    polling-delay = <1000>;
    thermal-sensors = <&tmon 0>;
    trips {
      cpu-crit {
        temperature = <105000>;
        hysteresis = <0>;
        type = "critical";
      };
    };
  };
  ihost1_thermal: ihost1-thermal {
    polling-delay-passive = <0>;
    polling-delay = <1000>;
    thermal-sensors = <&tmon 1>;
    trips {
      cpu-crit {
        temperature = <105000>;
        hysteresis = <0>;
        type = "critical";
      };
    };
  };
  ihost2_thermal: ihost2-thermal {
    polling-delay-passive = <0>;
    polling-delay = <1000>;
    thermal-sensors = <&tmon 2>;
    trips {
      cpu-crit {
        temperature = <105000>;
        hysteresis = <0>;
        type = "critical";
      };
    };
  };
  ihost3_thermal: ihost3-thermal {
    polling-delay-passive = <0>;
    polling-delay = <1000>;
    thermal-sensors = <&tmon 3>;
    trips {
      cpu-crit {
        temperature = <105000>;
        hysteresis = <0>;
        type = "critical";
      };
    };
  };
  crmu_thermal: crmu-thermal {
    polling-delay-passive = <0>;
    polling-delay = <1000>;
    thermal-sensors = <&tmon 4>;
    trips {
      cpu-crit {
        temperature = <105000>;
        hysteresis = <0>;
        type = "critical";
      };
    };
  };
  nitro_thermal: nitro-thermal {
    polling-delay-passive = <0>;
    polling-delay = <1000>;
    thermal-sensors = <&tmon 5>;
    trips {
      cpu-crit {
        temperature = <105000>;
        hysteresis = <0>;
        type = "critical";
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page