Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp981844pxb; Sun, 21 Feb 2021 07:11:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcexSH3oOfbyE09J4x+PwQ1LwJKBIGyGMQRauY2QNTpZJpVekv3k0OTXi8QAv3GScGcb0W X-Received: by 2002:a17:906:bc42:: with SMTP id s2mr17028201ejv.57.1613920277685; Sun, 21 Feb 2021 07:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613920277; cv=none; d=google.com; s=arc-20160816; b=Qq+lNXodu6jUs116IRBuj6xSTfkx3MJc+Y0a1uZDHAaajW7lAJ3LDqqDAnDnthSphH 3bYkX/4SJHtp28z3B7Wgt+wKQkTVp7DG6MoVORvIZvDGg2KTZZpirfAWQl2PKU9uJkSu GESjjkwzo6HYYZ+/UhYD0mIlEebq2Whhu0scrVwLmUyrYHvbcuQD6YMxXqG1y+8en5Hi +rnBho0pTUfxiThNTjWbJcc095AAbyqF8qKlzYlXxxxKqx93cpJJvYD5xcHr8RGqTPhk Xff4EcBlPbEH68l3iqhfvav61gozg42Uf72w8hAte0y9CocQr/mIv8WOJeBsScI48f2H XalA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=VxSgP8m8GnRrLf8xK1CMjwubXiOCgVxtX0LLFdsr0QY=; b=Zx+dyD5jTQNRik28bjkGgr7IrWa/nKqJ2z/e5ZZkmyeE0mtd7J4s2Z6JoQ7R/ud92K u2bMfopEddaV970bazIwCIJESbCfUpLYDBbI54ZBlRapyNawx5a7nxjfzC+KZEp9Nm3S Dv2fMzqzrYAa9/STz1AetJc2OiG+Wz4KPq20LZjYcd7XRZ+q5nVeZFhVfMNZL7o6SAW1 DXERtS+5mK4KKWY95la1WGK0RnPy2xiktim2gbUM8WK1tUSadDkDAmzzrk+mgQvkgeeU 1b+rxfRRyab8yasAGT+ZCLyRHny2WRijGjkab57r1nUQLFuisGFtgshF6QRs6HO+BXmg v6Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id i23si816880ejc.305.2021.02.21.07.10.53; Sun, 21 Feb 2021 07:11:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229923AbhBUPJz (ORCPT + 99 others); Sun, 21 Feb 2021 10:09:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:59104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhBUPJy (ORCPT ); Sun, 21 Feb 2021 10:09:54 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (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 BC41864EE6; Sun, 21 Feb 2021 15:09:11 +0000 (UTC) Date: Sun, 21 Feb 2021 15:09:07 +0000 From: Jonathan Cameron To: Ivan Mikhaylov Cc: Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , , , Subject: Re: [PATCH 2/2] dt-bindings: vcnl3020: add proximity rate in hz Message-ID: <20210221150907.2161b964@archlinux> In-Reply-To: <20210216145346.18304-3-i.mikhaylov@yadro.com> References: <20210216145346.18304-1-i.mikhaylov@yadro.com> <20210216145346.18304-3-i.mikhaylov@yadro.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Feb 2021 17:53:46 +0300 Ivan Mikhaylov wrote: > Describe the possible proximity values in herzes for vcnl3020. Hertz Why does this belong in DT? DT bindings should reflect physical characteristics of the device, so how is wired up, whether there are plastic windows over it that might affect calibration - that sort of thing. A rate of sampling proximity seems like a policy decision best left to user space. Jonathan > > Signed-off-by: Ivan Mikhaylov > --- > .../devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml b/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml > index fbd3a2e32280..1bb6ca1770f3 100644 > --- a/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml > +++ b/Documentation/devicetree/bindings/iio/proximity/vishay,vcnl3020.yaml > @@ -43,6 +43,12 @@ properties: > 180000, 190000, 200000] > default: 20000 > > + vishay,proximity-rate-hz: > + description: > + The rate of proximity measurement. > + enum: [1, 3, 7, 16, 31, 62, 125, 500] > + default: 1 > + > required: > - compatible > - reg