Maxim MAX77705 Companion Power Management and USB Type-C interface

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

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

Maintainers (maintainers): "Dzmitry Sankouski <dsankouski@gmail.com>"

This is a part of device tree bindings for Maxim MAX77705.

Maxim MAX77705 is a Companion Power Management and Type-C interface IC which includes charger, fuelgauge, LED, haptic motor driver and Type-C management.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "maxim,max77705"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

The driver implements an interrupt controller for the sub devices. The interrupt number mapping is as follows 0 - charger 1 - topsys 2 - fuelgauge 3 - usb type-c management block.

#interrupt-cells — not listed as required here #

Exact value (const): 1

haptic — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "maxim,max77705-haptic"

haptic-supply — required here

true — No constraints added by this property rule.

pwms — required here

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "haptic-supply", "pwms"

leds — not listed as required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Up to 4 LED channels supported.

Properties and child nodes (properties) #

compatible — required here

Exact value (const): "maxim,max77705-rgb"

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

multi-led — not listed as required here

Value type (type): "object"

Shared schema rule ($ref): /schemas/leds/leds-class-multicolor.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties)

^led@[0-3]$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): /schemas/leds/common.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

Properties matching a name pattern (patternProperties) #

^led@[0-3]$ — name matches this regular expression

Value type (type): "object"

Shared schema rule ($ref): /schemas/leds/common.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

Required in this object (required): "compatible"

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    pmic@66 {
        compatible = "maxim,max77705";
        reg = <0x66>;
        #interrupt-cells = <1>;
        interrupt-parent = <&pm8998_gpios>;
        interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
        interrupt-controller;
        pinctrl-0 = <&chg_int_default>;
        pinctrl-names = "default";

        leds {
            compatible = "maxim,max77705-rgb";

            multi-led {
                color = <LED_COLOR_ID_RGB>;
                function = LED_FUNCTION_STATUS;
                #address-cells = <1>;
                #size-cells = <0>;

                led@1 {
                    reg = <1>;
                    color = <LED_COLOR_ID_RED>;
                };

                led@2 {
                    reg = <2>;
                    color = <LED_COLOR_ID_GREEN>;
                };

                led@3 {
                    reg = <3>;
                    color = <LED_COLOR_ID_BLUE>;
                };
            };
        };

        haptic {
            compatible = "maxim,max77705-haptic";
            haptic-supply = <&vib_regulator>;
            pwms = <&vib_pwm 0 50000>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page