Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp198021lqn; Thu, 11 Apr 2024 20:22:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXzXRAMWop+wYpMO9prazBpkaAIuwYusjGrpT1pqrie4c2g/0GL9H5Dol1wV+GtZf9cYck8BJjTx6GH7HA1Gya4ppTi8BszvoGMgfTdRA== X-Google-Smtp-Source: AGHT+IE7nC6mIZzL6dz9cW83H06uoWyRQjvF70RXtNV0EUtlZL+/EakOSLOS0iow8jAyDhnntTm1 X-Received: by 2002:a05:6214:5612:b0:69b:569f:199b with SMTP id mg18-20020a056214561200b0069b569f199bmr962388qvb.60.1712892157646; Thu, 11 Apr 2024 20:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712892157; cv=pass; d=google.com; s=arc-20160816; b=idjt7sS/+uf9b/mGlRUzHfa5SJ9hhrR3pjJN0MsYIGuczV18Qsmg46eCg4UhAVsEXA /B/RiX8k6NPd3rI3ck4oRkknkjgLadDUMTA67dze9DTQKqKjSA/+vwGc/3erZ0RsH5hg M2HY6MV6sY8YI7JKhcm4S6negvsuAkrzWkFc4UoPvhfbxUcqjUneCdYO6r44yA9H07+M g0O5w43y0wcHW6e6VM/Y0GbU/N3V1ArFGH9gzZHd1WFSl5j7xYTVEnIaZLWEwGeYduwY uPdW5rwgHRMaoacHA8PG6vUMmq4Agpl4nJwO2Hde+76TmSSx6SnzM9F+/vL2gkpyL9dT A40g== 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=0FpVZp5rgKR3BFnV+2O0H0nhcKqHXyxleMBi+/JGkBo=; fh=myGVfEwUXe4IqYMBpjWtGHgIdOo+vtJdWKcwNMiT7DA=; b=LDEPIwln/Nlsguo/dzmKw3clad5BXrk/9RUEz5y22F18vF4QDKqLAEEqLonorud2R2 Alu9gzxOAPZh5UWF/nzS63IdikU0IUX32Bx7wmp6YPwoakxhHl/+/g7qkviGjAfpH8A+ Af4X8cfXD12mb7P6gwXRRQKQB03jeoEv9i4uU8bDhVP+Dm3c6GbLmqmpNXsctIpTitPy Jab3WjbBOI2MUSJFQVCjL1ANCGnNtJ+b1SCnR+Rb12Ns7UycuGLzHjMCyWKXIQIBSV+E WuNNn8W54AyeQ1wTMTCbOKi2kF9DwUA2DwfTMrj35Y3KSwcsGDVb7+D7xBDzChdK9xP3 Gdmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=FJ44YAlC; 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-141858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id do17-20020a056214097100b0069689604db4si2779441qvb.357.2024.04.11.20.22.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 20:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@analog.com header.s=DKIM header.b=FJ44YAlC; 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-141858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141858-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D3701C218A2 for ; Fri, 12 Apr 2024 03:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8417D111A2; Fri, 12 Apr 2024 03:21:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="FJ44YAlC" Received: from mx0b-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 1380617BDD; Fri, 12 Apr 2024 03:21:52 +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=1712892114; cv=none; b=KdmLnbMPu/JNNpEjo63hDsMDVes0r26lgK09BVfdcn34cftbrSaBC20OC78sERnOHiknBQ6WdASCyh9A2vf+hnULe+YCuwDaYVU3+RMiP2kXM3KxMrbhL/ovEu8eNWFNL7ImAAzogZQKJ/I3or1CvgFE0+7+M3V6ikGtVDRgCko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712892114; c=relaxed/simple; bh=l5A4vxQ7tsKU2pvs1CtcYasieAlxi0kY2xAYz2jv4z8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fHT7npybOw2twjlTuTo/WjtqnTTg07RQRJKCw/K+sfoaBUyg8HxMNQIBQnMWOLssa+Hf7suKCHREGFWtUHxaoc/zmuhDM38sKJPUyUC9xIzPW+SS4rpBy0GfsT+JOHi15vS7Boc2Z3TfD48jsNFLzDZqTn7NYi8M/8pxW5SAg2g= 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=FJ44YAlC; 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 (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43C33Clc013858; Thu, 11 Apr 2024 23:21:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=DKIM; bh=0FpVZp5rgKR3BFnV+2O0H0nhcKqHXyxleMBi+/JGkBo=; b=FJ44YAlCnQeU JCbheJCOgVlDlv+24VB3sfWXuOeQAv88T8Y9qsqcJNFaPX1zFGZMt+eMSeRBwXkW uHVbwysr05rzmrcEq4+tlsDR6eNb4oPRCZkQWCM3Fjzg9APV+tcqmKEMlsjV1LYA jnf7qrRZk/CePgHln4m/74YH/qddV2XODDSLo1iktVxFM+w/cVtRXQhKu+Zyt9a0 mnV+T4xa3m35TxEW5saMAPYNOZeOdRINlA0vzuw3TiMO1qCGgo0gsuORIG0yEbXP hl6T4HHiMQgMjQQgiB0o5huCM4ZnDpZfdloRMJfySJpj3TgT/C/ojg5VMY4Ml5x5 D/bhvVpHPg== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 3xek1f27nq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 23:21:37 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 43C3LZIk021581 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 11 Apr 2024 23:21:35 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 11 Apr 2024 23:21:35 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 11 Apr 2024 23:21:34 -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; Thu, 11 Apr 2024 23:21:34 -0400 Received: from kim-VirtualBox.ad.analog.com (KPALLER2-L03.ad.analog.com [10.117.220.36]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 43C3L8ph021230; Thu, 11 Apr 2024 23:21:28 -0400 From: Kim Seer Paller To: , , CC: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Liam Girdwood" , Mark Brown , "David Lechner" , Michael Hennerich Subject: [PATCH 3/4] iio: ABI: add ABI file for the LTC2672 DAC Date: Fri, 12 Apr 2024 11:21:01 +0800 Message-ID: <20240412032102.136071-4-kimseer.paller@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240412032102.136071-1-kimseer.paller@analog.com> References: <20240412032102.136071-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-GUID: QB7jeWZ8gygj_1Mbw2bdSfiS5i9maYyn X-Proofpoint-ORIG-GUID: QB7jeWZ8gygj_1Mbw2bdSfiS5i9maYyn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-11_14,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 phishscore=0 clxscore=1015 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404120023 Define the sysfs interface for toggle capable channels. Toggle enabled channels will have: * out_currentY_toggle_en * out_currentY_raw0 * out_currentY_raw1 * out_currentY_symbol The common interface present in all channels is: * out_currentY_raw (not present in toggle enabled channels) * out_currentY_raw_available * out_currentY_powerdown * out_currentY_scale * out_currentY_offset Co-developed-by: Michael Hennerich Signed-off-by: Michael Hennerich Signed-off-by: Kim Seer Paller --- .../ABI/testing/sysfs-bus-iio-dac-ltc2672 | 30 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 31 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2672 diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2672 b/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2672 new file mode 100644 index 000000000..b984d92f7 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2672 @@ -0,0 +1,30 @@ +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_raw0 and out_currentY_raw1; + - enable toggle operation. + +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_raw0 +What: /sys/bus/iio/devices/iio:deviceX/out_currentY_raw1 +KernelVersion: 5.18 +Contact: linux-iio@vger.kernel.org +Description: + It has the same meaning as out_currentY_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_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 toggle. This attribute is specific to toggle + enabled channels and allows to toggle between out_currentY_raw0 + and out_currentY_raw1 through software. Writing 0 will select + out_currentY_raw0 while 1 selects out_currentY_raw1. diff --git a/MAINTAINERS b/MAINTAINERS index 9ed00b364..fba8bacc0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12843,6 +12843,7 @@ L: linux-iio@vger.kernel.org S: Supported W: https://ez.analog.com/linux-software-drivers F: Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2664 +F: Documentation/ABI/testing/sysfs-bus-iio-dac-ltc2672 F: Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml LTC2688 IIO DAC DRIVER -- 2.34.1