Maxim MAX7360 GPIO controller

Schema identifier ($id): "http://devicetree.org/schemas/gpio/maxim,max7360-gpio.yaml#"

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

Maintainers (maintainers): "Kamel Bouhara <kamel.bouhara@bootlin.com>", "Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>"

Maxim MAX7360 GPIO controller, in MAX7360 chipset https://www.analog.com/en/products/max7360.html

The device provides two series of GPIOs, referred here as GPIOs and GPOs.

PORT0 to PORT7 pins can be used as GPIOs, with support for interrupts and constant-current mode. These pins will also be used by the rotary encoder and PWM functionalities.

COL2 to COL7 pins can be used as GPOs, there is no input capability. COL pins will be partitioned, with the first pins being affected to the keypad functionality and the last ones as GPOs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "maxim,max7360-gpio", "maxim,max7360-gpo"

gpio-controller — required here #

true — No constraints added by this property rule.

#gpio-cells — not listed as required here #

Exact value (const): 2

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 2

maxim,constant-current-disable — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Bit field, each bit disables constant-current output of the associated GPIO, starting from the least significant bit for the first GPIO.

Maximum value (maximum): 255

Required in this object (required): "compatible", "gpio-controller"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "maxim,max7360-gpio"

ngpios — not listed as required here

false — Not permitted by this property rule.

When the condition matches (then) #

Required in this object (required): "interrupt-controller"

When the condition does not match (else) #

Properties and child nodes (properties)

interrupt-controller — not listed as required here

false — Not permitted by this property rule.

maxim,constant-current-disable — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

gpio {
  compatible = "maxim,max7360-gpio";

  gpio-controller;
  #gpio-cells = <2>;
  maxim,constant-current-disable = <0x06>;

  interrupt-controller;
  #interrupt-cells = <2>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page