Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3876188pxf; Tue, 6 Apr 2021 02:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT95yNmPP7lDfgTWdlOcS9rSU+Qzaat7jrBqVn0nYAferIGQTLdhtUOOb57wJJqOSMgwjx X-Received: by 2002:a92:6e0e:: with SMTP id j14mr22633477ilc.90.1617701212161; Tue, 06 Apr 2021 02:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617701212; cv=none; d=google.com; s=arc-20160816; b=EWyES3lr4e9wK0ITKU7kILQ5+PKzZHcgpLIyd0GRSa1bMlwgIFhLzEG1vGIKqiJq1B G2yXwJwrfqJ6jWO/wi6qlPmYUO6suX+mfMRvZMQbLevJdWlxoQFoGYsVLBkgOJJqC4Om l+WbsZJD5N9/FW2yUaLd9Uzn1biUUggQ2+Q35fslzXn05RBXLsypZoeo+N2AwhfAD84J ZK9tcL8R5eFdpqhJzBNDXaKG39Ij6N1wa89Nemj+r9CZuMf0THbQrs5/VABRMxJPaGxF aD7Zt92RDRsoY43eFlKQK8IY+jnjD4fVtkC6Bhf5xsviDmMd3f/NV4+vHgk6d2fOUYMV Vh5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T9pT04HFS6m2DAVcuINr+EcsKi1hIY98jB9f+EJVDaQ=; b=hgHM1ECMiYHLI2snpLEf69h1QbVJygJAK7n6/hRFWwFXRSnpG/Nwk9fJquUqJDtbwG qxwYRIIS14GjZcye4Ti2NNSenVFvsOVHJNuWmaTH+cr6d8lX/jEG+NUwMXnTKz33sufn ZH8CQO+RX7koyOQNt9DkFsPaE7UCR3pAnJleKeFOPf7CL8QwRjEz0jvj0pwGkJaZqFnV gEe/ZPXdkkfsIFgh6SHNYbyrF45W4IylLCK9PMOi0kk811QRQT1yn9ABgMGSUX9tA2nP tn5q4d9CkcnYVfli2lur2D9ChGXWiX1J0ZR2WtTxwyX/fDFJ6+zxVi6XgR66NKi467Su mbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gB9n+d4J; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si4978227ilu.71.2021.04.06.02.26.37; Tue, 06 Apr 2021 02:26:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@redhat.com header.s=mimecast20190719 header.b=gB9n+d4J; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236627AbhDEUju (ORCPT + 99 others); Mon, 5 Apr 2021 16:39:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32983 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236543AbhDEUjt (ORCPT ); Mon, 5 Apr 2021 16:39:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617655183; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T9pT04HFS6m2DAVcuINr+EcsKi1hIY98jB9f+EJVDaQ=; b=gB9n+d4JIlrxDocBFrQvoK5sSNGvwQu9c3U3G4ZZzSKI5SWRQ7G8Ml9CcAMp96WCn2XY72 M8HBnCeHBIY+XUVWMlsGtFlsYJDQsWMaRwhx+tV8WeUJwgK2mPMltUWodiEdKPByF47106 Od2/gxrllQCkxBry5bLTys+z3JkQGFs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-533-hKNKnrT3Nd2mWRrtJM56VA-1; Mon, 05 Apr 2021 16:39:41 -0400 X-MC-Unique: hKNKnrT3Nd2mWRrtJM56VA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 173CA1853025; Mon, 5 Apr 2021 20:39:40 +0000 (UTC) Received: from x1.localdomain (ovpn-112-31.ams2.redhat.com [10.36.112.31]) by smtp.corp.redhat.com (Postfix) with ESMTP id 44B6860861; Mon, 5 Apr 2021 20:39:38 +0000 (UTC) From: Hans de Goede To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Hans de Goede , linux-bluetooth@vger.kernel.org, Dmitry Torokhov , Mark Pearson , Bastien Nocera Subject: [PATCH v2 resend 2/2] iio: documentation: Document accelerometer label use Date: Mon, 5 Apr 2021 22:39:33 +0200 Message-Id: <20210405203933.17282-3-hdegoede@redhat.com> In-Reply-To: <20210405203933.17282-1-hdegoede@redhat.com> References: <20210405203933.17282-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Some 2-in-1 laptops / convertibles with 360° (yoga-style) hinges, have 2 accelerometers, 1 in their base and 1 in their display. In many cases the kernel can detect the location of each accelerometer based on e.g. information from the ACPI tables. It is important for userspace to know the location of the 2 accelerometers. Rather then adding a new sysfs-attribute for this we can relay this information to userspace by using standardized label strings for this. This mirrors how this is done for proximity sensors. This commit documents 2 new standardized label strings for this purpose: "accel-base" "accel-display" Note the "base" and "display" suffixes were chosen to match the values used for the systemd/udev hwdb.d/60-sensor.hwdb file's ACCEL_LOCATION property. Cc: Dmitry Torokhov Cc: Mark Pearson Cc: Bastien Nocera Signed-off-by: Hans de Goede --- Documentation/ABI/testing/sysfs-bus-iio | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 7379e40d862d..b7529bca83f5 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -72,6 +72,13 @@ Description: calculated by firmware from other sensor readings, rather then being a raw sensor reading. + For accelerometers used in 2-in-1s with 360° (yoga-style) hinges, + which have an accelerometer in both their base and their display, + the following standardized labels are used: + + * "accel-base" + * "accel-display" + What: /sys/bus/iio/devices/iio:deviceX/current_timestamp_clock KernelVersion: 4.5 Contact: linux-iio@vger.kernel.org -- 2.30.2