Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3827780imu; Mon, 28 Jan 2019 11:32:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN51Hf3MKL2scRz/loS4TvSznkfEV+pCtVI9lWXhfP3RSMu8uPyjaS8v+1m7kQt255faelor X-Received: by 2002:a62:5f07:: with SMTP id t7mr22995014pfb.108.1548703923472; Mon, 28 Jan 2019 11:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548703923; cv=none; d=google.com; s=arc-20160816; b=QrfQjAVxtl9rjw9+/OcsPmCc5EcoZVVDg3O+B+ISt2PpiIh2470Yj2zM7/4CN54ZZv Bn3fThEbBPld3Y5OG7a/FmkhWbhGjvkRGTftbl76CiG11frsk4WUBlbH/JkAfZEM8pIY waRpRcZSBizVQkF06TqSUKXWP8vsCXxvG6yghVNW28OENAkQStZXHJBmbiwm1OKwiKOQ Vq90WEFu2g9OoVBSpX8cjJ3JQdnLiMPr6xBJkGujylY45h3+8gpMQvOBRajqIFNvOAyn HSZPEzenbjFMqTRZP27C2J48vYhOSBKaKC4GEOEaj+TSvtBOwxfLIEUjsLZV5o9smd2M FKpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gNih+kGXsY02yGlMFspxrtQWhmYIiMEFH/7OeSdZ1fM=; b=Q6QEXQbQMfki59GRZnDMQd7sKqD9W1/xge9oFdMgFgUEhPtvxDdFm58VVs2XWV1Kp8 0qoN6+k2qjMmKRUS7VGa2Jiff0QOh3ONkvTCQWLgJNlw0oYknBSq2ByqdYyry9E3QXJR Lx6WP0Ksl0ssERJDiyGCz7PcsfYFkH26RnYb3bJpi0zaGMS5eDur5xq9RLmpk7fumMTt /0tKjnJIq/oGS0Jq2LztKXvtF34zw3E7+vUj9NgiTcvl5TF6bDXpcyZZUG2dPNLn2PLs ef0egzZ7cnW66O1YteG1BuVOD2ZKJx4QS/eVkHcxK4Y7PjR8YCiqxnQ4Li6sjGzTpkwB Xijw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NZcEj/Qa"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si9155075pgh.132.2019.01.28.11.31.48; Mon, 28 Jan 2019 11:32:03 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="NZcEj/Qa"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728075AbfA1TaH (ORCPT + 99 others); Mon, 28 Jan 2019 14:30:07 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41160 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbfA1TaF (ORCPT ); Mon, 28 Jan 2019 14:30:05 -0500 Received: by mail-pg1-f194.google.com with SMTP id m1so7632459pgq.8; Mon, 28 Jan 2019 11:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=gNih+kGXsY02yGlMFspxrtQWhmYIiMEFH/7OeSdZ1fM=; b=NZcEj/Qaa2hGJoUeXyh4r9timoiJ7QcNCGfKBZBp+gt7ZNs2tp/aNe8bcXTugXtCRj 6iMTv0Zdq7g23k+NE6dr0DA4213i+bg8B5hLxS/jeDEBOZ/kQgaL5GlUGPTfAvrjx9lf uo+gheZlU11FYVIto2rEvaJpFMzEh6N4+K9LLMVX6sN7U86ouyXSeOT6HJEtSbz7dpsP k5somAVoILwh1gBslPFkaXSOZLrh74pEXEvXu/Lqi0x9rXWQD94je3vqse/mOsWe191u 1eyuQZQwbeUs/W2krdQDSp1UnVBRg5TqpKspZu6y4FL2VB3dU8fef06o7h+aOKOjlpo/ yZKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=gNih+kGXsY02yGlMFspxrtQWhmYIiMEFH/7OeSdZ1fM=; b=YejsB0pz6YgxrO/Zg9DGwGIMJY9wPYMSpeXz9JOoM2jsdDshzEs8IIrvail7wN03gF osmp7dsZM/fcEmvtDzqGxtIPOfpu6J4/8y8nG/JudoPCqzguDlN4DuHmxstVhvoIwyhx i3+aURjryo7JIrx3mmstj3j++siLgyci/MFo7iccMYNibKlRJ7pmK3vORCkrdwfuFVP4 Ho5Lxqg93kb+DJnLF6nBevtL+hlunN8RsBhodu4IN7L01SDYd3+lfUgwbah8EAnmcwvk Dkrg90+aDfvoFGngr/RYW5r4dVcdaPkM+imo9VbVoEC+1UThKgJCiaS6aAOQLYWte5BM PdTQ== X-Gm-Message-State: AJcUukfYrZ2kwqgfTS3GD3dkTvlvi143MJ/BuF6obUGWyMmilv0jVsWI sGCSYD2TEfZGxQYvK2huuqPzRXwv X-Received: by 2002:a62:2606:: with SMTP id m6mr22549508pfm.133.1548703804786; Mon, 28 Jan 2019 11:30:04 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id b7sm45385896pfa.52.2019.01.28.11.30.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 11:30:04 -0800 (PST) Date: Mon, 28 Jan 2019 11:30:02 -0800 From: Dmitry Torokhov To: Jonathan Bakker Cc: =?utf-8?B?UGF3ZcWC?= Chmiel , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "mchehab+samsung@kernel.org" , "colyli@suse.de" , "ckeepax@opensource.wolfsonmicro.com" , "andrew.smirnov@gmail.com" , "arnd@arndb.de" , "xiaotong.lu@spreadtrum.com" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH 4/4] dt-bindings: input: Add documentation for gp2a sensor Message-ID: <20190128193002.GE34692@dtor-ws> References: <20190125175045.22576-1-pawel.mikolaj.chmiel@gmail.com> <20190125175045.22576-5-pawel.mikolaj.chmiel@gmail.com> <20190126013237.GF212026@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 26, 2019 at 03:14:14AM +0000, Jonathan Bakker wrote: > Hi Dmitry, > > Thanks for your review of the patches. > > Considering that the light sensor part should be in IIO, should the entire driver be rewritten as an IIO driver? There's already the driver for gp2ap020a00f there which is presumably the gp2ap002a00f's successor and does the same functions. I'd be fine with that. > > On 2019-01-25 5:32 p.m., Dmitry Torokhov wrote: > > On Fri, Jan 25, 2019 at 06:50:45PM +0100, Paweł Chmiel wrote: > >> From: Jonathan Bakker > >> > >> This commit adds documentation for Sharp GP2AP002A00F. > >> It's Proximity/Opto Sensor connected over i2c. > >> > >> Signed-off-by: Jonathan Bakker > >> Signed-off-by: Paweł Chmiel > >> --- > >> .../bindings/input/sharp,gp2ap002a00f.txt | 29 +++++++++++++++++++ > >> 1 file changed, 29 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/input/sharp,gp2ap002a00f.txt > >> > >> diff --git a/Documentation/devicetree/bindings/input/sharp,gp2ap002a00f.txt b/Documentation/devicetree/bindings/input/sharp,gp2ap002a00f.txt > >> new file mode 100644 > >> index 000000000000..c524eb7d3d60 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/input/sharp,gp2ap002a00f.txt > >> @@ -0,0 +1,29 @@ > >> +* Sharp GP2AP002A00F I2C Proximity/Opto Sensor > >> + > >> +Required properties: > >> +- compatible : Should be "sharp,gp2ap002a00f" > >> +- reg : The I2C address of the sensor > >> +- vout-gpio : The gpio connected to the vout pin > > > > Do you know what it is for? > > > It's the control of the main power supply to the chip. In this case it should be a power supply (regulator), not gpio. Thanks. -- Dmitry