From patchwork Tue Nov 7 15:36:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 10046941 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 73D8760247 for ; Tue, 7 Nov 2017 15:36:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 657672A21C for ; Tue, 7 Nov 2017 15:36:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58D0E2A222; Tue, 7 Nov 2017 15:36:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 099182A21C for ; Tue, 7 Nov 2017 15:36:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbdKGPg4 (ORCPT ); Tue, 7 Nov 2017 10:36:56 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:45049 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756902AbdKGPgx (ORCPT ); Tue, 7 Nov 2017 10:36:53 -0500 Received: by mail-wm0-f66.google.com with SMTP id n74so14816183wmi.1; Tue, 07 Nov 2017 07:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dNj/53XeD4J31Sh9BUeK9l52mzSYFXicSNZevaOjcn8=; b=e6jG8MvAUM1RU8ukBqeUsVzIIPIp+dOwFOVA3CNl1wfrCcWop2EBtNv+SdYcv5YJsh kucpBhmwEtvp9QgWb5VyOOyHhxfcmPLRIMRYrg5HuU9rO5c9CJspfQUb+UY3pCcES85W psFBbS8W6Jqdr/iSxRS+2+1mW0eJmg8nbcnh/GV+m2GwaezL6PXyAyHslVkpkY97nDPj C+Bm6BgV0J9L9ncPOlmdMQ3HbrQJA6WsTCxYbQ4RqB2mywU9vBvgMN52v7qlXfqTzYE6 HQqWYdIq6i5c5zD52XgeHnugv/c/PrZjXd60k9nIiaDr69CnHHFDnfjfngGkbkKnrVK5 SXQg== 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; bh=dNj/53XeD4J31Sh9BUeK9l52mzSYFXicSNZevaOjcn8=; b=o4gdZe1niwALxDAV/vB+xi/zNFj4cDID3VjNevFmexdJxR877561Lgc6HC00PC4ASQ nZuZMrt+ASP4NAB+dQF2UhNCBn2515ex5K7vK8aSq2IuLVL0f5LvT3PpfxFCaAYeqDVB 81ayjvZkHjE/4DkQsy2+a7T/i8ST+3JDXjZnl45VBp9nXDjjllSLT4p72SuoqVCM96us ui9EI+lRo77wAWo7pvTWS5q69byEdC3T0DIUi0FixOqNTd/EBXgt40dDSZKdLZVFQo22 npRcZvazgwgAouTLi4ZBLOaEjpdN2Mn6dhioWB/sifretqY9c6yfMGl9MnjmiyPQ9x/J quTw== X-Gm-Message-State: AJaThX4zlD7LHRRSm7x6iTzsS6Eq+nlShquyHgGf6FZLo+WJEdSMi67v EtmJj4ZXrjgNUm3KMOM65sM= X-Google-Smtp-Source: ABhQp+QMtJGs1Wh5miIuZjWhX3mOwK7FoRsrNI5lKqu3xN4Pj0MX1vSyOgfeobG9vo3dLQugAC/9pA== X-Received: by 10.28.60.8 with SMTP id j8mr1668162wma.92.1510069012555; Tue, 07 Nov 2017 07:36:52 -0800 (PST) Received: from mars.fritz.box (HSI-KBW-109-193-021-110.hsi7.kabel-badenwuerttemberg.de. [109.193.21.110]) by smtp.googlemail.com with ESMTPSA id q74sm2934227wrb.51.2017.11.07.07.36.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Nov 2017 07:36:51 -0800 (PST) From: Christoph Fritz To: Jonathan Cameron , Peter Meerwald-Stadler , Rob Herring Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: iio: add Intersil isl76683 light sensor bindings Date: Tue, 7 Nov 2017 16:36:22 +0100 Message-Id: <1510068983-25769-3-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1510068983-25769-1-git-send-email-chf.fritz@googlemail.com> References: <1510068983-25769-1-git-send-email-chf.fritz@googlemail.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds documentation of device tree bindings for Intersil isl76683 light sensor. Signed-off-by: Christoph Fritz --- .../devicetree/bindings/iio/light/isl76683.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/isl76683.txt diff --git a/Documentation/devicetree/bindings/iio/light/isl76683.txt b/Documentation/devicetree/bindings/iio/light/isl76683.txt new file mode 100644 index 0000000..657f17d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/isl76683.txt @@ -0,0 +1,26 @@ +* ISL76683 ambient light sensor + +http://www.intersil.com/content/dam/Intersil/documents/isl7/isl76683.pdf + +Required properties: + + - compatible: must be "isil,isl76683" + - reg: the I2C address of the sensor + - interrupt-parent: should be the phandle for the interrupt controller + - interrupts: interrupt mapping for GPIO IRQ + +Optional properties: + + - isil,external-resistor: integer in kOhm of external resistor R_ext. + Valid values are from 1 to 1000. + If not supplied, 100 kOhm will be assumed. + +Example: + +isl76683@44 { + compatible = "isil,isl76683"; + reg = <0x44>; + interrupt-parent = <&gpio1>; + interrupts = <20 IRQ_TYPE_LEVEL_LOW>; + isil,external-resistor = <50>; +};