From patchwork Thu Aug 29 12:32:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 13783118 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 75A751B010C for ; Thu, 29 Aug 2024 12:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724934810; cv=none; b=R21FK4Kjk3I//zKYtYWrJDpqa8rYukZGW7u31cPFaKtFDeFNH0seTg/AaOqFEUqCOtSLqKEbn2pnXvgNtv6Krqbk67wzl9eogZgOvrel4uBKgTM7x3LSygA4ZdrnwxcEyZNq/iUGOlfxHYCdSfGfeXWjLSEZQKLXPmPSZTCJCZ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724934810; c=relaxed/simple; bh=2mPWOtyTd/YBLFdmdjfe2ZHlnUKUTSLx+XgVmvWKRLs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gjPbr6LvsUYSzzxBaDuUyvmJH4nD1Mf1gZy/iz3TKMDndyfeKVsKQ5W+kN0KdZHTX+Rbb9HpDbyHPCOTlqLqqCuwm8ZDD66+mP/VDISbAHTta4P9BGYswoYHh1PAyn7v9tplbvjZHfCM/yyzbfHtVvL8hBFmxkA+xkqIBs7XKio= 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=1niv8ric; arc=none smtp.client-ip=209.85.221.45 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="1niv8ric" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-37182eee02dso364354f8f.1 for ; Thu, 29 Aug 2024 05:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1724934807; x=1725539607; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=E1lPvyLwxDQjEGBnGsrIyA9bdmn+GnJfAmZj6pMaXAQ=; b=1niv8ricfScbiGmYpgYKAiwrUwkYdaxFnQI3T05U9hQK/zCx/TjdNqDisoI6pKC64e TeRZO8A1b+trIKRzpYVIDMX67qEJ1l/euyj4rCc9V73HcJ4IrPKFjr5TDY5LZ98zi8eX 5QjHlSRUb6xDP8v+zowZ4Qrj4ibOAJAgt6gFcaf78AWHqxh6xmcoyKKMmNcpy/878CkQ ao3sZbSd/1B63XhsGE+FVNCxsv/4czMgCUGHcwQdHmtH2R8JY7bxXbeuWEnTGXpjg/8A uIRHzoJJURhqtmj8B6KyjXlfmarO144bXyAORWoBwP7JMg+XelSE4vJIoQ2g2RbBBLtK 8xOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724934807; x=1725539607; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E1lPvyLwxDQjEGBnGsrIyA9bdmn+GnJfAmZj6pMaXAQ=; b=oOg0AH3LeVN1ELFThYKVTPxhbdrttEwF8gNtuA3ikg0X7SpFMjm/rheVc57gtmEUT5 XdLU16e1lPez3eXr20XBvagRZXv1Pbo9TM+qIcuxSzB2xejQ2DPk1NtrqPOD1L3dxFJt 7fu4pKfuhd5Om4lp2pCYxAtbjrbna0ayZs66D+io8mQ0Xmxv+ulUkltir2Wa8NvNITN2 cjJeWuUUEQjyyvF8zXWNnq50Dv5IAXJyRFCpWdfkDvqincjtSBs17JrMbfDcsdtb4rE3 sqEC+75rCsee1c0jOQYB7DgJ8r3diGzFWi6FHqAlRm3b+GkJJwDnBMHczgY8Ir3H0Cmi rKdQ== X-Gm-Message-State: AOJu0Yzhk+vTdAiY6dZICUCQwhbQL9g6IsAEmhhooo6rpW6zvzdZxLpY ZNW2XYARkZxtY6cTAHQIL76FREV32QkUif3CAMt0xiu/cRwGoe4wFHEvMSV4UMY= X-Google-Smtp-Source: AGHT+IFN3lOIB6gGygWvS7enFigGG4fh8ywN6uYsYc1jl1ZrAvYUvR4AaWIuj9iAzaNIUxh1F8FLFg== X-Received: by 2002:a5d:61c4:0:b0:360:70e3:ef2b with SMTP id ffacd0b85a97d-374a02318f1mr1095378f8f.26.1724934806553; Thu, 29 Aug 2024 05:33:26 -0700 (PDT) Received: from [127.0.1.1] (host-95-233-232-76.retail.telecomitalia.it. [95.233.232.76]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3749ee9978bsm1315042f8f.49.2024.08.29.05.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 05:33:26 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Thu, 29 Aug 2024 14:32:06 +0200 Subject: [PATCH RFC 8/8] iio: ABI: add DAC sysfs synchronous_mode parameter Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240829-wip-bl-ad3552r-axi-v0-v1-8-b6da6015327a@baylibre.com> References: <20240829-wip-bl-ad3552r-axi-v0-v1-0-b6da6015327a@baylibre.com> In-Reply-To: <20240829-wip-bl-ad3552r-axi-v0-v1-0-b6da6015327a@baylibre.com> To: Lars-Peter Clausen , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Olivier Moysan Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dlechner@baylibre.com, Angelo Dureghello X-Mailer: b4 0.14.1 From: Angelo Dureghello Some DACs as ad3552r need a synchronous mode setting, adding this parameter for ad3552r and for future use on other DACs, if needed. Signed-off-by: Angelo Dureghello --- Documentation/ABI/testing/sysfs-bus-iio-dac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac b/Documentation/ABI/testing/sysfs-bus-iio-dac index 810eaac5533c..a3012baf90b3 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio-dac +++ b/Documentation/ABI/testing/sysfs-bus-iio-dac @@ -59,3 +59,10 @@ Description: 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. + +What: /sys/bus/iio/devices/iio:deviceX/out_voltage_synchronous_mode +KernelVersion: 6.13 +Contact: linux-iio@vger.kernel.org +Description: + This attribute allows a specific synchronization mode, mainly + intended for DACs where multiple synchronization methods are available.