From patchwork Sun Apr 22 22:04:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Veenstra X-Patchwork-Id: 10355845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 82A3D6019D for ; Sun, 22 Apr 2018 22:04:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D3CF2893F for ; Sun, 22 Apr 2018 22:04:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61F5028964; Sun, 22 Apr 2018 22:04:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4AA32893F for ; Sun, 22 Apr 2018 22:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753625AbeDVWEQ (ORCPT ); Sun, 22 Apr 2018 18:04:16 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41704 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753529AbeDVWEP (ORCPT ); Sun, 22 Apr 2018 18:04:15 -0400 Received: by mail-wr0-f196.google.com with SMTP id g21-v6so8581475wrb.8; Sun, 22 Apr 2018 15:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BrPSei/txzS/lSunxktFlqOScM4fpasAzdbyHdesmjA=; b=dYY5G8Bg4KEjh0G75aFArE5olAPM/TBtedd/haEckfseFXS9LAmGhUsYQfwSw3D8YI tovnVAKYcxXEECSNUry+bfvBtyNkuvBDrx36D5eVRdLLZMtR3iBqKAETXzB/Lq1g3npy vDbJbzVyc8ZjxuxbJy9fjhX8/NMwf3jbqMeJNFBUTiURqqobkLRw0wutH+FwVwMXVlPs kcqCvCMZsXuLeGBrY19zXZFG/CcHTomJRRpcwQPlvbrYvl3S9malXjuUJL9GgrfNOwGX QpJMc2yotfD815uTKZ9xuRyOwrIYAfQziBne+GVfHTye7YZjenocFQwR0FL4tGN2NQ/E F7Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BrPSei/txzS/lSunxktFlqOScM4fpasAzdbyHdesmjA=; b=ajICBxCI9L6QVpOnmM1RX+AFc8D38NGZh2dH7XtvOA0TOO6KkQCHkgKkydRAgDp7U+ 4ZqadANN8nlNzDcclPXldS7tCJmbj2eksYi/7c3kLBL6eboXY04rk+r7xE6h0yTqvM4p +G58XNgHD6KqS+xcKqcjh44VckmzldacNYrkGsx2lvg5V6YtUv+0woVtYFfOXrgbYkwi AozCLtyce7JqtkZD+mqJdUv/vyT2V4XXKvgoXjpM1C/ZeQpWy49b73Y6aKMiJdR7m8uV 207xB0JIeVx5GW63qo3gV+7/4/YsCzRPtKZwkPXenR601Vsx48OJKQh0OfjRZtpY7kCJ LhJA== X-Gm-Message-State: ALQs6tCiT5u2kS/ByT4iPLt6Sp2ChFD+9Klp8cLsD0xnVeqlD0HONuRL 3GEugRrGxYb32ncBNII8XGU= X-Google-Smtp-Source: AIpwx495wdHQLstGsvIiW9+pDqmR40MMBkCEP4nXORbwK/RkeNSVqttD3s6Pq0WZI3D8wuFIuors/g== X-Received: by 10.80.148.75 with SMTP id q11mr25601115eda.70.1524434654143; Sun, 22 Apr 2018 15:04:14 -0700 (PDT) Received: from zenbook-arch (s559434a1.adsl.online.nl. [85.148.52.161]) by smtp.gmail.com with ESMTPSA id v17sm5983292edl.47.2018.04.22.15.04.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Apr 2018 15:04:13 -0700 (PDT) Date: Mon, 23 Apr 2018 00:04:10 +0200 From: David Veenstra To: jic23@kernel.org, lars@metafoo.de, pmeerw@pmeerw.net Cc: robh+dt@kernel.org, Michael.Hennerich@analog.com, knaack.h@gmx.de, linux-iio@vger.kernel.org, daniel.baluta@nxp.com, devel@driverdev.osuosl.org, devicetree@vger.kernel.org Subject: [PATCH v3 7/9] staging: iio: Documentation: Add missing sysfs docs for angle channel Message-ID: <7c715bd223b129faa9e5e484a3e4b8e6eba0abeb.1524432236.git.davidjulianveenstra@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The iio resolver drivers in staging use angle channels. This patch add missing documentation for this type of channel. As was discussed in [1], radians is chosen as the unit, to match the unit of angular velocity. [1] https://marc.info/?l=linux-driver-devel&m=152190078308330&w=2 Signed-off-by: David Veenstra --- Changes in v3: - Remove axis modifier on in_angle. Documentation/ABI/testing/sysfs-bus-iio | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 6a5f34b4d5b9..240287e2343a 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -190,6 +190,13 @@ Description: but should match other such assignments on device). Units after application of scale and offset are m/s^2. +What: /sys/bus/iio/devices/iio:deviceX/in_angl_raw +KernelVersion: 4.17 +Contact: linux-iio@vger.kernel.org +Description: + Angle of rotation. Units after application of scale and offset + are radians. + What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_raw What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_raw What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_raw @@ -297,6 +304,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_pressure_offset What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset What: /sys/bus/iio/devices/iio:deviceX/in_magn_offset What: /sys/bus/iio/devices/iio:deviceX/in_rot_offset +What: /sys/bus/iio/devices/iio:deviceX/in_angl_offset KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: @@ -350,6 +358,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale 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 KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: