AMC6821 Intelligent Temperature Monitor and PWM Fan Controller
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/ti,amc6821.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Farouk Bouabid <farouk.bouabid@cherry.de>", "Quentin Schulz <quentin.schulz@cherry.de>"
Intelligent temperature monitor and pulse-width modulation (PWM) fan controller.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"tsd,mule"Item 2
Exact value (
const):"ti,amc6821"
Rule 2
Exact value (
const):"ti,amc6821"
reg — required here #
Maximum number of items (maxItems): 1
i2c-mux — not listed as required here #
Value type (type): "object"
fan — not listed as required here #
Shared schema rule ($ref): fan-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
cooling-levels — not listed as required here
PWM duty cycle values corresponding to thermal cooling states.
Array item rules (items)
Maximum value (
maximum):255
#pwm-cells — not listed as required here #
Exact value (const): 2
Number of cells in a PWM specifier. - cell 0: PWM period in nanoseconds - cell 1: PWM polarity: 0 or PWM_POLARITY_INVERTED
Required in this object (required): "compatible", "reg"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"tsd,mule"
When the condition matches (then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
fan_controller: fan@18 {
compatible = "ti,amc6821";
reg = <0x18>;
#pwm-cells = <2>;
fan {
pwms = <&fan_controller 40000 0>;
};
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
fan@18 {
compatible = "tsd,mule", "ti,amc6821";
reg = <0x18>;
i2c-mux {
compatible = "tsd,mule-i2c-mux";
#address-cells = <1>;
#size-cells = <0>;
i2c@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
rtc@6f {
compatible = "isil,isl1208";
reg = <0x6f>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)