Temperature Sensor on HiSilicon SoCs
Schema identifier ($id): "http://devicetree.org/schemas/thermal/hisilicon,tsensor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Abdulrasaq Lawani <abdulrasaqolawani@gmail.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 #
Allowed values (enum): "hisilicon,tsensor", "hisilicon,hi3660-tsensor"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"thermal_clk"
interrupts — required here #
Maximum number of items (maxItems): 1
#thermal-sensor-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "#thermal-sensor-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/hi6220-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
temperature-sensor@f7030700 {
compatible = "hisilicon,tsensor";
reg = <0xf7030700 0x1000>;
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sys_ctrl HI6220_TSENSOR_CLK>;
clock-names = "thermal_clk";
#thermal-sensor-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause