Documentation/devicetree/bindings/mfd/adi,adp5585.yaml

Source file repositories/reference/linux-study-clean/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml

File Facts

System
Linux kernel
Corpus path
Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
Extension
.yaml
Size
7879 bytes
Lines
314
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/adi,adp5585.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices ADP5585 Keypad Decoder and I/O Expansion

maintainers:
  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>

description:
  The ADP5585 is a 10/11 input/output port expander with a built in keypad
  matrix decoder, programmable logic, reset generator, and PWM generator.

properties:
  compatible:
    oneOf:
      - items:
          - enum:
              - adi,adp5585-00  # Default
              - adi,adp5585-01  # 11 GPIOs
              - adi,adp5585-02  # No pull-up resistors by default on special pins
              - adi,adp5585-03  # Alternate I2C address
              - adi,adp5585-04  # Pull-down resistors on all pins by default
          - const: adi,adp5585
      - items:
          - enum:
              - adi,adp5589-00  # Default
              - adi,adp5589-01  # R4 defaulted to RESET1 output
              - adi,adp5589-02  # Pull-down resistors by default on special pins
          - const: adi,adp5589

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply: true

  reset-gpios:
    maxItems: 1

  gpio-controller: true

  '#gpio-cells':
    const: 2

  gpio-reserved-ranges: true

  "#pwm-cells":
    const: 3

  interrupt-controller: true

  '#interrupt-cells':
    const: 2

  poll-interval:
    enum: [10, 20, 30, 40]
    default: 10

  adi,keypad-pins:
    description: Specifies the pins used for the keypad matrix.
    $ref: /schemas/types.yaml#/definitions/uint32-array

  adi,unlock-events:
    description:
      Specifies a maximum of 2 events that can be used to unlock the keypad.

Annotation

Implementation Notes