Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp929778rdg; Wed, 11 Oct 2023 09:15:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgzBXxxaqBeGf3KxgX/pkgwNTYHlrMwx9jgMPdoFVRTZ/UXQBJzk4UWQ1W7oGZ19Frf1Ap X-Received: by 2002:a05:6a20:8408:b0:14d:2b8d:d62f with SMTP id c8-20020a056a20840800b0014d2b8dd62fmr28804164pzd.47.1697040929239; Wed, 11 Oct 2023 09:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697040929; cv=none; d=google.com; s=arc-20160816; b=A40mh+VOC75l1Q6WuL95fKcO0h6f9vX1u5EgJH5gdtPCVnS/WMz05VVxshLmqk3eVQ h7Rt6V0grIQGHOzsUVwZbWlFqHCPWF/gmRq1U1t6bh8FYVSKhY34IcoKyy2WgNmif4MP daJEfuyQjW29QD3EC5SgUGRcLwhOkVvwUs7EXx4+t+mtx3+QZwr7Zggkac5BNYHj4gp8 XO9CV4aPvRzJ3owgUs683B3NN4/KJwMaNlDpaiIluRmI7LVmHqwnWuc3kM8LNiHwIDpX 1PyxUHkRbg4zzdRP7F9FEw2bov5+XRPpUf7PY1sl5z1y0xriOvMsVsr8auJvuMWM7Bwg q+fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nNC+tv59eoGkBnIS3kRaE7XHlxOdpV6mZF2zYCDMexo=; fh=QexkFP0503ZycDw0Vb8OeWG5JTeLPungVi+A4+aDZV4=; b=UMGFWTIP6719t8E8cpUUmKG8UsQq/Bv31dJK7LS39z6Zg04qGWiJEttzVTDzqtmPUy pO4OMCM3wrEZej9M5EOxv3VJW5CLnTTQGidx6tfCu16NP3NEGTImtiRXbBml7MmuLOf4 5YuJvDL3Axcrv5WEbgGQJzFA1D+zy2qgxCLKzbQBqpZInGUzKhkBEKG329ZrjIp0ueb1 NL3qN3Sw0Px1fUwRTiIKvr0Rt+gAH4EW90pKGEINpMt1p/eN8IybOdo5kcbkOiIwvYQc fLxspjRnNbwW2wnWAgoYWyR1mqgnbFTt7j5vQ2z1HqpEYmTaxnU5+xyRDqCmMOXytXej v7Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bs0AcPB4; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id hg15-20020a17090b300f00b002745c4e215fsi127192pjb.175.2023.10.11.09.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 09:15:29 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=bs0AcPB4; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D053B81C7AB1; Wed, 11 Oct 2023 09:15:16 -0700 (PDT) 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 S231495AbjJKQPM (ORCPT + 99 others); Wed, 11 Oct 2023 12:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232880AbjJKQPK (ORCPT ); Wed, 11 Oct 2023 12:15:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8147F8F; Wed, 11 Oct 2023 09:15:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06ED6C433C8; Wed, 11 Oct 2023 16:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697040908; bh=wtQMMdHrnFggk0m06ilUhF5VMAOMImQU9UM40mHBiVM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bs0AcPB4HUa9JKFIg7sdXg83lTzuhi2OLLs5zi4krsrYvKkFZflYBf5izlTEFYFOP YvFLiFb3wyNSQ6tsiAy8O8YdDaQto5/2ejA3/wlhLEJFh+DjPPnVsVn1yULSEB49cL VinmbeTTkJmHOe7f+Mw/vGKdY2McoxJ3LxjkVJEDbYjH4UgOQXIV1IQ6n5A7VWViqY 2djutKm3XqC32xhSqUTRM9doqqD/yVJBsJ+r6B8RN+V0zz+D6STCXNDgzOAFWFbN9r j3syNlYhPWWm/HhBeiCYETIqLjcBcDEQeSTIRAcABeASEW/tgv7tTS0ie/ooyVKydW 6qJwMIDqkj1tQ== Date: Wed, 11 Oct 2023 17:15:03 +0100 From: Conor Dooley To: Anshul Dalal Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shuah Khan , linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/2] dt-bindings: input: bindings for Adafruit Seesaw Gamepad Message-ID: <20231011-powdering-recycled-71608e794eaa@spud> References: <20231010184827.1213507-1-anshulusr@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="timCUOp0XhI+CNqU" Content-Disposition: inline In-Reply-To: <20231010184827.1213507-1-anshulusr@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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]); Wed, 11 Oct 2023 09:15:17 -0700 (PDT) --timCUOp0XhI+CNqU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Wed, Oct 11, 2023 at 12:18:23AM +0530, Anshul Dalal wrote: > Adds bindings for the Adafruit Seesaw Gamepad. >=20 > 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. >=20 > Product page: > https://www.adafruit.com/product/5743 > Arduino driver: > https://github.com/adafruit/Adafruit_Seesaw >=20 > Signed-off-by: Anshul Dalal > --- >=20 > Changes for v4: > - Fixed the URI for the id field > - Added `interrupts` property >=20 > Changes for v3: > - Updated id field to reflect updated file name from previous version > - Added `reg` property >=20 > 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' >=20 > .../input/adafruit,seesaw-gamepad.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/adafruit,sees= aw-gamepad.yaml >=20 > diff --git a/Documentation/devicetree/bindings/input/adafruit,seesaw-game= pad.yaml b/Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.= yaml > new file mode 100644 > index 000000000000..e8e676006d2f > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/adafruit,seesaw-gamepad.yaml > @@ -0,0 +1,59 @@ > +# 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 Binding mostly looks good to me. My main question is what is a 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 > + > + Product page: https://www.adafruit.com/product/5743 > + Arduino Driver: https://github.com/adafruit/Adafruit_Seesaw I'm not really sure what the arduino driver has to do with the binding. Why is a link to it more relevant than the freebsd driver, or the linux driver etc? Is there info about how the pad works in the arduino driver Otherwise, this seems good to me. Thanks, Conor. > + > +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 ena= bled. > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + joystick@50 { > + compatible =3D "adafruit,seesaw-gamepad"; > + reg =3D <0x50>; > + }; > + }; > --=20 > 2.42.0 >=20 --timCUOp0XhI+CNqU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSbKBwAKCRB4tDGHoIJi 0uPyAP44XQzOQbflxL/UvrKTR2YMG9/YIVQXQK5aBzNTEXcMUAEA8xyeLKAOZtJx HK4Pss8t1U8E5lZrti8sa9pDht76Bws= =wvkn -----END PGP SIGNATURE----- --timCUOp0XhI+CNqU--