Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5868449rwr; Tue, 9 May 2023 07:19:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zHKGlko9JVKtE1PAm9fuA+PQDYYs/q82mE6L6vgK+Z+fI/jEMVEjVwnmS5gLNxjV3sTYR X-Received: by 2002:a17:902:c951:b0:1a9:91a1:57bd with SMTP id i17-20020a170902c95100b001a991a157bdmr16600623pla.34.1683641974500; Tue, 09 May 2023 07:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683641974; cv=none; d=google.com; s=arc-20160816; b=HcE5/z6sEXtg2F2H+xhCLEU28pSOnLCyH5WiWt9bHswgj7xNnZEW3GyDhBUsGXbZWE YVaQpvHfzUIAS3QtiC5psl6PwWTpDF6t3zN+wbXN69/1rpE8/Fppe5TPT7kamVRpNvDi 9ohGGsWb+NXZnifPhdGt76uft8+bcheV1OlQgJd4YHhNplJrmEW0JDzuWtZjpnm73SRW epLHPoEcraEoOMo8du2Wd8ag92997NpohKcnP00ZiOdpCu29GB1dlt24caA7jFNzst2d LoxbChCoL3oND8q034gq39PoQ+JCrC8k0ZUgUPXXTeHerdHUMD3JQnt2ml12822F/MKw D0ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qDagt0IbQhY0WYpliZ1+/6WFtA2GBq8FrdsKcMA5ZKg=; b=X6nf+BEygCBz6vPlxWqoGY1FL893X5X6FHORSL2d1uoOHhsVX1N7DvxezSnyNUeAwy vPqi738p85Foq1zbyqzZta+fH9antlbT95Y3CNAMgZv8sRSa49RHWS3UrOZ9XKPJgddr FAheNJA5rEoLudJkV8qrJwj99Oi2zRGb5SUML6T3D24GnXC7t27SoKP7xnlkb3ouz/n/ GnQnyqiSqPciz4WNGmvIigjiutYiR8UExHCoi1cZFb8s2wZmm/31a5biXoqyY9T7rePY IVBQs1noeiKTUMjjPzCUlS+q6dWChp92lBORYFG3iQIIftIqf35q3KNXt3ArzvVMvisO A+mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=d511bJYt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a170902708100b0019f25dae4f5si1573241plk.198.2023.05.09.07.19.19; Tue, 09 May 2023 07:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=d511bJYt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235560AbjEIOCN (ORCPT + 99 others); Tue, 9 May 2023 10:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235679AbjEIOCI (ORCPT ); Tue, 9 May 2023 10:02:08 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C51582718; Tue, 9 May 2023 07:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1683640918; x=1715176918; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qDagt0IbQhY0WYpliZ1+/6WFtA2GBq8FrdsKcMA5ZKg=; b=d511bJYtF6NjTb1lCq13TuNi3Yg9enh05gWUmII4YeLEl3zX6DopPV2U syf/lPa5pWYC76jUcbeHSJjSwfJOCIDTOS2fzssjOqClgQM3uEbJwBMKs FW3eXsk2FpfrpvMdE/lmDva1XAf+XTHd1KjfaB4n0nzma7tg72viWZiY2 RxUPjyUXzv4c1BYv6Z/kip1hnKEhWuU26w4Q2ArueJGoo3QHeZjK1cFSl Qn+Jek7ykDUFet6QKqctHxAlDD11uwFv2/ZBgolajHO6xVKYAjvFzBrNA ZR14Wlaq4qXDBFf2fDN70fU9c3NNuc8DOUBxvZbGYSTEQ1l8+Q3axTFs8 g==; From: Astrid Rost To: Jonathan Cameron , Lars-Peter Clausen CC: , , , Astrid Rost Subject: [PATCH v2 0/7] iio: light: vcnl4000: Add features for vncl4040/4200 Date: Tue, 9 May 2023 16:01:46 +0200 Message-ID: <20230509140153.3279288-1-astrid.rost@axis.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="No" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a more complete support for vncl4040 and vcnl4200, which allows to change the distance of proximity detection and interrupt support for the illumination sensor. Proximity: - Interrupt support (new on vcnl4200). - Adaptable integration time (new on vcnl4200) - the sampling rate changes according to this value. - Debounce times - interrupt is asserted if the value is above or below a certain threshold. - Oversampling ratio - Amount of LED pulses per measurement. - Calibration bias - LED current calibration of the sensor. Illumination: - Interrupt support. - Adaptable integration time - the sampling rate and scale changes according to this value. - Debounce times – interrupt is asserted if the value is above or below a certain threshold. changes v2: - [PATCH v2 3/7] Fixed calculation of al_scale. Fix the value of vcnl4040 according to the data-sheet. Use div_u64 for the division. Astrid Rost (7): [PATCH v2 1/7] iio: light: vcnl4000: Add proximity irq for vcnl4200 [PATCH v2 2/7] iio: light: vcnl4000: Add proximity ps_it for vcnl4200 [PATCH v2 3/7] iio: light: vcnl4000: Add als_it for vcnl4040/4200 [PATCH v2 4/7] iio: light: vcnl4000: add illumination irq vcnl4040/4200 [PATCH v2 5/7] iio: light: vcnl4000: Add debounce count for vcnl4040/4200 [PATCH v2 6/7] iio: light: vcnl4000: Add oversampling_ratio for 4040/4200 [PATCH v2 7/7] iio: light: vcnl4000: Add calibration bias for 4040/4200 drivers/iio/light/vcnl4000.c | 723 +++++++++++++++++++++++++++++++---- 1 file changed, 654 insertions(+), 69 deletions(-) -- 2.30.2