Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2374266ybb; Sun, 12 Apr 2020 04:29:29 -0700 (PDT) X-Google-Smtp-Source: APiQypKRl6RVfYmNLYdwXgFmtjiSUATI7Jg6IYg1cFd+zHyjj1jAEXp8hVkzAtsfZgyNDBOVyoxy X-Received: by 2002:ad4:46e3:: with SMTP id h3mr12540654qvw.14.1586690969678; Sun, 12 Apr 2020 04:29:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586690969; cv=none; d=google.com; s=arc-20160816; b=OFLg3lJXc+K5Gu3EN8dXJ4uVKrSDR1/eqjg2Vi265Ymfh8Yyl/be6cQFbg2vEhbbAF bUKx6+y6Q/sYUFaoLeC0ahjJx3GxEg+0/4Dig6mCH7ROBFTfJzX1r7mEEn3ICql+qLW2 OujPlgF5cSFi0kgm8BbkkM6QQyZgcQtS39EaGAtF93TgxmWnZ2QZpJsXyK0SXrNtMqd0 x5NMwsgG5QdODuabs9DHJKhdiujkhUjYRcemnSiBkTPwJffCNeFJh9qZwCzzc7ghAYss hoKqzLUocl7k8u9OTfruLyGDFkxjmYnHIaCEjEb6h8JtE8VR2gKaKyL6qpMfU9ihEvBC DCvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=QjUzI0P5YCgvuTK2QvWXu0Xtj6r49Li5PWBhw+7WimQ=; b=crLkw+VhEKcnhlbHrrsA1diECcHNyVmZAypZh3naVVoDjBhAiwF7YFRmXu/Z+6vSmP 3fotppSbSRWS+BE1l4PeivDdrdHB8iBexVL7FX/Zr9mKS2GNSz6KKAekhD11w/EjW745 joixKDgdd/KYyic0Fx2A7GdWr7agWeF33mPsgH9sfdvbbI9kae7R8FXJsDQ/o6cB7ssJ dpz4LTEKmyuEmEub/YQ4ttJmQh9Z4ev7g1O/VcfmCnYb/xSUlmVhmRr43SToAGbqHsZr KgBujcFdJpJXN6h5ovaokd+hd2/Ny1OGmo6ciH1P8mlgit2a6aNvLSZKoPvIyVqNlLWq O/eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mjSBtzPd; 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 p27si4177339qkj.159.2020.04.12.04.29.14; Sun, 12 Apr 2020 04:29:29 -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=mjSBtzPd; 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 S1726955AbgDLL2l (ORCPT + 99 others); Sun, 12 Apr 2020 07:28:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:58088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbgDLL2k (ORCPT ); Sun, 12 Apr 2020 07:28:40 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 91102206E9; Sun, 12 Apr 2020 11:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586690920; bh=A/TM2oZuIWL2EcklHfwd3IM6ORspyJc0stBXtKjtBtQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mjSBtzPdfD5aLHkxChC+xIurPEkwhk6c8vyItlQkRMN3s1SKoXc/TQl98/wLX7vIV /RvUnWHx72Bw43ZtJGMnlJ+xHCQAWVocGyuSg6nBBhP5NuGtwg1AQWxTZIrmG1vBFM +134sAzDi5k5DYt+DYnr8paJwxvNWI0j/fPF/DPI= Date: Sun, 12 Apr 2020 12:28:35 +0100 From: Jonathan Cameron To: Guido =?UTF-8?B?R8O8bnRoZXI=?= Cc: Tomas Novotny , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Andy Shevchenko , Nishant Malpani Subject: Re: [PATCH v4 2/5] dt-bindings: iio: Introduce common properties for iio sensors Message-ID: <20200412122835.15f82420@archlinux> In-Reply-To: <8b91f0b7fa76ca4b2f3cdc251411829f71f8d810.1586094535.git.agx@sigxcpu.org> References: <8b91f0b7fa76ca4b2f3cdc251411829f71f8d810.1586094535.git.agx@sigxcpu.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 5 Apr 2020 15:50:29 +0200 Guido G=C3=BCnther wrote: > Introduce a file for common properties of iio sensors. So far this > contains the new proximity-near-level property for proximity sensors > that indicates when an object should be considered near. >=20 > Signed-off-by: Guido G=C3=BCnther This works for me. However, I would like to give time for Rob and others to comment on the syntax, naming etc of this file. Thanks, Jonathan > --- > .../devicetree/bindings/iio/common.yaml | 35 +++++++++++++++++++ > 1 file changed, 35 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/common.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/common.yaml b/Document= ation/devicetree/bindings/iio/common.yaml > new file mode 100644 > index 000000000000..97ffcb77043d > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/common.yaml > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/common.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Common properties for iio sensors > + > +maintainers: > + - Jonathan Cameron > + - Guido G=C3=BCnther > + > +description: | > + This document defines device tree properties common to several iio > + sensors. It doesn't constitue a device tree binding specification by i= tself but > + is meant to be referenced by device tree bindings. > + > + When referenced from sensor tree bindings the properties defined in th= is > + document are defined as follows. The sensor tree bindings are responsi= ble for > + defining whether each property is required or optional. > + > +properties: > + proximity-near-level: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + For proximity sensors whether an object can be considered near to = the > + device depends on parameters like sensor position, covering glass = and > + aperture. This value gives an indication to userspace for which > + sensor readings this is the case. > + > + Raw proximity values equal or above this level should be > + considered 'near' to the device (an object is near to the > + sensor). > + > +...