From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9712C25B6E for ; Fri, 27 Oct 2023 05:19:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7ADC340510; Fri, 27 Oct 2023 05:19:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7ADC340510 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ZGMuVA0C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6WKxz5d5WREi; Fri, 27 Oct 2023 05:19:51 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 38B1440210; Fri, 27 Oct 2023 05:19:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 38B1440210 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0B98EC0071; Fri, 27 Oct 2023 05:19:51 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 198FAC0032 for ; Fri, 27 Oct 2023 05:19:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E340A80E62 for ; Fri, 27 Oct 2023 05:19:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E340A80E62 Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=ZGMuVA0C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r56UbPiSgqXP for ; Fri, 27 Oct 2023 05:19:48 +0000 (UTC) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by smtp1.osuosl.org (Postfix) with ESMTPS id CC69080B5C for ; Fri, 27 Oct 2023 05:19:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CC69080B5C Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2800bb246ceso282061a91.1 for ; Thu, 26 Oct 2023 22:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698383987; x=1698988787; darn=lists.linuxfoundation.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fA+Tv1bE2U9KWCqAA1m16+V2i4hhY6QGRQgT7CJSbXI=; b=ZGMuVA0CQ5WAGZ90gf5PCd55ZeckC/Z57kp7vobyQwh5TTcpwNlZsT5/Jc7A9MjVhe pYeLnAVqmbfB+hppaOv4CO+qXP9Hp/AmMjy94w/9LOQ0nqg7DDjixyonBbwYumQqfGHY krBaCyKoanbUTZQL2xdJuDZfzPAu4Ai63DFSToaLFDlQxwCkh1zWrl9VRkR0btXZvfkH CoZoMjuD/trpllmv40c1eKp1AkS9Q3hFwGTuf/NeMO1ohcr5MxjyJ6+ovqbLy4mgmXjY ue04RozLWLBI1hkCg0beQwZaPxgsBMeQboIG4ZM0Lu7lVFBA2JBWQRVaAJ7dVnDOQ07X LWqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698383987; x=1698988787; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fA+Tv1bE2U9KWCqAA1m16+V2i4hhY6QGRQgT7CJSbXI=; b=XJWKSIlmrp53tpTqtW/jGmZBCh1vPN8Odeh51jVR+9xecbk7F9orizLWLyA4icZXmN 4UwU7QVbCkAgUogYq+/PavD8lm7nd5H1gtX+toYOInUp8uSqn9T4PLP4vAM6Cq++Jodw IZtIbV6THwYMbJ67/ocLyOKZoJmoz2EQ6+HAGwNvEDWRimERxnhHDs6oxbdhIP10aC8B WpnDLfXbAkzGrr7luGGGdvrv+f0dwEO6cVw6Su23Z1N/VOBCJiDHJ79HgBhjf5WfQyze T0rZZzNYE/vdKazIZHtPEc0jMUUBmZEvd8JiYnZJvU+eqGEigcHC8LCa9txb+FYwZyyw P0jA== X-Gm-Message-State: AOJu0YyhBUIatsKwZlCtPXmdV6bFyI9o5EPTXFngmnFG0FnduaeQllJY X1SPm9gFQrIjTOY1ujI3CR8= X-Google-Smtp-Source: AGHT+IFvz/xV6lMfHz3vDz/j1mVa+ah0INFY3WvFerJgzjK4K0wG5CL9dE6a9/0sZ3STEpSy22cvrA== X-Received: by 2002:a17:90a:c215:b0:27d:491d:2e40 with SMTP id e21-20020a17090ac21500b0027d491d2e40mr1456057pjt.22.1698383987087; Thu, 26 Oct 2023 22:19:47 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:6286:35cd:e1b0:b6b4:69e:b5fb]) by smtp.gmail.com with ESMTPSA id h16-20020a17090adb9000b00276e8e4f1fbsm2494296pjv.1.2023.10.26.22.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 22:19:46 -0700 (PDT) From: Anshul Dalal To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 1/2] dt-bindings: input: bindings for Adafruit Seesaw Gamepad Date: Fri, 27 Oct 2023 10:48:10 +0530 Message-ID: <20231027051819.81333-1-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Cc: Conor Dooley , Anshul Dalal , Dmitry Torokhov , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Jeff LaBundy , linux-kernel-mentees@lists.linuxfoundation.org X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" Adds bindings for the Adafruit Seesaw Gamepad. The gamepad functions as an i2c device with the default address of 0x50 and has an IRQ pin that can be enabled in the driver to allow for a rising edge trigger on each button press or joystick movement. Product page: https://www.adafruit.com/product/5743 Arduino driver: https://github.com/adafruit/Adafruit_Seesaw Reviewed-by: Conor Dooley Reviewed-by: Krzysztof Kozlowski Signed-off-by: Anshul Dalal --- Changes for v6: - no updates Changes for v5: - Added link to the datasheet Changes for v4: - Fixed the URI for the id field - Added `interrupts` property Changes for v3: - Updated id field to reflect updated file name from previous version - Added `reg` property Changes for v2: - Renamed file to `adafruit,seesaw-gamepad.yaml` - Removed quotes for `$id` and `$schema` - Removed "Bindings for" from the description - Changed node name to the generic name "joystick" - Changed compatible to 'adafruit,seesaw-gamepad' instead of 'adafruit,seesaw_gamepad' .../input/adafruit,seesaw-gamepad.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml diff --git a/Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml b/Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml new file mode 100644 index 000000000000..3f0d1c5a3b9b --- /dev/null +++ b/Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/adafruit,seesaw-gamepad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Adafruit Mini I2C Gamepad with seesaw + +maintainers: + - Anshul Dalal + +description: | + Adafruit Mini I2C Gamepad + + +-----------------------------+ + | ___ | + | / \ (X) | + | | S | __ __ (Y) (A) | + | \___/ |ST| |SE| (B) | + | | + +-----------------------------+ + + S -> 10-bit percision 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: + compatible: + const: adafruit,seesaw-gamepad + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: + The gamepad's IRQ pin triggers a rising edge if interrupts are enabled. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + joystick@50 { + compatible = "adafruit,seesaw-gamepad"; + reg = <0x50>; + }; + }; -- 2.42.0 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees