Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6308159ybe; Wed, 18 Sep 2019 01:03:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwp8Y0009fSAAjDHbOZm2uN2SVq6AT2+2rOwELRsB4ZG9OF4tIfG0bgdVQJLOCwCzm3MPPY X-Received: by 2002:a05:6402:1246:: with SMTP id l6mr8654701edw.213.1568793834635; Wed, 18 Sep 2019 01:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568793834; cv=none; d=google.com; s=arc-20160816; b=S8Pn0IR0T1C/EoUE1SfChzva3iOfBcUF9Zeti2UTs/oMNSgDm3gmJKpVuLtTgAGk6h +BJ787u3E4rrHVtzaSl6Z1/MEfKRlDhL10JBSq9ISZya4hXLgs8Ops2xKayJZ17uArN4 C/gcJikEKDxycfJNSrPjY/9GNJ+eIjLRbHYrDj8ExX3eyEFsgpmug8uy0YgR6o1wVNVp HyoDVfBtqC/qgVSzr1w8SXWtSLo4YVSWYv0InHN8ojmtIZjL0+3GmoQAqosICvl2vIu4 d92skX9q9xZgFFDYwDWxYZSQtErVJ4h8Fvg+kyrIH9zmmSxElT+ZSv8evGifHBa8cKC1 ZhEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=V4dfqH9cr9ZOJT5sqm0l8wJAHrLJRz9FaSLp2042uos=; b=1Fl7pEpCgemV5fuscSI7J0efHhu1yEb0FeOHm/JgI2cL9xHRGMSUT0X/hFXSIJ3oZj N3N1YVashKu2XU8h+pg2qQNzXmUi+1+5F1ueRySiGHRUUV9WbILhcgPHcyR7onSwmb8j isYBdOYz8I0Ba3mbLK9Rfc93B2sVn+OFmf9FESwSXntueT8LIHarwFta5kJwqxI0Wg2N 5SCmufwsZ81gVsN3fna1M8UvKnJD4lsD5Jl7A+3/GUC3kZj0GEr1SXUvBmZP7a3rxsQy ag7GzLGbTSnjwGgrLgIIxo/Ix7HLHRSdBa/T6pvA3lFhXhOgpMJk4TVEnMmQLPOFmkH5 nr4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f6I1NeEX; 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 d15si2966870edb.7.2019.09.18.01.03.29; Wed, 18 Sep 2019 01:03:54 -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=@gmail.com header.s=20161025 header.b=f6I1NeEX; 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 S1728195AbfIRDJl (ORCPT + 99 others); Tue, 17 Sep 2019 23:09:41 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33858 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbfIRDJl (ORCPT ); Tue, 17 Sep 2019 23:09:41 -0400 Received: by mail-pg1-f194.google.com with SMTP id n9so3148730pgc.1; Tue, 17 Sep 2019 20:09:41 -0700 (PDT) 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; bh=V4dfqH9cr9ZOJT5sqm0l8wJAHrLJRz9FaSLp2042uos=; b=f6I1NeEXkGZ+sI1W6vqQ3Y/3dEuWWik83da25RFn9o23iJAJ/oxK6RznhDlnmGWuPQ KYPplaJOfndptEX4em+UyRRA7HNyI0AvLFeBA7Efhceyxu7a0rrZYB8FXprX/68MHror 6P5Ly+AgT6+J5GoDvw2Pb27ZGkJYRF4Ek1fvVuGw4Ap82Nbtb9FRu9sRpVSRo1hKqNBU w4ulOuC+PlO/zqCZrHvFqegyvXHahAIllsa0IHCk1lwoygBuOzS4xsrunM8esMDTq4YF EW34I87wYZBxvia7KmbkDgq3tlToYtEjN4eXYTgJ0KO1xsOhmxAzvcnZDE62keJ2HkfU PNRA== 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=V4dfqH9cr9ZOJT5sqm0l8wJAHrLJRz9FaSLp2042uos=; b=jj40HEmZWrQDmqHu7GMrUyBAU7KkuEGI10yVbgJm8/CFSLqigciew62VPFefQaWgEc YpRmfJP/vfTfcKpDx+7MIpcIPTtheps+AUZEbxRt/gC75pCpNIV7i4KF75GkHQbJqu+u dkVBPeurHPLeFbQiiigos8jD6kOYeGV8Kyhm6cY0EO5YBVXZuWLKqon4Ko9E6vsnGkGG +YRH8w1v0MT8UZqVGZPL8mVvMm/O8N0uBfAN6mD/zY8Zahsir4o0kdn1U+vp1skgHAbp t4Uum9WKtBYxzyEeM7rkO+YT01CILz2+HNQkrgKeNy0acygK/UqYjo6smvyYh72ZjNtV Ql5g== X-Gm-Message-State: APjAAAUq0kpMgUdEaDB/EAzTJnv19LEaqDwkJs8FUCc9W4TFF2ZUt6bg KjXwJ9zs+s1ElVQLxo9fkag= X-Received: by 2002:a63:c0d:: with SMTP id b13mr1900935pgl.420.1568776180514; Tue, 17 Sep 2019 20:09:40 -0700 (PDT) Received: from localhost.localdomain ([106.51.108.240]) by smtp.gmail.com with ESMTPSA id x68sm4234116pfd.183.2019.09.17.20.09.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Sep 2019 20:09:40 -0700 (PDT) From: Rishi Gupta To: jic23@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, tglx@linutronix.de, allison@lohutok.net, alexios.zavras@intel.com, angus@akkea.ca, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Rishi Gupta Subject: [PATCH 2/2] dt-bindings: iio: light: add veml6030 ALS bindings Date: Wed, 18 Sep 2019 08:39:17 +0530 Message-Id: <1568776157-5373-3-git-send-email-gupt21@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568776157-5373-1-git-send-email-gupt21@gmail.com> References: <1568776157-5373-1-git-send-email-gupt21@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds device tree bindings for veml6030 ambient light sensor. Signed-off-by: Rishi Gupta --- .../devicetree/bindings/iio/light/veml6030.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/veml6030.yaml diff --git a/Documentation/devicetree/bindings/iio/light/veml6030.yaml b/Documentation/devicetree/bindings/iio/light/veml6030.yaml new file mode 100644 index 0000000..d92684a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/veml6030.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0+ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/veml6030.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: VEML6030 Ambient Light Sensor (ALS) + +maintainers: + - Rishi Gupta + +description: | + Bindings for the ambient light sensor veml6030 from Vishay + Semiconductors over an i2c interface. + + Irrespective of whether interrupt is used or not, application + can get the ALS and White channel reading from IIO raw interface. + + If the interrupts is used, application will receive an IIO event + whenever configured threshold is crossed. + + Specifications about the sensor can be found at: + https://www.vishay.com/docs/84366/veml6030.pdf + +properties: + compatible: + enum: + - vishay,veml6030 + + reg: + description: + I2C address of the device. If the ADDR pin on veml6030 + is pulled up, this address is 0x48. If the ADDR pin is + pulled down, this address is 0x10. + maxItems: 1 + + interrupts: + description: + interrupt mapping for IRQ. Configure with IRQ_TYPE_LEVEL_LOW. + Refer to interrupt-controller/interrupts.txt for generic + interrupt client node bindings. + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@10 { + compatible = "vishay,veml6030"; + reg = <0x10>; + interrupts = <12 IRQ_TYPE_LEVEL_LOW>; + }; + }; +... -- 2.7.4