From patchwork Thu Aug 15 17:22:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13765000 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8070129A1 for ; Thu, 15 Aug 2024 17:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742541; cv=none; b=Ry77B+e43kjn7ZKs7z4sJVqeqFi0quP7fnT9/fFZ+E1Dy4K8mZAY5j5ne5qmAYwEldXZmsQ/N1H+sVP8JCAXYzDuuy2pcEEFbuYvZ+wwiMP4Yhbvv1sjUw9B8+wpeSuROytQoYaCxPyS5mb9USQUo5856gTfHSwNELjWDBY+hnE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742541; c=relaxed/simple; bh=WmTXvE8G3cxrHN9egH1FEwZfFqBMr42bXrUWyWymz9I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KOpBafxm7nTWzg48n5Mqo0DExHD+w8gWaOamQ2WveoaWSxxde1zgsr8tn7qJI4YbGJCYMc49Vv8PKq03oVWeVhejyQ/Yr1luCak+vSWyuXKwgSm1C1eX7LCUrwlhtkxwTTS4jr8mh992wiqh2osU5IRr/yZ6alIStauaAkJQZiA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=phoJ4P0K; arc=none smtp.client-ip=209.85.160.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="phoJ4P0K" Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-2681941eae0so728367fac.0 for ; Thu, 15 Aug 2024 10:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742538; x=1724347338; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vHRAF7kmvflKalOLusR4Jap2GAzcBGxuZVBcpBXyMtQ=; b=phoJ4P0K8j6n4/N4EzFIsouNk3DVItQOlq8BE/0KzYBYllYpdmJxZArS2dhUELXU/o H+Gra2erSzkxiv0wqLep1dmTjbQxS0UUY7Oe6v87qI72FHGVx6HP1lEuHQl9HaQte425 SXbttOTupTt2YgTFqmaOEWLC6a6uBUQapn9rcG1K/myQEVeYnE1j+lKFgXzxVbkeqmrH qXwOeS32E73gfpdXsd4cBJweG0ZDeuWB0wkNH/Nylp2QWnXiaU0b1R6KIR16M7LMge0M OXJbritqW0V8rqfircrwN3peMMYBYYHthDRW2tvgUP9YDZAIpSz6GslRmm4aEhtQNL/d 9YcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742538; x=1724347338; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vHRAF7kmvflKalOLusR4Jap2GAzcBGxuZVBcpBXyMtQ=; b=Osph0E8VVpy8yZ0Euq0kNrATIT3k/r3nZ87u7DMSEQvJiBJ1xfZLgnwaUych9St0Fj 2P2S+DgYatOIxJtiZM7vmsTU5R9C/0ixVA/EnQ2MACG66Ppu60L9+T3u4u4N4nZL6fY7 hI2eWnZlZLYvuXpLugywWfNLGkqOibRNQX81l3N3vU3j1SDMEYUAokNIkqpbrXx5Kgh+ 9gQTUy3ReFaz9MlV2/FyfOMsiKCMTVXRO8TAioJdGriKfVqRes/zWsRgPK0+hdcClJn9 WeUHtwOs9xE4XSybskvnfYkSCZmFV2hlJZLEnpzVLGCUdE74mYhef4PqwnCJM+PAK4cz 6ULQ== X-Forwarded-Encrypted: i=1; AJvYcCV6tSJrJrvnaTEPzhmAbzHhcFOyvqvBdxF2Dhxd+iP+FKN+xGG4//OZfKmprZf9lzJq2kFxYphJoUfXWMMVzIv6Grkn2Z4PL2xl X-Gm-Message-State: AOJu0YxqxLlMmmLJ6m6PINgfpVSpVGlOsXmDTCT55dSFuoWqKLgjHeOY nVrGYFGec8HHkyGaLOA8m+iwra7G3DDD9rRrI9LQPnq7dvcUtdLsNzMUSFvWd8M= X-Google-Smtp-Source: AGHT+IEh4WplaZ1SJtcdjCsOA0FNThgn+ugIMMYYb8x0r3LFGNuPLS8DWjeiURI22hPEwttiGS0L4w== X-Received: by 2002:a05:6870:6c18:b0:261:39d:afa1 with SMTP id 586e51a60fabf-2701c3db78cmr207494fac.22.1723742538620; Thu, 15 Aug 2024 10:22:18 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:18 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] iio: ABI: document calibscale_available attributes Date: Thu, 15 Aug 2024 12:22:10 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-1-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.14.0 There are a number of light sensor drivers that have various calibscale_available attributes. Up to now, these were missing from the documentation. Kernel version 4.8 is used since the first use appears to be in commit eb869ade30a6 ("iio: Add tcs3472 color light sensor driver"). Signed-off-by: David Lechner --- 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 78eca1698123..67d8d1df23d4 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -575,6 +575,19 @@ Description: production inaccuracies). If shared across all channels, _calibscale is used. +What: /sys/bus/iio/devices/iio:deviceX/in_illuminanceY_calibscale_available +What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_calibscale_available +What: /sys/bus/iio/devices/iio:deviceX/in_proximityY_calibscale_available +KernelVersion: 4.8 +Contact: linux-iio@vger.kernel.org +Description: + Available values of calibscale. Maybe expressed as either of: + + - a small discrete set of values like "1 8 16" + - a range specified as "[min step max]" + + If shared across all channels, _calibscale_available is used. + What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender From patchwork Thu Aug 15 17:22:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13765001 Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47C081B4C48 for ; Thu, 15 Aug 2024 17:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; cv=none; b=mPuq7URzTRx1ld3g9GLPIhqMzTQVZpEykqGxFlxvKtNLU2jXEaf4btTfpUYb83TcvV91BKNwtm39QoIh8YaENlKAE9al2qnVANhg3A99idpHMsHdZ7jwAzkDZfjx713RKabyTZlP7P+HgBQ7VXiWDnF/aACpxD9NAY/F45vu9Xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; c=relaxed/simple; bh=HTE9AF95FYEDE44Je5v0L+ZEBU/Bi9/yQL6SYE3InCU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kYPB4+zALXjuXZ2Jd6ig67q4xCcudZkIzv09vPU3BqxSJf+XMGx/SKra+3q/boIGRnRkhFFI2iilOYdeSuDuyuovO7i7KjGLN7//CPVFWROMp5f0GlNezSGVUNEbuvi1Q7ElnHIM9sLiZNimuuhZtO1U1yxZeXOjaRErlWm5K2A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=NA4KPlho; arc=none smtp.client-ip=209.85.160.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="NA4KPlho" Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-260f4c9dfe2so572193fac.0 for ; Thu, 15 Aug 2024 10:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742539; x=1724347339; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wcesUZ+PyyZLACSq67B+2czdbFpwEBLROdXRTYzWgqs=; b=NA4KPlhoyQ0pL86j0qd0OgmEyLzMsi+VUWbx4uYhM6ba3h80OnPCRUNBemMVsFlZe9 K4BqaMIVdCdL25C2hm+n6EWjj1TjBSnI4cUV6+dVN+VhK9SVHMBDMvlBb1LAUGN+THk1 y4Zsa2hv/8JDszMYweQC0jEonM18oZFmMm+XigcVF6yYb3q9p4HhTVLt5VBqFRgTMY/+ nFWGjgPAhQFfAW4EKry9w6SfWMahtSuzL7VdROJfzSV6rmu2ejbYCpvp8A+Oz4RItVBG 2Os3JtRyi+sgrtu3CVFJegAjD8B0MbLmEzsFGrtyE0gZtiS8aM3oDJOUozQ25vLbQtGE j/cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742539; x=1724347339; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wcesUZ+PyyZLACSq67B+2czdbFpwEBLROdXRTYzWgqs=; b=b8eXr3Kc5xk7SnI0U7EdpeeFqFvZgkNN35MIfCHUn/T96bu1V8vOxCVPlwS68Nd2YQ Ho2WayQWL3tvPooUi7A94l42qq4Fn0uE/VS5j8YjfRFS9VTvClciP4fdNLssTaYIBO4A JxtWt/dB25ai6dT6kH8S0q053FvJy/27KTevTidP7iBaxhIUtvIxf1N4ushuY4hnElAu IuVJIWmjbL+qWRlUynB470bB51uM7oH/1N2xiS+OQWAlZewgLfd4608/KYYtSH5pssq0 xd8HLv6DzKmM6Jba0asJdZBX3X414OxzBV9tueHgGVuawHGETk/HslhjI0bobzdoCvsq vzUA== X-Forwarded-Encrypted: i=1; AJvYcCXBEhM/ckf14RCDizJu1ZEBUicWbBUQMBq5igZflkB343FI8ieV3elUiX1RPDyLIre4BC9krJa35H1hPAxz1S11zCTjdDRrHII+ X-Gm-Message-State: AOJu0Ywemt/ksIZTJCRGV4G2UbcAf88QAwZgAYyV2wtH6SGtNTzR3VZD DWmP9WKNmB0tS9/chH+X2x8O7FnZUQKaWwCueVVHj0xd/E/2GS7/1GYlNIfIrEg= X-Google-Smtp-Source: AGHT+IE0IpVcxKXiE51xHAESEiTWRzrQ5ztPPnJYDYy6IwnEqG/maM6BAofsEHWuPvEpFKCslpu70w== X-Received: by 2002:a05:6870:1b0d:b0:265:b32b:c465 with SMTP id 586e51a60fabf-26fff476ebdmr1895548fac.9.1723742539426; Thu, 15 Aug 2024 10:22:19 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:19 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] iio: ABI: sort calibscale attributes Date: Thu, 15 Aug 2024 12:22:11 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-2-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.14.0 Sort calibscale attributes so that when we add more, they can also be added in alphabetical order. Signed-off-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 67d8d1df23d4..401e0a595aba 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -549,25 +549,25 @@ Description: - a small discrete set of values like "0 2 4 6 8" - a range specified as "[min step max]" -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_altvoltage_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_altvoltage_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_illuminance_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 +What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_voltage_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_voltageY_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_voltageY_supply_calibscale KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: From patchwork Thu Aug 15 17:22:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13765003 Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0719C1B4C4B for ; Thu, 15 Aug 2024 17:22:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; cv=none; b=HbKGjSK7tSMFnihXd6b2MlC750/d95YH0EtitbH+R3WVnA9RSsm+4UE1WX11u82yyRHgW/R9zESzO4Helv2iQS7gv0vwRU3xlE51UxFguaYc9X+RV+cQ0gguV+aIgi2Q1W1h0cntzxzV+LFYa2H6LlKK4+O/R1NQFHf5wv6GjGs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742542; c=relaxed/simple; bh=lQl5PN38ewp8fP1d10oMgjM61q8VF9A8RDMBz1cBMrg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GjX01sjh56kCb5ud2HaT5eNIfWmQ2/cLwBHtCPE4Uu6mzoQJVttv+Fdj+Rs1Mqv2DQPNQPqm8BmPAWSBp3of48AA2USPgx9EQ3tRczUMjSMGiw99KLmPcKjFrAO0pXcGRzlgsLLclCHVu86aI82c+UN7LScwJeNGBvw+51yFF00= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=v1qQUl4Q; arc=none smtp.client-ip=209.85.160.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="v1qQUl4Q" Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-264a12e05b9so778112fac.1 for ; Thu, 15 Aug 2024 10:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742540; x=1724347340; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iRorKE+dqmoV40ZY8LVTmZRhjf2w7HVyyAsDfTVj74s=; b=v1qQUl4Q+4nO7yjyt/2gs4BX6QsGdE3VqxKMQf+G1as6/R0M46STElifYqkrtM2uH6 6cKuoCwWomGTu9HxCcx0QATP9zDfPmGwN+I5DyTkEtNrwo+TwtnTdxhquc2Psky9a4Wr ZJKJJ8WERcCPCzgi2kSMIYWIZB/UIbutNKFwEYYbHF/ANq7Ri2IvfII7sOrHU2dI8/xh 6QflOp+Qd6qpcLKw+zQwRy7ztN3vCWHxHLPOgJ+/p3XhosPda/A2k5JJcjeO8L81TpZS u56rjxQ70ULxSANLgspUhtWp/YnVGtB8D63IhegssZOrg5tpSOq00leeF3s7u4ncsYkA VUjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742540; x=1724347340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iRorKE+dqmoV40ZY8LVTmZRhjf2w7HVyyAsDfTVj74s=; b=h0DobeehdKITfRs4S71ow5pBMeL/JUUZ93ibvCPWTGL31whbZmxxlbnroR0FI7EvL4 08soer1IKdq+/h+FooHohclS/HaQOtfeA3bmfuGWDsfHUMm0d3FL3k5vdouZnrQ1o9XU fgxvPuAk/1JsiYaSrzYODX8XcvU0n96how6BbVqiM0XCXE2ZHo18DifPie1QdP5pITg7 HOxXJRhfUjU3mMhPAIZ9bjoZJGFIClhRK9q7+vNkQ4SUoB8D9lWaiq/Op1wNdps0keas /paiSJ5p86hcmJoVEjgB87kSZ+3XwauM2ZV9GKm+mJv1Zvfomth01J6UZuWk0NquAIfd 85Eg== X-Forwarded-Encrypted: i=1; AJvYcCVWxYvDQvcXVfk0iXYya6w5iN05bGBs9LFNwDUFSIPQBiQdmgKfU8hddSU+l4F6AOAchK9TRHmHXfVWHhQW9CZxG/6RvxsW0aUm X-Gm-Message-State: AOJu0Yx4lr3sc2dbF9wy66IhT7w2yhaP6KUWuf2lKpRAzigkBGZTiMDI jzm/LJQKdMdUSTuc3Y3Ms59WQU1JeDp6muui0EY+BUOW2OwgVTSzQXEmLe9j/+U= X-Google-Smtp-Source: AGHT+IFP978w/cZSnGt6qU9S3P11ASgJOMMtA752yMQZk71k8mAgRCA60iGjdtUWn2ku0TUWqrn6Ag== X-Received: by 2002:a05:6870:31c2:b0:25d:4f3c:c072 with SMTP id 586e51a60fabf-2701c380feemr213947fac.17.1723742540116; Thu, 15 Aug 2024 10:22:20 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:19 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] iio: ABI: add missing calibscale attributes Date: Thu, 15 Aug 2024 12:22:12 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-3-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.14.0 This adds additional calibscale attributes to the ABI documentation for instances found in drivers by searching the code for: BIT(IIO_CHAN_INFO_CALIBSCALE) Signed-off-by: David Lechner --- 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 401e0a595aba..da8096b04e14 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -556,8 +556,15 @@ What: /sys/bus/iio/devices/iio:deviceX/in_altvoltage_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_capacitance_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_both_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_intensity_ir_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_calibscale +What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale @@ -568,6 +575,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_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_voltageY_supply_calibscale +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_calibscale +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibscale KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: From patchwork Thu Aug 15 17:22:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13765004 Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB0911BA89B for ; Thu, 15 Aug 2024 17:22:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742543; cv=none; b=V8yRMsemYh2dSkRaWZKDrAHOh21RBgitAIH8QJtX/VzCPv5Ypb59R5NKNzWZrWRhaNLdWm5FR1J+o9UBxrY0Jbi4276Y1LeFNn+PCnED9RmQj7f7TjLu/cCfsk8L1DNB0uFS/wVxkYQUrjPaVqinAtd+YhDEykDPw4PGYGNU7SM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723742543; c=relaxed/simple; bh=NqKNlMBKIncrdZaC5SfMefPwGwnTpzNFFps7IhFDvR0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hwSbZNXb1FmIM3gXTM98cNESl0r6yHdCPTeokOxHvLgZglt5g+xcIv59A+BcWRJthQDkbbBlnbLEsdpqw4AuIc/kugMm/4g6gJGb6yq+rT8f3iDAxt+JOsqqrlIh2XA9WPITMr/PFTSgkCIfE0Y0Ex+mF/VFAaOg7WmaUjt8IbM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=g+/XpKFB; arc=none smtp.client-ip=209.85.161.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="g+/XpKFB" Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-5d5b986a806so1221829eaf.1 for ; Thu, 15 Aug 2024 10:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723742541; x=1724347341; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ee3sT3/uSk/z9bmUFqgsaKtC1S/E/xH0EqUpDks1E0E=; b=g+/XpKFBheqISNDyLc60IzSGdsQknKRbmh4gv1Eg6Xctfv12M3IDJtEAzK0Yr1ovHS nBBJkVKAjXuULjurUSkMehFOVs9BNUxt13+PeJTpR+ZSMA/DOBVOEixjSTMwM/wOcb8L I5wj/YPFeMo84W5jBMQccxl92GS7hxxyNrtv+SZfwCp3tqWavUgi97qnn+tOi37r/2pO hptrgYGY5RbY0AyZYUApgZge9K6oKRFCX0s1ns5C+vqBA/ZHMYtke93nkNoSFPuwXDSc yT7w+G9MVjMV/3d9So/U6QILZ9/oarsL6TPvyC+SWgKwUDZrY0KdGcYId9d+16Os6e6a 0cxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723742541; x=1724347341; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ee3sT3/uSk/z9bmUFqgsaKtC1S/E/xH0EqUpDks1E0E=; b=EDX7ep2ZCD/xAqcxjvbEoVB62ScqzhEqls+T7EBhJoxk9o6i60wjNCNBbg9MM9Y5dt 5tZK64iOY56h/gbShs2qd2KoOIVHpdBDvm7xMdKFlqPbJc5Sm9PQLipCVyEhmux1JwRw 6n1jgQklMR0IoqR+hHB4whSpsRrTpx02O6F7Bs8z4EoY0Wsr01pjKtSiqc8hISmKkaqi fBmmDl66UlIK/bm/sBxbQy0yjpKBP+daNlJY2TgWxPidvPtnhRshBt8DkjiS6e0vLLhA 8ti3eHXFaWIMCGucMtPNJ3IZgLYmpcufOIhCnMkG1oMHNmOIvVpPpTn2H/WmnpQzSRrb AOGA== X-Forwarded-Encrypted: i=1; AJvYcCWBpH25Yua/2yPZ00N+0cS+UNSkchH/om77viQBtoUX4dmoxYjIevBqiMVCqTKVCJAgxwbUc3Sd088AwRanPK4hRr9SNKRJp8ZU X-Gm-Message-State: AOJu0Yzz4EKDZzz+n5Njz7YdiqQem6pou0IheUwwGh/hbolBA9H+fbHP bp5kPxrJqpvR1Mz7aRbz840wOlYRhZRKZ8jDJU8zb9QBnzEYElql1A/6l5WcpJI= X-Google-Smtp-Source: AGHT+IF8WH4f1ycbtDoACQ5kxSxRbrCYYTVJnYwbt/UIAQoZGGCtScYr5OI1LKp7AivesPFCF2lJDg== X-Received: by 2002:a05:6871:b2a:b0:260:26a2:68e8 with SMTP id 586e51a60fabf-2701c96f08bmr69838fac.4.1723742540830; Thu, 15 Aug 2024 10:22:20 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70ca66297d0sm345327a34.68.2024.08.15.10.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 10:22:20 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] iio: ABI: add missing calibbias attributes Date: Thu, 15 Aug 2024 12:22:13 -0500 Message-ID: <20240815-iio-abi-calib-audit-v1-4-536b2fea8620@baylibre.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> References: <20240815-iio-abi-calib-audit-v1-0-536b2fea8620@baylibre.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: b4 0.14.0 There are a number of calibbias and calibbias_available attributes that are being used by various drivers that have not been documented yet. This adds attributes found by searching the code for: BIT(IIO_CHAN_INFO_CALIBSCALE) A couple of not quite alphabetical order attributes were moved while touching this. Signed-off-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index da8096b04e14..345d58535dc9 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -523,13 +523,26 @@ Description: What: /sys/bus/iio/devices/iio:deviceX/in_accel_x_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_i_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_q_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_capacitance_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias -What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias -What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_magn_z_calibbias What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_proximity_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_resistance_calibbias +What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibbias +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_calibbias +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibbias KernelVersion: 2.6.35 Contact: linux-iio@vger.kernel.org Description: @@ -541,6 +554,9 @@ Description: What: /sys/bus/iio/devices/iio:deviceX/in_accel_calibbias_available What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_calibbias_available +What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibbias_available +What: /sys/bus/iio/devices/iio:deviceX/in_proximity_calibbias_available +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_calibbias_available KernelVersion: 5.8 Contact: linux-iio@vger.kernel.org Description: