Allwinner SUN8I Thermal Controller
Schema identifier ($id): "http://devicetree.org/schemas/thermal/allwinner,sun8i-a83t-ths.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vasily Khoruzhick <anarsoul@gmail.com>", "Yangtao Li <tiny.windzz@gmail.com>"
Shared schema rule ($ref): thermal-sensor.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "allwinner,sun8i-a83t-ths", "allwinner,sun8i-h3-ths", "allwinner,sun8i-r40-ths", "allwinner,sun20i-d1-ths", "allwinner,sun50i-a64-ths", "allwinner,sun50i-a100-ths", "allwinner,sun50i-h5-ths", "allwinner,sun50i-h6-ths", "allwinner,sun50i-h616-ths"
clocks — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Bus Clock
Item 2
Module Clock
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"bus"
Item 2
Exact value (
const):"mod"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
Calibration data for thermal sensors
nvmem-cell-names — not listed as required here #
Exact value (const): "calibration"
allwinner,sram — not listed as required here #
Maximum number of items (maxItems): 1
phandle to device controlling temperate offset SYS_CFG register
#thermal-sensor-cells — not listed as required here #
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun20i-d1-ths","allwinner,sun50i-a100-ths","allwinner,sun50i-h6-ths","allwinner,sun50i-h616-ths"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereMaximum number of items (
maxItems):1When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):2
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun50i-h616-ths"When the condition matches (
then) #Properties and child nodes (
properties)
allwinner,sram— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun8i-h3-ths","allwinner,sun20i-d1-ths"When the condition matches (
then) #Properties and child nodes (
properties)
#thermal-sensor-cells— not listed as required hereExact value (
const):0When the condition does not match (
else) #Properties and child nodes (
properties)
#thermal-sensor-cells— not listed as required hereExact value (
const):1
Rule 4 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Required in this object (
required):"clocks","clock-names","resets"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
thermal-sensor@1f04000 {
compatible = "allwinner,sun8i-a83t-ths";
reg = <0x01f04000 0x100>;
interrupts = <0 31 0>;
nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration";
#thermal-sensor-cells = <1>;
};
thermal-sensor@1c25000 {
compatible = "allwinner,sun8i-h3-ths";
reg = <0x01c25000 0x400>;
clocks = <&ccu 0>, <&ccu 1>;
clock-names = "bus", "mod";
resets = <&ccu 2>;
interrupts = <0 31 0>;
nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration";
#thermal-sensor-cells = <0>;
};
thermal-sensor@5070400 {
compatible = "allwinner,sun50i-h6-ths";
reg = <0x05070400 0x100>;
clocks = <&ccu 0>;
clock-names = "bus";
resets = <&ccu 2>;
interrupts = <0 15 0>;
nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration";
#thermal-sensor-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0