Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp689731lqj; Sun, 2 Jun 2024 18:23:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1KZATmBxRdCNDu7Zajd9iz1QF6NHNA5E3mAKu9OJfbm+FXO36gFFRtkTLOBbKokeXl/kl3c2qlYmGJfSL9a8vqLZ4uEnrzQLaELHwUA== X-Google-Smtp-Source: AGHT+IGZOkMrRwVL74ds9v5zwUIXvOwbypkUg+lQMDSKqW/6mnYR5EuIKSg7789QKX1B2IERu0ay X-Received: by 2002:a17:902:e5c2:b0:1f6:8290:175a with SMTP id d9443c01a7336-1f682901acamr3707985ad.40.1717377806560; Sun, 02 Jun 2024 18:23:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717377806; cv=pass; d=google.com; s=arc-20160816; b=pZtnL7N9uRQens/Rx0Cj0/lhdwOo/r2uUfOqqvgN0yIi4nIjEt3JpgMHORgs6qBeiP CAWcXBu9s0pPTfaWkeMAvbRwqxlgAAgW6CATsC0yT7E965BGZedn5GZNNqW/vlRIBqat udsI+S+JZFLpe1n9VxzuJ4S5ZYlOU8gJGjt53t/i8A/zFSbnuDeLhlNXJG7Ij4Ki3of8 gn4wCgJjFgXefFwYYAhQQiKf5tjoRooxE9hdr2e3V7nKpO61ZBDEvGnwgYTMrr2/n8P2 U1tJpfzYr7caIX5lFVPs0DCVp8c+WebYiH1u1lA7yvsbmGOrr63b73T2kQ/+K/eVxuXr NMxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VBbd388Cd6azu/vWhRc++DQlQ36Je8FpWpOn9E91i90=; fh=tVXms3jOlVDFVusTgW92sjsdqh191MXieS6pOuzYWQA=; b=a/mCv0LB34yGDxGNcEDKXr6IAu4tmGgzaRDCJPOmO6K82bzKUnyFF+D7duQtVqvkp7 QIT4b3l4s+uMlFhHF8Azl1RdGGCzi3HmgG5dbZUoBgDiGrMbDJc0DdN0NZDl2/wbW5aT fvxWzYqoHbFb42LMrhHW4gGYtRT2VjFo83riOl6NgnYn20R19svNYoTxWpZ3hQpruzzF FAz/xApSJmG5tu0IXfryXilwaFIipiGSFJ1Eg1eg8Gv1HyTh0WyIemjN1W2ICGtrJ7X3 mSZ6h3AE1tdRNcovw+2c7nrvkmOyflWUe5zvlM8P6i4Bt9EVSpGtlDDsWajHsFw3b79f tpNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=Bf6XtVjl; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-198521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f63233edc0si55550145ad.45.2024.06.02.18.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 18:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=Bf6XtVjl; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: domain of linux-kernel+bounces-198521-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B7CF28140C for ; Mon, 3 Jun 2024 01:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 192BF9473; Mon, 3 Jun 2024 01:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="Bf6XtVjl" Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78F8B4C8A; Mon, 3 Jun 2024 01:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377783; cv=none; b=BofS1bQratk47p+WyPjRVrs3jqCT+SVRfWdc+6pfSfSwXSqFccnSl62wY0/8sJG1JHffiGz8YIrGQehJCTb6x2kN1QrAOrYBZuI3GnK4rrHcxa+VXamipsKMJ7qY3Fay2CQsk1qT4qrqAG76ZqhS+pI9Dy6DGWi9ly4d+WKmExQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377783; c=relaxed/simple; bh=6PXKqYL85FdKzAhRz1TtXT3LipceCNkTw6h/cR19t9A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Y3KDb+211WXa0dWpCqNGk/IMKjtN/zFsh1Mw29wENb1YC7S+yDuFP6/b2+jV1TfqkX6jsgNltatraegXq8kB7HfEdaKiIQEXv7aBTvbjIfHPXHUx4S68haJLwqIf449vu978ORMP5atS+k5HZQOdsPv23sYSFQJ7gFW7ErnTNF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=Bf6XtVjl; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 452J2cdT016607; Sun, 2 Jun 2024 21:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=VBbd3 88Cd6azu/vWhRc++DQlQ36Je8FpWpOn9E91i90=; b=Bf6XtVjlV10lVSHTBNJUN 5zi6cTSOtn4ERD4Bxmo3Q4gh6JJuj1xEhCp1/BntBg/j2s1H9ep3GFlPY8LoiDju VLMNmuGsXw8AIKc7pHEZrQ+2YX/9uGQ1us5VLpErrmWf1501nyvPkQZZP9snixX0 Y3dKGePAfAk/1VYg7azGeZis1WcTXdwxyNQ9nxyxNpgxcm5Jj4Q8576xDRJIhFP7 7KXXpkrBAS6sO8z5jtXp6WAHTULSrGM0sAtz909K1TgaEZds0+Uzv5BB3fgpvpp0 r6cB83nrywanTfSk/6a/CQpYgUKt2HqsLmBkRDs1Q0gn3um90gHAAR+wsa+1fg3C w== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3yfwg24g7n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 02 Jun 2024 21:22:40 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 4531McHi049823 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 2 Jun 2024 21:22:38 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Sun, 2 Jun 2024 21:22:37 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Sun, 2 Jun 2024 21:22:37 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Sun, 2 Jun 2024 21:22:37 -0400 Received: from kim-VirtualBox.ad.analog.com (KPALLER2-L03.ad.analog.com [10.116.242.67]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 4531MFWP007966; Sun, 2 Jun 2024 21:22:27 -0400 From: Kim Seer Paller To: , , CC: Jonathan Cameron , David Lechner , Lars-Peter Clausen , Liam Girdwood , Mark Brown , Dimitri Fedrau , Krzysztof Kozlowski , "Rob Herring" , Conor Dooley , "Michael Hennerich" , =?UTF-8?q?Nuno=20S=C3=A1?= , Kim Seer Paller Subject: [PATCH v3 1/5] iio: ABI: Generalize ABI documentation for DAC Date: Mon, 3 Jun 2024 09:21:56 +0800 Message-ID: <20240603012200.16589-2-kimseer.paller@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240603012200.16589-1-kimseer.paller@analog.com> References: <20240603012200.16589-1-kimseer.paller@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: T7eePbmTrPq3oQIhNuM8DExELFrfb07i X-Proofpoint-GUID: T7eePbmTrPq3oQIhNuM8DExELFrfb07i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-02_15,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 adultscore=0 suspectscore=0 phishscore=0 spamscore=0 mlxlogscore=967 impostorscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406030010 Introduces a more generalized ABI documentation for DAC. Instead of having separate ABI files for each DAC, we now have a single ABI file that covers the common sysfs interface for all DAC. Co-developed-by: Michael Hennerich Signed-off-by: Michael Hennerich Signed-off-by: Kim Seer Paller --- Documentation/ABI/testing/sysfs-bus-iio-dac | 61 +++++++++++++++++++ .../ABI/testing/sysfs-bus-iio-dac-ltc2688 | 31 ---------- 2 files changed, 61 insertions(+), 31 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-dac diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac b/Documentation/ABI/testing/sysfs-bus-iio-dac new file mode 100644 index 000000000000..36d316bb75f6 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-dac @@ -0,0 +1,61 @@ +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_toggle_en +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + Toggle enable. Write 1 to enable toggle or 0 to disable it. This + is useful when one wants to change the DAC output codes. The way + it should be done is: + + - disable toggle operation; + - change out_currentY_rawN, where N is the integer value of the symbol; + - enable toggle operation. + +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_rawN +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + This attribute has the same meaning as out_currentY_raw. It is + specific to toggle enabled channels and refers to the DAC output + code in INPUT_N (_rawN), where N is the integer value of the symbol. + The same scale and offset as in out_currentY_raw applies. + +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_symbol +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + Performs a SW switch to a predefined output symbol. This attribute + is specific to toggle enabled channels and allows switching between + multiple predefined symbols. Each symbol corresponds to a different + output, denoted as out_currentY_rawN, where N is the integer value + of the symbol. Writing an integer value N will select out_currentY_rawN. + +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + Toggle enable. Write 1 to enable toggle or 0 to disable it. This + is useful when one wants to change the DAC output codes. The way + it should be done is: + + - disable toggle operation; + - change out_voltageY_rawN, where N is the integer value of the symbol; + - enable toggle operation. + +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_rawN +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + This attribute has the same meaning as out_currentY_raw. It is + specific to toggle enabled channels and refers to the DAC output + code in INPUT_N (_rawN), where N is the integer value of the symbol. + The same scale and offset as in out_currentY_raw applies. + +What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + Performs a SW switch to a predefined output symbol. This attribute + is specific to toggle enabled channels and allows switching between + multiple predefined symbols. Each symbol corresponds to a different + output, denoted as out_voltageY_rawN, where N is the integer value + of the symbol. Writing an integer value N will select out_voltageY_rawN. diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2688 b/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2688 index 1c35971277ba..ae95a5477382 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2688 +++ b/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2688 @@ -53,34 +53,3 @@ KernelVersion: 5.18 Contact: linux-iio@vger.kernel.org Description: Returns the available values for the dither phase. - -What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en -KernelVersion: 5.18 -Contact: linux-iio@vger.kernel.org -Description: - Toggle enable. Write 1 to enable toggle or 0 to disable it. This is - useful when one wants to change the DAC output codes. The way it should - be done is: - - - disable toggle operation; - - change out_voltageY_raw0 and out_voltageY_raw1; - - enable toggle operation. - -What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw0 -What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw1 -KernelVersion: 5.18 -Contact: linux-iio@vger.kernel.org -Description: - It has the same meaning as out_voltageY_raw. This attribute is - specific to toggle enabled channels and refers to the DAC output - code in INPUT_A (_raw0) and INPUT_B (_raw1). The same scale and offset - as in out_voltageY_raw applies. - -What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol -KernelVersion: 5.18 -Contact: linux-iio@vger.kernel.org -Description: - Performs a SW toggle. This attribute is specific to toggle - enabled channels and allows to toggle between out_voltageY_raw0 - and out_voltageY_raw1 through software. Writing 0 will select - out_voltageY_raw0 while 1 selects out_voltageY_raw1. -- 2.34.1