Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp93050ybb; Thu, 19 Mar 2020 17:16:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuA2iGJ92/16HtowWM0ipygAPz3VrmwRSpds7RLeOCwwf5/4cemDg+kEzzeA4PxoYRyttSx X-Received: by 2002:a54:4e13:: with SMTP id a19mr4548369oiy.108.1584663393209; Thu, 19 Mar 2020 17:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584663393; cv=none; d=google.com; s=arc-20160816; b=axdnTJcipwFjHzYSESYWSRlssPVvTZ9f4qzbtsoiZMx92RjD1sXpKRb25dRzH7m8OE hE7szWVaaNBToa952+ph0HakgT1JdG5z2o4RTMCzHCHNo+B1w4Bv1nrBAHGkIGmMvswy 5+6Kg5jyC8y0GaCwMGIC3PMT5tLaAajMfq4qLi+NFwZFqQSIH1efEaZIU3keH1MVNxvu 2MDCRfyivv//ccrsDxgMSfwH81nHzmMuasdFlRekSSHIgbnh3ktFaP3jlOIDMSlDANpa KLtk0b54OKaQn1UWvs55sFmpNmcew6qNySJIdJ2qwWuthwI3BvAefGRJEWK0E0JfKlko gSQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=srmZYitKpNs28M+bvr4DDfKFn0IkzWOdqW/KxdQerTY=; b=ph+ide/4q6DpI0zNpfayra+iurNyqOevMVK9Dzcfh1UljNHCO/5ofUVXUecO8rHkAN 8ni/KhsXGmJA8TfdCJK+PJkTO1L+BW/uDo1lNKQoAR3n8Bg2SP8bBs+ivD2whtLR75kM cbqBymgDEn05s4t9/+kixsFI9+Cu5td/kp4MLloCj5e74BLqd02gNDPmk+7Nb/9Nkero bNwR70/UpFMPk+lqBaw7i8cy+IERC/C7a7Gz/gmL0pIudFz8GxVvV1MiN18VZ65Ut6nW 4ATl+lZUBIocL77jjvQUd3NUAxzddgOQlVgEHZY7f5dt5AZtG3pTISos4xjj7dR68rTo KI5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pDRtiBhv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d63si1827941oib.224.2020.03.19.17.16.19; Thu, 19 Mar 2020 17:16:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pDRtiBhv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727159AbgCTAPm (ORCPT + 99 others); Thu, 19 Mar 2020 20:15:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:57220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgCTAPm (ORCPT ); Thu, 19 Mar 2020 20:15:42 -0400 Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB7F120775; Fri, 20 Mar 2020 00:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584663341; bh=OSlquqcH1F8KsOyuUEWI4dxT8R0DknRunxtYQ4e6SkU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pDRtiBhvsn2C3cD7sTKzyxKg3MRHANHuxnnJtZNqYg8bjnRnnyY9Obtwj37LbmS4M OjZ9WA2yF186vM0J23vV7BxzaFiktb+WfBqKe0x0tPvDS747DEJ0dUICSGuAYiPuwl fF5e8BciNSgxqYIf6qbEeeQEUulSsSzS7QjclNOE= Received: by mail-qv1-f54.google.com with SMTP id n1so2108278qvz.4; Thu, 19 Mar 2020 17:15:40 -0700 (PDT) X-Gm-Message-State: ANhLgQ1aH6gGCNxMPLrpuBg1CCJKiUJREuWLuTI+3p118Oz+ocakE+dH nN/KqlLXcuB5O9WYCN6Z+XiQsq3pIo4+Y8/KUg== X-Received: by 2002:ad4:4502:: with SMTP id k2mr5779706qvu.85.1584663339950; Thu, 19 Mar 2020 17:15:39 -0700 (PDT) MIME-Version: 1.0 References: <20200307211412.44148-1-contact@artur-rojek.eu> <20200307211412.44148-4-contact@artur-rojek.eu> In-Reply-To: <20200307211412.44148-4-contact@artur-rojek.eu> From: Rob Herring Date: Thu, 19 Mar 2020 18:15:28 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 4/5] dt-bindings: input: Add docs for ADC driven joystick. To: Artur Rojek Cc: Dmitry Torokhov , Mark Rutland , Jonathan Cameron , Paul Cercueil , Heiko Stuebner , Linux Input , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:IIO SUBSYSTEM AND DRIVERS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 7, 2020 at 2:06 PM Artur Rojek wrote: > > Add documentation for the adc-joystick driver, used to provide support > for joysticks connected over ADC. > > Signed-off-by: Artur Rojek > Tested-by: Paul Cercueil > --- > > Changes: > > v2: - Add `reg` property to axis subnode in order to enumerate the axes, > - rename `linux,abs-code` property to `linux,code`, > - drop `linux,` prefix from the remaining properties of axis subnode > > v3: no change > > v4: - remove "bindings" from the unique identifier string, > - replace `|` with `>` for all description properties, > - specify the number of items for `io-channels`, > - correct the regex pattern of `axis` property, > - specify the value range of `reg` property for each axis, > - put `abs-range` properties under `allOf` > > .../bindings/input/adc-joystick.yaml | 121 ++++++++++++++++++ > 1 file changed, 121 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/adc-joystick.yaml > > diff --git a/Documentation/devicetree/bindings/input/adc-joystick.yaml b/Documentation/devicetree/bindings/input/adc-joystick.yaml > new file mode 100644 > index 000000000000..b0d2aa28d8c6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/adc-joystick.yaml > @@ -0,0 +1,121 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2019-2020 Artur Rojek > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/input/adc-joystick.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: ADC attached joystick > + > +maintainers: > + - Artur Rojek > + > +description: > > + Bindings for joystick devices connected to ADC controllers supporting > + the Industrial I/O subsystem. > + > +properties: > + compatible: > + const: adc-joystick > + > + io-channels: > + minItems: 1 > + maxItems: 1024 > + description: > > + List of phandle and IIO specifier pairs. > + Each pair defines one ADC channel to which a joystick axis is connected. > + See Documentation/devicetree/bindings/iio/iio-bindings.txt for details. > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > +required: > + - compatible > + - io-channels > + - '#address-cells' > + - '#size-cells' > + > +additionalProperties: false > + > +patternProperties: > + "^axis@[0-9]+$": unit-addresses are hex, so add 'a-f' in there. With that, Reviewed-by: Rob Herring