Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2016028ybz; Thu, 30 Apr 2020 09:22:29 -0700 (PDT) X-Google-Smtp-Source: APiQypIk4Ku+N5ue13zaRJx25MqZGVjRd4e/h0AKQDKbdPuwhhLDTCNEzyeAdB6ej3SWCY3dSp5j X-Received: by 2002:a17:906:16d0:: with SMTP id t16mr3373664ejd.303.1588263749309; Thu, 30 Apr 2020 09:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588263749; cv=none; d=google.com; s=arc-20160816; b=hom171wVIpcJSIFBzhUroHWZxmiBs0piHbuN6He2Ek3gie95hEwA5eUZ1SiJoPZvAM 09kP5JLcQDexc1ZOf3+Cb3LWupMSThPo1dgNMP27sPbLuIBvtUHxksJ1aUBCRItyCD3I gtO9+Xmkpu2gY9chyYx9GfmlGgr5oVo0kiCiqblttx/xwvLWMN7S5xcvKBgDTWZIy8wX 4+fnEylc7O++kN4X+ibNf3yoHtai+yn0lOMIFQsmfxL1WTGA3DZhQZ0UU5nuHXjYc8FW 8xiFl5xezS2tUWL+WrHRsbwoUTQHkfMS2pwP1m89AggFHJcxaAByPusb8QSpoJU2KLje 0UPw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0qh7EEkcKEKHc8K0phnGq38twra0HpfQAVqWkveJXAI=; b=0QKlSnKDly95evO/phbqAcrGzcbDpp1I6G+VKrQvbhbqhOD5ccWmU8oxg2tKdtFn3R zL5WBkfmWocGtdxgmtcWdd4UA8K4cGSkDbM09K0tEC3fqSnnTFt1alAZYXk/2HvreNH1 K6n0Owb5u1/rrzLfhx3AsMQgQx8oJgDeGiupqQNA1A1V/kviM7hk0VuXmc/CStLCH/Tn 1yzzPncq3QIRnyW7ryuUG3z3US7f76MMAI5Qx7xM7Z1xVAXBybIZEjFpGg8ia3tm2yGe BFSr+nFsftw7nQ1bzm4PrKoQBtzxhV74rNohr3wQVB2hHhlIgjxKx2tDHnMW5jaWeDNN rpyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ILgmivu4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nm1si61851ejb.451.2020.04.30.09.22.05; Thu, 30 Apr 2020 09:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ILgmivu4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728413AbgD3QTq (ORCPT + 99 others); Thu, 30 Apr 2020 12:19:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728118AbgD3QSj (ORCPT ); Thu, 30 Apr 2020 12:18:39 -0400 Received: from mail.kernel.org (ip5f5ad5c5.dynamic.kabel-deutschland.de [95.90.213.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E525424958; Thu, 30 Apr 2020 16:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588263518; bh=vUQJK6iUb1DSHmuLcT8V2zKM9fkwWsWsXbhGEZFJdNU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ILgmivu4xQs3dGo9SH0b0gTkpmemnKFtds1UebIAhkIkQExXQydry1RXgDZzZt1ns nx8iZSA62AXTHe3HyvjKu1O9bB1pE2s7udYhBegRUMtU/efFtvJvvK9DrpReKOg4uM o7cIfqDvgZDtfvtxYkZcQdhGwiGSDFP3XnyznTgE= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jUBtU-00AxhS-5I; Thu, 30 Apr 2020 18:18:36 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH v4 11/19] docs: misc-devices/apds990x.txt: convert to ReST format Date: Thu, 30 Apr 2020 18:18:25 +0200 Message-Id: <9b02b1e2b42e9f6b4e911802ada9b63722090398.1588263270.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org - Adjust title markup; - Adjust identation. Signed-off-by: Mauro Carvalho Chehab --- .../{apds990x.txt => apds990x.rst} | 31 ++++++++++++++----- Documentation/misc-devices/index.rst | 1 + 2 files changed, 25 insertions(+), 7 deletions(-) rename Documentation/misc-devices/{apds990x.txt => apds990x.rst} (86%) diff --git a/Documentation/misc-devices/apds990x.txt b/Documentation/misc-devices/apds990x.rst similarity index 86% rename from Documentation/misc-devices/apds990x.txt rename to Documentation/misc-devices/apds990x.rst index 454d95d623b3..e2f75577f731 100644 --- a/Documentation/misc-devices/apds990x.txt +++ b/Documentation/misc-devices/apds990x.rst @@ -1,3 +1,6 @@ +.. SPDX-License-Identifier: GPL-2.0 + +====================== Kernel driver apds990x ====================== @@ -50,14 +53,18 @@ chip_id power_state RW - enable / disable chip. Uses counting logic + 1 enables the chip 0 disables the chip lux0_input RO - measured lux value + sysfs_notify called when threshold interrupt occurs lux0_sensor_range - RO - lux0_input max value. Actually never reaches since sensor tends + RO - lux0_input max value. + + Actually never reaches since sensor tends to saturate much before that. Real max value varies depending on the light spectrum etc. @@ -68,7 +75,9 @@ lux0_rate_avail RO - supported measurement rates lux0_calibscale - RW - calibration value. Set to neutral value by default. + RW - calibration value. + + Set to neutral value by default. Output results are multiplied with calibscale / calibscale_default value. @@ -76,16 +85,21 @@ lux0_calibscale_default RO - neutral calibration value lux0_thresh_above_value - RW - HI level threshold value. All results above the value + RW - HI level threshold value. + + All results above the value trigs an interrupt. 65535 (i.e. sensor_range) disables the above interrupt. lux0_thresh_below_value - RW - LO level threshold value. All results below the value + RW - LO level threshold value. + + All results below the value trigs an interrupt. 0 disables the below interrupt. prox0_raw RO - measured proximity value + sysfs_notify called when threshold interrupt occurs prox0_sensor_range @@ -93,11 +107,14 @@ prox0_sensor_range prox0_raw_en RW - enable / disable proximity - uses counting logic - 1 enables the proximity - 0 disables the proximity + + - 1 enables the proximity + - 0 disables the proximity prox0_reporting_mode - RW - trigger / periodic. In "trigger" mode the driver tells two possible + RW - trigger / periodic. + + In "trigger" mode the driver tells two possible values: 0 or prox0_sensor_range value. 0 means no proximity, 1023 means proximity. This causes minimal number of interrupts. In "periodic" mode the driver reports all values above diff --git a/Documentation/misc-devices/index.rst b/Documentation/misc-devices/index.rst index d28e755a1595..a31c2ab8151f 100644 --- a/Documentation/misc-devices/index.rst +++ b/Documentation/misc-devices/index.rst @@ -15,6 +15,7 @@ fit into other categories. :maxdepth: 2 ad525x_dpot + apds990x bh1770glc eeprom c2port -- 2.25.4