Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2844614ybh; Mon, 16 Mar 2020 10:47:01 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv2jfwnSVRurcfpfKbZOfyO9B+fXgcXGoYfuCHhKJY6RKyCWGPwqOIV1CbPHEzEh1Y2Vei/ X-Received: by 2002:a05:6830:1410:: with SMTP id v16mr324963otp.315.1584380821688; Mon, 16 Mar 2020 10:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584380821; cv=none; d=google.com; s=arc-20160816; b=QYYBhLCSLIAgJHNNgBxQ8w5kb0C6kWF30tr5YrWTxl3nVfsYzWSQAU13BfwW561+Xp bBWfujVgl8mqRB049TdTQ7M6SNFFp1SdJb0jjU1lq8TSooS9FXX32xl8PpywJPSAknzO DuP8oWQ55mlUeFzdQAilYoyAL4hc7BG7CGlrkUdUYcyzZik1TrXBJemv33WY8R2EE/0G x+JP/kYDuD/vy3OJD8gDEEOuibzds9OtOpRFFAg+17dhajHR4LYWjlrC1tysxidiVF7l rKFhB6rreW3H7dzBRGOu/mxFtUA336dV4hyAu8A8I4KD+9GS+1UVMDET9pm1bsSAIqXc 6UyA== 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 :message-id:date:subject:to:from; bh=ClFN02dEgncMJdNR9jRalF6InI5rchNlh8bN+vjw07I=; b=o5/0H5NCN+zgdHD6IfMG3sipMjLGdyF0oGO/9Hd9ZXyPK/crtXqbuVEa/RZk3nug2k n534s4oHiB4hv9HiGkOG4Hx6fDbSMUFiVGOPqepWANFi/Q1oX68frarYNC5YRJ+fekZ6 NTqD9x7vsZsLZPphIMXFXcmg2hEi8w0TNxX/laxWUFMFdTkLHswzAi2QhIMKJP+7rStc at8uR/+/vLtoqW+AdjnmeHi2q1sPZmQGoIOgjHLbJRvwKvTbQiRILkXITq5jDAa+StXc U8+DXuaR5UxZQjy19BCTc3cS9D17h8V2o6gavomeuAx09U/5DZkUIF+45uPFTHmbeCpK qTSA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 145si337874oie.185.2020.03.16.10.46.49; Mon, 16 Mar 2020 10:47:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732223AbgCPRq1 (ORCPT + 99 others); Mon, 16 Mar 2020 13:46:27 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:54068 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732140AbgCPRq1 (ORCPT ); Mon, 16 Mar 2020 13:46:27 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id B61C4FB03; Mon, 16 Mar 2020 18:46:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzjLZ3JXf229; Mon, 16 Mar 2020 18:46:21 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id B8EB640D86; Mon, 16 Mar 2020 18:46:20 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Tomas Novotny , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , =?UTF-8?q?Guido=20G=C3=BCnther?= , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 0/4] iio: vcnl4000: Export near level property for proximity sensor Date: Mon, 16 Mar 2020 18:46:16 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 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 If an object can be considered close to the device that has the proximity sensor built in is hardware dependent. Allowing to configure the property via device tree allows to export this device specific value to userspace via ext_info. This is useful for e.g. iio-sensor-proxy. This came up when adding proximity support to iio-sensor-proxy [1], [2], it is not meant as a vcnl4000 thing but rather as something useful for other proximity sensors too in the future. Changes from v1: - as per review comments by Jonathan Cameron https://lore.kernel.org/linux-iio/20200221120519.43b72007@archlinux/ Document new sysfs file in Documentation/ABI/testing/sysfs-bus-iio-proximity - convert bindings to yaml - bindings: fix typo in near-level property [1]: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/merge_requests/298 [2]: https://lore.kernel.org/linux-iio/20200210154153.GA26903@bogon.m.sigxcpu.org/ Guido Günther (4): dt-bindings: iio: vcnl4000: convert bindings to YAML format dt-bindings: iio: light: vcnl4000: Add near-level iio: vcnl4000: Export near level property for proximity sensor Documentation: ABI: document IIO in_proximity_near_level file .../ABI/testing/sysfs-bus-iio-proximity | 10 ++++ .../bindings/iio/light/vcnl4000.txt | 24 --------- .../bindings/iio/light/vcnl4000.yaml | 53 +++++++++++++++++++ drivers/iio/light/vcnl4000.c | 26 +++++++++ 4 files changed, 89 insertions(+), 24 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-proximity delete mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4000.txt create mode 100644 Documentation/devicetree/bindings/iio/light/vcnl4000.yaml -- 2.23.0