Maxim max6639

Schema identifier ($id): "http://devicetree.org/schemas/hwmon/maxim,max6639.yaml#"

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

Maintainers (maintainers): "Naresh Solanki <naresh.solanki@9elements.com>"

The MAX6639 is a 2-channel temperature monitor with dual, automatic, PWM fan-speed controller. It monitors its own temperature and one external diode-connected transistor or the temperatures of two external diode-connected transistors, typically available in CPUs, FPGAs, or GPUs.

Datasheets:
  https://datasheets.maximintegrated.com/en/ds/MAX6639-MAX6639F.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max6639"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg"

Properties matching a name pattern (patternProperties) #

^fan@[0-1]$ — name matches this regular expression #

Value type (type): "object"

Represents the two fans and their specific configuration.

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) #

reg — required here

The fan number.

Required in this object (required): "reg"

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>;

    fan1: fan-controller@10 {
        compatible = "maxim,max6639";
        reg = <0x10>;
        #address-cells = <1>;
        #size-cells = <0>;
        #pwm-cells = <3>;

        fan@0 {
            reg = <0x0>;
            pulses-per-revolution = <2>;
            max-rpm = <4000>;
            target-rpm = <1000>;
            pwms = <&fan1 0 25000 0>;
        };

        fan@1 {
            reg = <0x1>;
            pulses-per-revolution = <2>;
            max-rpm = <8000>;
            pwms = <&fan1 1 25000 0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page