Adafruit Mini I2C Gamepad with seesaw

Schema identifier ($id): "http://devicetree.org/schemas/input/adafruit,seesaw-gamepad.yaml#"

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

Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"

Adafruit Mini I2C Gamepad

  +-----------------------------+
  |   ___                       |
  |  /   \               (X)    |
  | |  S  |  __   __  (Y)   (A) |
  |  \___/  |ST| |SE|    (B)    |
  |                             |
  +-----------------------------+

S -> 10-bit precision bidirectional analog joystick ST -> Start SE -> Select X, A, B, Y -> Digital action buttons

Datasheet: https://cdn-learn.adafruit.com/downloads/pdf/gamepad-qt.pdf Product page: https://www.adafruit.com/product/5743 Arduino Driver: https://github.com/adafruit/Adafruit_Seesaw

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "adafruit,seesaw-gamepad"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

The gamepad's IRQ pin triggers a rising edge if interrupts are enabled.

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

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>

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

    joystick@50 {
        compatible = "adafruit,seesaw-gamepad";
        interrupts = <18 IRQ_TYPE_EDGE_RISING>;
        reg = <0x50>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page