From patchwork Tue Sep 1 03:00:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 11747281 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0740F13B6 for ; Tue, 1 Sep 2020 03:00:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E42D82098B for ; Tue, 1 Sep 2020 03:00:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ioyOcDbc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgIADAd (ORCPT ); Mon, 31 Aug 2020 23:00:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727969AbgIADA1 (ORCPT ); Mon, 31 Aug 2020 23:00:27 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 832A4C061366 for ; Mon, 31 Aug 2020 20:00:27 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id s2so954289pjr.4 for ; Mon, 31 Aug 2020 20:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=139M2MKwaZAFODTk1bpLDAYfiuB+nhOuPU+D7YUXrms=; b=ioyOcDbcijUw0uR0N/78zCmMqhJHFHRttFf91uFTXJOuVur8u6YPq3hS13sro7q2k3 kmNWe5kbawXWqwNMFyZ1f2fnpdDa/nitYOxaGJARfGq5XsUEeaQBjn5tIEQWwCY1SkrL X2kc/ATbZRE2IompbAJ0fdLuY765rW1rdFNk4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=139M2MKwaZAFODTk1bpLDAYfiuB+nhOuPU+D7YUXrms=; b=m/eG5MFQHj8fGKlirjqk4YanaP/ZBggwb6wJbvh8g929tl9IJzjrhzycVxaJ5231iL x2tce69nqZaEtnAo8l7ThGhDBDNvYAjElpkRIB1fakeVIFQN5xt9BHSQFK8MpFGVUnYb fvbcZcxrcJ0yw6pKBqmxMT4bzWTRyo9a9JqS6/iSFpX6WSPsce3KcqPMVXLeNgBf90LR AXQeoDzRPcxmJcqxkkaExtlXYJIkqwBRSs6zUPWsyDHjPhEt1FEf6rbFP5LJMD1c/KoO D4M049ytW7ZermuD+jlx30bBkSpOpGeI9K29Nkh5VL0s1tmSH/E5/HQou02pZ138HsDj 1dGA== X-Gm-Message-State: AOAM530dmYaEgIcjZm4hdv5iCdSybMpbpOz6wd2l+JHiS0+cJDaWa8NK iDne1rV++VNIKiQ33npKd7Mr+A== X-Google-Smtp-Source: ABdhPJwm5hOJXt5JYnj/hCo8XjCqwwxlnqrTOZWrnWoU7l5SmiWiJnbI5DjMd/4Y2X4HwRTvUMRypw== X-Received: by 2002:a17:902:720a:: with SMTP id ba10mr3500038plb.41.1598929226564; Mon, 31 Aug 2020 20:00:26 -0700 (PDT) Received: from localhost ([2620:15c:202:1:7220:84ff:fe09:94fe]) by smtp.gmail.com with ESMTPSA id g9sm5305521pfo.144.2020.08.31.20.00.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 20:00:26 -0700 (PDT) From: Gwendal Grignou To: jic23@kernel.org, lars@metafoo.de, peress@chromium.org, enric.balletbo@collabora.com Cc: linux-iio@vger.kernel.org, Gwendal Grignou Subject: [PATCH v2 1/3] Documentation: ABI: iio: Use What: consistently Date: Mon, 31 Aug 2020 20:00:15 -0700 Message-Id: <20200901030017.3221295-2-gwendal@chromium.org> X-Mailer: git-send-email 2.28.0.402.g5ffc5be6b7-goog In-Reply-To: <20200901030017.3221295-1-gwendal@chromium.org> References: <20200901030017.3221295-1-gwendal@chromium.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Change "[w|W]hat[:| ]" to What: for consistency. Signed-off-by: Gwendal Grignou --- No changes since v1 Documentation/ABI/testing/sysfs-bus-iio | 48 ++++++++++++------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index c3767d4d01a6f..47df16c87862d 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -401,21 +401,21 @@ Description: Hardware applied calibration offset (assumed to fix production inaccuracies). -What /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale -What /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale -what /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale -what /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_i_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_q_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_i_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_q_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale @@ -483,7 +483,7 @@ Description: If a discrete set of scale values is available, they are listed in this attribute. -What /sys/bus/iio/devices/iio:deviceX/out_voltageY_hardwaregain +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_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 @@ -750,9 +750,9 @@ What: /sys/.../events/in_voltageY_raw_thresh_falling_value What: /sys/.../events/in_tempY_raw_thresh_rising_value What: /sys/.../events/in_tempY_raw_thresh_falling_value What: /sys/.../events/in_illuminance0_thresh_falling_value -what: /sys/.../events/in_illuminance0_thresh_rising_value -what: /sys/.../events/in_proximity0_thresh_falling_value -what: /sys/.../events/in_proximity0_thresh_rising_value +What: /sys/.../events/in_illuminance0_thresh_rising_value +What: /sys/.../events/in_proximity0_thresh_falling_value +What: /sys/.../events/in_proximity0_thresh_rising_value KernelVersion: 2.6.37 Contact: linux-iio@vger.kernel.org Description: @@ -830,11 +830,11 @@ What: /sys/.../events/in_tempY_thresh_rising_hysteresis What: /sys/.../events/in_tempY_thresh_falling_hysteresis What: /sys/.../events/in_tempY_thresh_either_hysteresis What: /sys/.../events/in_illuminance0_thresh_falling_hysteresis -what: /sys/.../events/in_illuminance0_thresh_rising_hysteresis -what: /sys/.../events/in_illuminance0_thresh_either_hysteresis -what: /sys/.../events/in_proximity0_thresh_falling_hysteresis -what: /sys/.../events/in_proximity0_thresh_rising_hysteresis -what: /sys/.../events/in_proximity0_thresh_either_hysteresis +What: /sys/.../events/in_illuminance0_thresh_rising_hysteresis +What: /sys/.../events/in_illuminance0_thresh_either_hysteresis +What: /sys/.../events/in_proximity0_thresh_falling_hysteresis +What: /sys/.../events/in_proximity0_thresh_rising_hysteresis +What: /sys/.../events/in_proximity0_thresh_either_hysteresis KernelVersion: 3.13 Contact: linux-iio@vger.kernel.org Description: From patchwork Tue Sep 1 03:00:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 11747279 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D0CBF13B6 for ; Tue, 1 Sep 2020 03:00:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B8E032098B for ; Tue, 1 Sep 2020 03:00:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NJz55JOG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727058AbgIADAa (ORCPT ); Mon, 31 Aug 2020 23:00:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727981AbgIADA2 (ORCPT ); Mon, 31 Aug 2020 23:00:28 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28CD2C06136D for ; Mon, 31 Aug 2020 20:00:28 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id y6so4238935plt.3 for ; Mon, 31 Aug 2020 20:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xA7zMgvbSPSI1M8jGUrZE1dR1JTsw20qn5fUvvb1NXA=; b=NJz55JOGstyiWrMUMrrQfF/fjZWC5FWn9g7auoKAiYH6BBpytDkT7piiVSmM4h1jMW XDRbZrKgM0dAhZq9hoqYr9g4JtEP/zCPd+Xyh8tmIMVrqMhFl+SnHhfvGujWw6TWuaRu SErIPHQBZxmtX9Gd6NdKm3boBvz1lxSy3c6YE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xA7zMgvbSPSI1M8jGUrZE1dR1JTsw20qn5fUvvb1NXA=; b=gDAr0Y9fXH/BN3rRfBei2n/RI6NA+B1sfZjEwY8XSEzubMtA1ZEohD88npWBXVxSWp HvLBY9Rs3ZuThV+v8TbQgQsV6fb6QOZ41FwbU14j3M9z9ROA6MirvTF5a6bMleOAe1iA AutY+lg0nEU0TEAR+6zhkM2r9fFHvGgpFfYRAClBwPJ1J76kMg7BD2yhj9VRQJkC6rjr pw3S2JfvRa3E/XeQqW50XQ19fpifJGV5R+alAfp2jyLeigQpHPgjkWszS44fnbCsiUkD onNJ/1Woxac9u3nrUWvRCMDutvVfEGV1l0fVJCB4365GA31CcMqK42uBsd3uSP+ctQOG ozSg== X-Gm-Message-State: AOAM530D5y7yafuupJaXOai18pb8aaJZhxUUmQ63Nx4nwrgAc2uFHth7 KSQH9rk4LyYFuFg5cBoCH9TT4g== X-Google-Smtp-Source: ABdhPJz4np7lcYjsVCX1jrsUIAkBQ+GzcvITuaQeulCHnblqnLyjRPIv+WtKyPVjIkxVFszgP/oqNg== X-Received: by 2002:a17:902:b18e:: with SMTP id s14mr3467925plr.160.1598929227712; Mon, 31 Aug 2020 20:00:27 -0700 (PDT) Received: from localhost ([2620:15c:202:1:7220:84ff:fe09:94fe]) by smtp.gmail.com with ESMTPSA id v18sm9248235pfu.15.2020.08.31.20.00.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 20:00:27 -0700 (PDT) From: Gwendal Grignou To: jic23@kernel.org, lars@metafoo.de, peress@chromium.org, enric.balletbo@collabora.com Cc: linux-iio@vger.kernel.org, Gwendal Grignou Subject: [PATCH v2 2/3] Documentation: ABI: iio: Add offsets for some sensors Date: Mon, 31 Aug 2020 20:00:16 -0700 Message-Id: <20200901030017.3221295-3-gwendal@chromium.org> X-Mailer: git-send-email 2.28.0.402.g5ffc5be6b7-goog In-Reply-To: <20200901030017.3221295-1-gwendal@chromium.org> References: <20200901030017.3221295-1-gwendal@chromium.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add offsets for magnetometer and gyroscope. They can be use to represent online calibration to offset hard iron or drift. Signed-off-by: Gwendal Grignou --- Changes since v1: - New, split from 3/3 patch. Documentation/ABI/testing/sysfs-bus-iio | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 47df16c87862d..f77aee8886c66 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1716,3 +1716,22 @@ Description: Mass concentration reading of particulate matter in ug / m3. pmX consists of particles with aerodynamic diameter less or equal to X micrometers. + +What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_offset +What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_offset +What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_offset +KernelVersion: x.y +Contact: linux-iio@vger.kernel.org +Description: + Gyroscope drift calculated by the sensor. In addition to factory + calibration, sensor or sensorhub can + detect gyroscope drift and report it to userspace. + +What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_offset +What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_offset +What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_offset +KernelVersion: x.y +Contact: linux-iio@vger.kernel.org +Description: + Hard Iron bias calculated by the sensor or sensorhub. To be applied by + user space application to the raw data to obtain the geomagnetic field. From patchwork Tue Sep 1 03:00:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 11747283 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1680E13B6 for ; Tue, 1 Sep 2020 03:00:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F360E2083E for ; Tue, 1 Sep 2020 03:00:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="iD9simpU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbgIADAc (ORCPT ); Mon, 31 Aug 2020 23:00:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgIADA3 (ORCPT ); Mon, 31 Aug 2020 23:00:29 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4574FC061379 for ; Mon, 31 Aug 2020 20:00:29 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id q1so961471pjd.1 for ; Mon, 31 Aug 2020 20:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k/zE6qh9ak4MHpyIajYfiuqVPANSyom2jAVJbqWmifc=; b=iD9simpUIyBXM8wi3JpTa7LDb2XdViklaq4BNCqnrKSepBWpOzBpJ9DOaJFfwBfiGg WePhgNXjDW8G0AioV008RaMHP6pVWGf16eUb95ktUtUOyyy4EowIV48iHS0cn8bCE0Wy 0EB0G2qlGPv1DE+EEPPyJHN+Cr1C3ox0tuqoQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=k/zE6qh9ak4MHpyIajYfiuqVPANSyom2jAVJbqWmifc=; b=Wal9D+ZEeEAhIBbh3B5OvbAw9pD1cfmZYI7exjWpy/psN3pe5qB26dnHEwEWPI+MM7 hzxqQBYx/2y7mcZIj7fOv/XyGUGnLEgszwjJkiR2SoHYFc1Q5qGAJia+JTnfoYRtVt1X Z8DgNdrOKfUKQq81Abd8Rxte+Lz2PtajsnA13WGgf2UceZnTeub0LTTfvWTUzC6Et1p6 LxwDmbZ1d8cLFg2x6gnuuw5NfeXRTGlWlI8ss45x3WTZkbVcDJafU7Zltli1rMEBPBnn PZL2O9P7zw01bTEFlbZnY0XR4s21c3CRPomowM2zIY2Se8eA3NakVIjtaqtWrlLUmqeJ EAqA== X-Gm-Message-State: AOAM531iWbFo2HyeJDVXitFhNNYEvBI23TJhUmcXWF6wso5oKL+hnQ5F ieJEpNdxdjbD6t/Pr/GdwhFlkw== X-Google-Smtp-Source: ABdhPJzpVlGMxI115SoCuztCnSuy97OYHHyZtXbKPC+fksbSEUGekHMZEkN7iqxPEtc86nPEwCNZbg== X-Received: by 2002:a17:90b:4d0f:: with SMTP id mw15mr2204192pjb.174.1598929228834; Mon, 31 Aug 2020 20:00:28 -0700 (PDT) Received: from localhost ([2620:15c:202:1:7220:84ff:fe09:94fe]) by smtp.gmail.com with ESMTPSA id b23sm9376306pfo.12.2020.08.31.20.00.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 20:00:28 -0700 (PDT) From: Gwendal Grignou To: jic23@kernel.org, lars@metafoo.de, peress@chromium.org, enric.balletbo@collabora.com Cc: linux-iio@vger.kernel.org, Gwendal Grignou Subject: [PATCH v2 3/3] Documentation: ABI: iio: Add event when offset/scale changes Date: Mon, 31 Aug 2020 20:00:17 -0700 Message-Id: <20200901030017.3221295-4-gwendal@chromium.org> X-Mailer: git-send-email 2.28.0.402.g5ffc5be6b7-goog In-Reply-To: <20200901030017.3221295-1-gwendal@chromium.org> References: <20200901030017.3221295-1-gwendal@chromium.org> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Some sensors/sensorhubs can calculate drift or hard iron offsets to apply to raw data to get the true measure data. These offsets are applied by the user space application. When these offsets change, events are raised to tell the application to update the cached offset values. Signed-off-by: Gwendal Grignou --- Changes since v1: - Define metadata_en instead of offset/scale_en to limit race conditions. Documentation/ABI/testing/sysfs-bus-iio | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index f77aee8886c66..45f456de1621a 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -1735,3 +1735,16 @@ Contact: linux-iio@vger.kernel.org Description: Hard Iron bias calculated by the sensor or sensorhub. To be applied by user space application to the raw data to obtain the geomagnetic field. + +What: /sys/.../iio:deviceX/events/in_accel_metadata_change_en +What: /sys/.../iio:deviceX/events/in_magn_metadata_change_en +What: /sys/.../iio:deviceX/events/in_anglvel_metadata_change_en +KernelVersion: x.y +Contact: linux-iio@vger.kernel.org +Description: + Some sensors internally calculate offset to apply to remove bias (for + instance, hard/soft-iron bias for magnetometer, online calibration bias for + gyroscope or accelerometer). + When the sensor computes a new set of offset values, it generates an + event for the userspace application to refresh the offsets to apply to raw + data.