Path: blob/master/Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/adafruit,seesaw-gamepad.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Adafruit Mini I2C Gamepad with seesaw78maintainers:9- Anshul Dalal <anshulusr@gmail.com>1011description: |12Adafruit Mini I2C Gamepad1314+-----------------------------+15| ___ |16| / \ (X) |17| | S | __ __ (Y) (A) |18| \___/ |ST| |SE| (B) |19| |20+-----------------------------+2122S -> 10-bit precision bidirectional analog joystick23ST -> Start24SE -> Select25X, A, B, Y -> Digital action buttons2627Datasheet: https://cdn-learn.adafruit.com/downloads/pdf/gamepad-qt.pdf28Product page: https://www.adafruit.com/product/574329Arduino Driver: https://github.com/adafruit/Adafruit_Seesaw3031properties:32compatible:33const: adafruit,seesaw-gamepad3435reg:36maxItems: 13738interrupts:39maxItems: 140description:41The gamepad's IRQ pin triggers a rising edge if interrupts are enabled.4243required:44- compatible45- reg4647additionalProperties: false4849examples:50- |51#include <dt-bindings/interrupt-controller/irq.h>5253i2c {54#address-cells = <1>;55#size-cells = <0>;5657joystick@50 {58compatible = "adafruit,seesaw-gamepad";59interrupts = <18 IRQ_TYPE_EDGE_RISING>;60reg = <0x50>;61};62};636465