Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1718453ybn; Thu, 26 Sep 2019 00:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHGpmxt9YGLXNm7JI6YgInxLn+r4cwrFCn4oMTiDWYC5n4wQ4ONyNmU6smVWCgtSccZWKI X-Received: by 2002:a17:906:5fc4:: with SMTP id k4mr1902886ejv.300.1569484156732; Thu, 26 Sep 2019 00:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569484156; cv=none; d=google.com; s=arc-20160816; b=RLHCzn8398t9+PsjMi4FrWzzFiHQoHVSlhFLWz2QyJWIyMH8F7UQ3fJAP7Pgh9mh+J i/Tk/V9ZUbJ4s04UVcuPRb5GKINt77p1Uwp9Qr12+vawDsgZWQGYBeusXfSQZ3QmIeVU 4QDOb/ISLdEZwwE1dZcjB2lZxOP95XvXcaUE8qdaXZB5O3L2PDpU6/YIbYTczReOFq8A wjPlOnZU7NRGZr/nNygVqJO2r2bA205Qm67O5g02YKP5y8G2W5jsrZAEqbUAVX/iYsyu aDD6doyEJnsE4X9LNm1WTToieaiFAzvrWc+h+ig+2bXu9gKwX5E3o5sMqJOQI/hCdVRV Bu5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=qlJPjtqwH4SH4+kSPRq33RCq3tnW7zeL3j/StA+vARE=; b=sDBFajEexmF6XkxSlHJ1HPVUcC9N4GYEEl7T16u1zuIzHBsiCVlcw9//7Xk09cbnmL AhmgEq1XUUL9yFd1HEwqF/3ifGkVi4b2OtDjH0dzbCrzAlH1Uq+uwgXFnua63NdLILmR WxVw1I/ok5iVJswZjgLdbY83ctod9cIfB/hjsClNrBK8drBdQzmIz/nLRKjEobWF17t6 dWH1WnjUONykjqKC1jewPQbCDwWJhBo73SlCMr0/s23ZOMP5CWaHH3l5KT5CRHv9U4D5 1pxT9UGXg2Jl1es2EhyhDgwVjNElEx6OIdi8sNqx6RzMg8Uu4d+RvX7sHJkNKZLn1EWt hIBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VAqeqQfs; 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 o17si581001ejm.261.2019.09.26.00.48.53; Thu, 26 Sep 2019 00:49:16 -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=VAqeqQfs; 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 S2395077AbfIXK5q (ORCPT + 99 others); Tue, 24 Sep 2019 06:57:46 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35093 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406623AbfIXK5q (ORCPT ); Tue, 24 Sep 2019 06:57:46 -0400 Received: by mail-pf1-f196.google.com with SMTP id 205so1137585pfw.2; Tue, 24 Sep 2019 03:57:45 -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; bh=qlJPjtqwH4SH4+kSPRq33RCq3tnW7zeL3j/StA+vARE=; b=VAqeqQfs5vp8XcbvrzPXOHLl9wsuwAigfKHOkb7U0V2zK7BxUFOcXaPEps0+4Hf7gY ckR+vHTaPFN58C0YhPLLi9BJ7aGmt3IMSbFVt2MKyt7dA6x3U+RNV6AUydLpOksvcAvV hUiuKjMFRtNToW5jMRJUIEaivWgehDkCd/ftgXNa5VbnK7ZyNy/T8aynJ3N5HhPlzeRg u4mh8XwqP7cnPKP1lTz7zR+pN35/4Y/yBVbmDy5Diphwjrkc3TJhMcsXzwIhTnlquw2C DLF5Y03beyk5FVCSyB3qWWHi3qi1eHBCd4pn55fwCNZzc4lBasIetioc6jONHnuOJ53z 7zCw== 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; bh=qlJPjtqwH4SH4+kSPRq33RCq3tnW7zeL3j/StA+vARE=; b=Er5qfXvIpVoUqbXDw/dM+JoA2GlHSUZFFY2Gx/NMCH3blPHwnRDHVmpd5dYfQ37T/2 msgWNGmQomi6HF1aCNyG0cVB61eqBZKtPrTi/c4V4Fvvki45aMtQwAcdaHdOkkVNhGjc SpaCSkI2m4qrdFTCa27FnBxPNlXlKs2ZYescH8UELCRD3K88LjvLeKz5PGIchLC3Jw/p rRs6X5Q8L6QBWIkSTsYyL8V+XtLkngLiCP42VQSXT9fNkikt7uNBxTQwuP4YnMCejnQv DlPTShRoirz5vxFljksbTtssHcI9JE0nLjhC8OfSntTBWA/jwRfh43iZ4pBncdQTBFJh Y6Eg== X-Gm-Message-State: APjAAAXUPZi1bVXSIGA/bxkwrOV+HeTyhjHBUjwCWYDqvmtQ6OiHXRcQ hninxGNpbxKkTWcrSKjDJm8= X-Received: by 2002:a65:5043:: with SMTP id k3mr2559662pgo.406.1569322665098; Tue, 24 Sep 2019 03:57:45 -0700 (PDT) Received: from localhost.localdomain ([106.51.110.135]) by smtp.gmail.com with ESMTPSA id c125sm1953886pfa.107.2019.09.24.03.57.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Sep 2019 03:57:44 -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, hslester96@gmail.com, wsa+renesas@sang-engineering.com, Rishi Gupta Subject: [RESEND PATCH v2 0/3] Add driver for veml6030 ambient light sensor Date: Tue, 24 Sep 2019 16:21:55 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The veml6030 is an ambient light sensor from vishay and is a different hardware from an existing hardware for which driver currently exist, therefore this driver submission. * All features; ALS, white channel & power management is supported. * All configurable parameters are supported through standard iio sysfs entries. User space can get valid values of any parameter (xx_available) and then can write to appropriate sysfs entry. * User space can get ALS & White channel readings through RAW IIO interface. * IIO events are used to notify application whenever threshold is crossed. This uses IRQ pin of veml6030. * Some registers in veml6030 are read only. For these registers read callback returns error to user space. There are 3 patches for this submission: [PATCH 1/3] iio: light: add driver for veml6030 ambient light sensor [PATCH 2/3] dt-bindings: iio: light: add veml6030 ALS bindings [PATCH 3/3] iio: documentation: light: Add veml6030 sysfs documentation Rishi Gupta (3): iio: light: add driver for veml6030 ambient light sensor dt-bindings: iio: light: add veml6030 ALS bindings iio: documentation: light: Add veml6030 sysfs documentation .../ABI/testing/sysfs-bus-iio-light-veml6030 | 49 ++ .../devicetree/bindings/iio/light/veml6030.yaml | 62 ++ drivers/iio/light/Kconfig | 11 + drivers/iio/light/Makefile | 1 + drivers/iio/light/veml6030.c | 633 +++++++++++++++++++++ 5 files changed, 756 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-light-veml6030 create mode 100644 Documentation/devicetree/bindings/iio/light/veml6030.yaml create mode 100644 drivers/iio/light/veml6030.c -- 2.7.4