Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2252337rdf; Mon, 6 Nov 2023 08:43:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFopqMM3W31rpDhQ8WkEKZ+QjF66RzJaSSmaxa5ZPpwEJEcbp2x3GZnFJ9QRDOcCBCT3gXx X-Received: by 2002:a05:6a20:2453:b0:15e:7323:5bf3 with SMTP id t19-20020a056a20245300b0015e73235bf3mr14721076pzc.26.1699289019518; Mon, 06 Nov 2023 08:43:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699289019; cv=none; d=google.com; s=arc-20160816; b=tYSqgtRRXAsFkIWxpz0txvY4cTV73WrZaNkohfQlkWhpsi1kcv0MFDi+9eX/rBD4mw qExUvBU6eD8LT8nxGNb6qdwobAIHEr0aWjWm/fpQFMpdBAe7sdApVagdO8B0ydaJ3j4/ pchFJMnj5AkabenjsPQ3bNyi9pg1ONYW6vDXWIyXSI+s0cojaa47i4VBJ3Msm3bFmiCY 7AFYeWteiPincTgBzT4NvrU30FBZiqe2MrizsziOF3gUf00shpd//QDDreGLWUMJHpmx nlZ77lnZ0+48uDCxBi4vOnB/rvAmNzX/8e0BaQ4lu0tfv/BdxqHaCiZAXCaACipUFOz6 aEHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xYiXnGi32nL1dAgLwz8qgQxJ2TizbYw6290xQdYSCOQ=; fh=jogxuNC7Kq9JhK6d1Z4cVGjK3+A3JvQV9QNvx5/c0a0=; b=mewZsWg9Mf3UzXPjbCRHo0GOyDOoxJR/RdkoO4Pp2D22FLHZi757KnVrCXWfwU3hbH 6hMqjH1gm4BHLwAlPsnccIbgSWq55OYcfQhbIaNoZJXhCrqe9S0I1TeHP0GYf+LOo5PE rzFqRI1Q4lRbxjgUrz46+AjHlP/7aLA3xW5XtT0yS/Jcvda67ojQJz/95QlizlG1wkzv R1HwqjcW4KZ2ZvWSEZ/9LbDH0CAzKeO9t8ZaZuxDINWMb+4xSq3GuNanYzD8VBFLiajB wdnzAU2D/CRMq58fYYZG6O7MwhxqFO8HaZiKB2viYN5yVpq51ZNg8/5TKKOoDkublmcq vXVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KRNdCFEo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ck27-20020a056a02091b00b005b8f6936eb4si26697pgb.773.2023.11.06.08.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:43:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KRNdCFEo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 49D8180D6E51; Mon, 6 Nov 2023 08:43:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232721AbjKFQnc (ORCPT + 99 others); Mon, 6 Nov 2023 11:43:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232781AbjKFQnb (ORCPT ); Mon, 6 Nov 2023 11:43:31 -0500 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87DCD4D; Mon, 6 Nov 2023 08:43:27 -0800 (PST) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6bf03b98b9bso4334094b3a.1; Mon, 06 Nov 2023 08:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699289007; x=1699893807; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xYiXnGi32nL1dAgLwz8qgQxJ2TizbYw6290xQdYSCOQ=; b=KRNdCFEoNsC9Vl5Ej9YyqbZW78HGzZgfK6dNExWibbdWnkf/psFWTgQ4x6/PMGvwhU Fy7RMAtPru0Qx7emelu2HSU648kI7Mx0XJOEsZsuNhy1pqOU6My4NvShtW3UefEnmsLx VF9co059ubafe4Mv7TyP16KB04HPGHPTJ+4QwxgItkV7rs3iE7FHjkHeSfr2asY75H4i F+eOdCHf8I46cG+JXTs5gRuz6X0DIBBqSbKj4Bn5R6dhh5rg57RYeCgG4ASOszr6JuHj 6OillDPwETf/dY+PWM2JjMcoyEirbsl4s4uVpvl6Bn84CVWAGdVIJAzzbqfEuuzXSbNO 7Rbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699289007; x=1699893807; 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=xYiXnGi32nL1dAgLwz8qgQxJ2TizbYw6290xQdYSCOQ=; b=Bu6UXOHV5FKCVx4R76Hk0FDAVcvcQUJ3M41NaSt4D8x+5JdqGX6P1hrYLzEofm0x7u L8QkkxkXgcQihDDtEV/aF7edw0c7P4omWubdqAnJ3fitXDPvQtqk5ObCZKwr0bVQKqQP kXwY9jTaOb0qqvqtNhne0+4d9J/Yh8qUJBDx0m/hYcaM6igCnxVj3+FcI1pmDB6u/FqM Wj19zH5msMRQicqiJWfIZAcltfA0CMyKvp+6TWpHLERqsBr+fokOJX9CeI41RNf3pO5m Cc5HeHk4GfTDaQUZz4Uz2YRzCXXQB5rOan33si/27aVeg2+2mY26rZ8kCMcqAF+kUIjd WfLQ== X-Gm-Message-State: AOJu0YxDgkAtxBpdKzWlsLfH9jTjARUag4Qaf/U4+e1oh3Nz1Jf2kmpd H5pKyxvTM8nKNhNtTFpnoMlbFuNTsm53nXAL X-Received: by 2002:a05:6a21:a581:b0:15e:b253:269f with SMTP id gd1-20020a056a21a58100b0015eb253269fmr16315420pzc.28.1699289006581; Mon, 06 Nov 2023 08:43:26 -0800 (PST) Received: from archlinux.srmu.edu.in ([103.4.222.252]) by smtp.gmail.com with ESMTPSA id b6-20020a056a000a8600b006933e71956dsm5828227pfl.9.2023.11.06.08.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:43:26 -0800 (PST) From: Anshul Dalal To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Anshul Dalal , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Jeff LaBundy , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, Conor Dooley , Krzysztof Kozlowski Subject: [PATCH v7 1/2] dt-bindings: input: bindings for Adafruit Seesaw Gamepad Date: Mon, 6 Nov 2023 22:11:31 +0530 Message-ID: <20231106164134.114668-1-anshulusr@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 06 Nov 2023 08:43:38 -0800 (PST) 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 v7: - no updates 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