Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3566109pxa; Sun, 9 Aug 2020 04:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK0yTsJB2nqTvUZJ20NVq2hDFPW4/XJbwMi2AgiCwC8ZQrUsrcz2PVk5ovwfg9+SUz+ZKr X-Received: by 2002:a17:906:b082:: with SMTP id x2mr18034720ejy.349.1596972661113; Sun, 09 Aug 2020 04:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596972661; cv=none; d=google.com; s=arc-20160816; b=0Q6BIJ0CFlXEXi3H+HkCn7mWsEhlKJxO67pyYS1IVw6EYfOqz0ZstSBC9wfzsp1MnA zUQbqqQMoud1WcahrtmYDoKLP+1I4J5N8ofRkREBLYViVzCVxpjd5O0OwhPNKr8+50HK +/XfS3wlzR/KqvqlIXCEhBYZaS/QDVuEm8ZyBWm7BuLXUhwcKQSf5lWIjjkUPFwymBgN tDTdvG34LzG4vy5a37v4V5lM8Ml2by+/t36NnFhOMdb6/QkkDRzl78k+rk0Bo/5XfFfR 1cguMxL82hlmEhlHhVVvGVZgMfWy84IlpS4QxeTIunPLyOmQt/0xkHqYV9SNQaYeTjYK lY7Q== 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:subject:cc:to:from:date :dkim-signature; bh=S2mAibEVtPe0vWakjkquxTan7klSkGvXs9qAdbq6Kao=; b=G2gVOIW4AwD1KBz1Cmw3ALT9Me7wqS+Iqnqi6qEr5nFCkg3IEwdJ7JdIhcilFLO8FY OYhZnpqomp/5DLGRt4+bA2D9/DciusC4fVRwbWexlB3uLR+WvscxS+UMBLj6egDhGw4+ YQUsJBO6TCjCR7pyBCu/qOFipydK1XaPZzORwjIsH4MaxB3KgtRD58F1pceGotsrQimD Kkm9OP03wruAy+WpzuM7f1+76fpH3dZm5gtoHf5mNa8FfKy4aGgrIsk5b7Tq8KQHBcdv AcTw2QQRdIs6KNKULokpYG6Y/d/8h9OmMgHTXb07eXFWnL80yRezs3szf8TxGsXD8pBP U+EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="r/rxohGW"; 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 rl11si7043820ejb.519.2020.08.09.04.30.37; Sun, 09 Aug 2020 04:31:01 -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="r/rxohGW"; 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 S1726241AbgHILaF (ORCPT + 99 others); Sun, 9 Aug 2020 07:30:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:59072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgHILaE (ORCPT ); Sun, 9 Aug 2020 07:30:04 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 C656D206A2; Sun, 9 Aug 2020 11:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596972604; bh=7e4f0W4oFj1DBPwymZRR/gtgtpqgDLz86RKvQQRxWog=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=r/rxohGWC3IZNz7ov29belqI+WGqThK4S4H8dLSHLssSoEjlAX6U24KHvy2pdOyKn UWdb6HfcwGpDvX9uUT1vDA4dQG0tbVQPkoovxu0BJoiIrz4M29o/krpE9OWx451zzB Rm2tbsZUBk9RwXaoAGAWly8DaXfos+NXrC3R8FYo= Date: Sun, 9 Aug 2020 12:30:00 +0100 From: Jonathan Cameron To: Christian Eggers Cc: Jonathan Cameron , Andy Shevchenko , Hartmut Knaack , Lars-Peter Clausen , "Peter Meerwald-Stadler" , , Subject: Re: [PATCH] iio: documentation: light: Add as73211 sysfs documentation Message-ID: <20200809123000.5131effd@archlinux> In-Reply-To: <20200809074335.23734-1-ceggers@arri.de> References: <20200808171443.114c8e05@archlinux> <20200809074335.23734-1-ceggers@arri.de> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 9 Aug 2020 09:43:35 +0200 Christian Eggers wrote: > The driver for the as73211 light sensor provides the following not yet > documented sysfs entries: > - in_intensity_(x|y|z)_raw > - in_intensity_(x|y|z)_scale > - in_intensity_sampling_frequency(_available) > - in_intensity_hardwaregain(_available) > - in_intensity_integration_time > > Signed-off-by: Christian Eggers Hi Christian, Just one tiny nitpick. Otherwise looks good to me! Thanks for doing this, Jonathan > --- > > On Thursday, 6 August 2020, 19:44:51 CEST, Jonathan Cameron wrote: > Hi Jonathan, > > > Hi Christian, > > > > I'll take this, but please send a follow up patch to add documentation > > for in_intensity_x_raw and all the other new ABI this adds in > > Documentation/ABI/testing/sysfs-bus-iio > > I should have mentioned that earlier, but kind of assumed we already > > had these documented for some reason! > > [...] > > Insert them into the relevant groups that already exist. In some cases > > it will just be adding an entry with no specific explanation. > > For the _raw attribute add a bit more info about what x, y and z are > > (basically just say they are from cie1931 (I think?) > > I added all sysfs entries which were not present in 5.8-rc6. > > Best regards > Christian > > Documentation/ABI/testing/sysfs-bus-iio | 26 ++++++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio > index d3e53a6d8331..14ae4bf053c5 100644 > --- a/Documentation/ABI/testing/sysfs-bus-iio > +++ b/Documentation/ABI/testing/sysfs-bus-iio > @@ -40,6 +40,7 @@ Description: > buffered samples and events for device X. > > What: /sys/bus/iio/devices/iio:deviceX/sampling_frequency > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_sampling_frequency > What: /sys/bus/iio/devices/iio:deviceX/buffer/sampling_frequency > What: /sys/bus/iio/devices/triggerX/sampling_frequency > KernelVersion: 2.6.35 > @@ -55,6 +56,7 @@ Description: > then it is to be found in the base device directory. > > What: /sys/bus/iio/devices/iio:deviceX/sampling_frequency_available > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_sampling_frequency_available > What: /sys/bus/iio/devices/iio:deviceX/in_proximity_sampling_frequency_available > What: /sys/.../iio:deviceX/buffer/sampling_frequency_available > What: /sys/bus/iio/devices/triggerX/sampling_frequency_available > @@ -374,6 +376,9 @@ What: /sys/bus/iio/devices/iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_scale > What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_scale > What: /sys/bus/iio/devices/iio:deviceX/in_countY_scale > What: /sys/bus/iio/devices/iio:deviceX/in_angl_scale > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_x_scale > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_y_scale > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_z_scale > KernelVersion: 2.6.35 > Contact: linux-iio@vger.kernel.org > Description: > @@ -484,6 +489,7 @@ Description: > are listed in this attribute. > > What /sys/bus/iio/devices/iio:deviceX/out_voltageY_hardwaregain > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_hardwaregain > What: /sys/bus/iio/devices/iio:deviceX/in_intensity_red_hardwaregain > What: /sys/bus/iio/devices/iio:deviceX/in_intensity_green_hardwaregain > What: /sys/bus/iio/devices/iio:deviceX/in_intensity_blue_hardwaregain > @@ -494,6 +500,13 @@ Description: > Hardware applied gain factor. If shared across all channels, > _hardwaregain is used. > > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_hardwaregain_available > +KernelVersion: 5.10 > +Contact: linux-iio@vger.kernel.org > +Description: > + Lists all available hardware applied gain factors. Shared across all > + channels. > + > What: /sys/.../in_accel_filter_low_pass_3db_frequency > What: /sys/.../in_magn_filter_low_pass_3db_frequency > What: /sys/.../in_anglvel_filter_low_pass_3db_frequency > @@ -1333,6 +1346,7 @@ Description: > standardised CIE Erythemal Action Spectrum. UV index values range > from 0 (low) to >=11 (extreme). > > +What: /sys/.../iio:deviceX/in_intensity_integration_time > What: /sys/.../iio:deviceX/in_intensity_red_integration_time > What: /sys/.../iio:deviceX/in_intensity_green_integration_time > What: /sys/.../iio:deviceX/in_intensity_blue_integration_time > @@ -1342,7 +1356,8 @@ KernelVersion: 3.12 > Contact: linux-iio@vger.kernel.org > Description: > This attribute is used to get/set the integration time in > - seconds. > + seconds. If shared across all channels, _integration_time > + is used. If it is shared across 'ALL' channels then it will be just integration_time If it is shared across all channels of a given type, it will be _integration_time. > > What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time > KernelVersion: 4.0 > @@ -1739,3 +1754,12 @@ KernelVersion: 5.5 > Contact: linux-iio@vger.kernel.org > Description: > One of the following thermocouple types: B, E, J, K, N, R, S, T. > + > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_x_raw > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_y_raw > +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_z_raw > +KernelVersion: 5.10 > +Contact: linux-iio@vger.kernel.org > +Description: > + Unscaled light intensity according to CIE 1931/DIN 5033 color space. > + Units after application of scale are nano nanowatts per square meter.