Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp727435imu; Fri, 25 Jan 2019 09:52:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN4069NVCAqLMzFgfV7GzSq/mABzXKgL2lC5mnir3w6rfSg/3ibsy1IdYxfd/EeDKWxDv43N X-Received: by 2002:a63:5922:: with SMTP id n34mr4239510pgb.435.1548438766913; Fri, 25 Jan 2019 09:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548438766; cv=none; d=google.com; s=arc-20160816; b=bbaEOEwhRjfHrGCmnHC3rEMowofo8iPr9iwOVs8FK5KnZYzyrx2G33CzQrIm+h0gCV ktG+y13B9Z32nEqfUxtX1b3oNkynwHJGggWYEuy/eH+ZRm4RYXGQeNddw5gVUR5ySrUl TdENycCsoT/D80NXFmHpqopaKoBl7vXbivZTSMj7+wHrioKYXCOQHyaZqN4PHyQIkU+r OX9DCYp9P3yTqEwTXlehwPoXHhzGc0DaYwA6yNgpJ1I0VrC4SVu3RaM58t2GaLmOlad1 LYQKmtzKeCkXOkjUCrv0mo65/NiqybKgKQFx9B17WatNtCh6wiTPWvXwgili+nVd1ZBL 31fg== 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:date:subject:cc:to:from :dkim-signature; bh=+CYllznRYt133KTflL22y4PX2RmV6ZawSJvxIL4oFhI=; b=YpucUd+2MzaS7Qz1rp8i+vq8ICwjNvR9okFFtntKr5dFR8qTOhmQSNnS+Z3ul67+vS rlKODiDm5QjC468DqR9t2krB6lXLP4EaGX5PhWX0ssexPJ7oFd+XmX5CzHNG1YZs7ni2 3ev5Xunazex8oeAn7xefVMP3C/M5rk+/JOJVAXw4IVk8F2zqhP60KTA3itWJDHiSNomU nb0u4UfuGjOpZ7oPNJP8QQU3zQyRPo38W4uVd3qui8XVlvSwxBx6oU/YRfrkE+SlX0Jr +f01y5O76uZo+xKwSa83FTP91O+auNBNQDeqjzgJqsV5viHYFkSf7MN39I7akvdMj03h 2lXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B3YV4XDW; 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 s12si3976872pgg.188.2019.01.25.09.52.31; Fri, 25 Jan 2019 09:52:46 -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=B3YV4XDW; 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 S1729436AbfAYRvC (ORCPT + 99 others); Fri, 25 Jan 2019 12:51:02 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39817 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729385AbfAYRu6 (ORCPT ); Fri, 25 Jan 2019 12:50:58 -0500 Received: by mail-lj1-f193.google.com with SMTP id t9-v6so9070064ljh.6; Fri, 25 Jan 2019 09:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+CYllznRYt133KTflL22y4PX2RmV6ZawSJvxIL4oFhI=; b=B3YV4XDWHgZ3WJWKjy56eilIMuCNkNAe0setxKIu7hH78elM5xmPC9Sc6n9MxnGO9D aIu+LLW4aPwsP5n2oB3Fh1EtgE1m0IHO7N2Xj3q1MhjrtnmjxCqHcpaA/NnP10mDNIWB niLglWg+YDTQl8gCMvO8mxN1+yD8KLFp+iCQNeC3uq6+FAiRVQTBXYX7j1CTGjeAgMRJ 3VRZvevDHvvAtoTZe7aIJ5T+XIb+/7SMbGu2hZzZ3aU5is1mbP3HW3/bDzu2qHhZb+r6 2s6e6AzTfevp3ZZ3UpoDa3B/BoCgORuTsLohhbLqEpQn/WTeHNPH3u+MDLvPPXv03A3B pckw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+CYllznRYt133KTflL22y4PX2RmV6ZawSJvxIL4oFhI=; b=R7v6l9kd7NJhw1n084nlfqbAbLwB6m2n0oJ/9z6iDj26c3X985K1dCR9X82zAPb/k1 bKAE/H71dULDvWDlxj6WBOrbhijBo5QpRGlfoaFRwlzr2+1ah/5K06pUJYxlE+B9NXxx jvLSFsYi77ulgxaQVmEW9C13pYoBaoNScYP/8U96nbIKW1F126PrUQyRlFYoyp6D3vbq PO+EOCBUWCdqL/RC1l1v6k2AAOUtEJpwbLxlTmJ5lKFlPLH8fpGtKpJd7g5nSpBEPhTE ezdFtN/4bcItImW7SiVEyvatVRblWELbR0zqFdlKPaRB+lShPYmEguJypOvFPub4RgoI h5Uw== X-Gm-Message-State: AJcUukeeQAhh+4ObLM7NXfEw5zjyADp3KuaKlSrjOc6LJKG8k76qlglM 2h7tepid9kX4D3PHfcxXYrI= X-Received: by 2002:a2e:8951:: with SMTP id b17-v6mr10570925ljk.142.1548438655548; Fri, 25 Jan 2019 09:50:55 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:6921:1f1d:2918:d853]) by smtp.googlemail.com with ESMTPSA id l21-v6sm1575606ljj.48.2019.01.25.09.50.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 09:50:54 -0800 (PST) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: dmitry.torokhov@gmail.com Cc: 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, xc-racer2@live.ca, pawel.mikolaj.chmiel@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/4] dt-bindings: input: Add documentation for gp2a sensor Date: Fri, 25 Jan 2019 18:50:45 +0100 Message-Id: <20190125175045.22576-5-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190125175045.22576-1-pawel.mikolaj.chmiel@gmail.com> References: <20190125175045.22576-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 +- interrupt-parent : should be the phandle for the interrupt controller +- interrupts : Interrupt mapping for GPIO IRQ, it should by configured with + flags IRQ_TYPE_EDGE_BOTH + +Optional properties: +- wakeup : If the device is capable of waking up the system +- io-channels : Phandle to an ADC channel connected to the light sensor +- io-channel-names = "light"; +- poll-interval : Poll interval time in milliseconds, default 500ms +- light-adc-max : Maximum light value reported, default 4096 +- light-adc-fuzz : Fuzz value for reported light value, default 80 + +Example: + +gp2a@44 { + compatible = "sharp,gp2ap002a00f"; + reg = <0x44>; + vout-gpio = <&gph0 2 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gph0>; + interrupts = <2 IRQ_TYPE_EDGE_BOTH>; + io-channels = <&adc 9>; + io-channel-names = "light"; +}; -- 2.17.1