From patchwork Thu Sep 5 15:17:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 13792588 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 A78361A0AF4 for ; Thu, 5 Sep 2024 15:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725549566; cv=none; b=YTK4+z9IHshCopT+kiJ4LSnuCEXlkNoqqvYAv5VBaY7UZoYJLWgi5zsC5FNCO+qmvLsp04Y3Mzft8gPXf9mI8HtiiXIaqshErzVN+MJR4KcsPyc/Jb6paU9VP28C832jPG6VGHx7/V0BDeWBp7LuaQTQkJUWSEIFDVXuydp2ePg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725549566; c=relaxed/simple; bh=qn4Pz1FllPoafjD4D/Ys3jtfWUZjxE9556qRfvpMii8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=S+mAe1b2OLYiZ/+QkL8o2wMQOyR8TJwoIu9Xx83UBaTb31e71Qoa4DuBJNFAV98jh3SBx7a9TeYgLhgOy8V7Jwq9/0nUhSAfB3/2/gWim/QWJCZryEHFL9BqgwvpYdL6icNGHD9CGeWduGaFuigf67lXxDa5IJeQY0XDPwqkGrU= 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=G2LzPf2D; arc=none smtp.client-ip=209.85.128.51 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="G2LzPf2D" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-42bbc70caa4so7500045e9.0 for ; Thu, 05 Sep 2024 08:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1725549563; x=1726154363; 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=driisr0A3MH4MgRKuQS7KG+TfR2Tlhzey12qVcFwLZA=; b=G2LzPf2D21heF38NkGLIviwTrIilT7IgpccZlVSko2SWS8wTjsXsmA2w9SCOu47Qtx 45xoiu6oM68HtzzwhrNR6f6xg6hpnshJMWpHiMS+TPG4QtsKd+R5sNw/u1wPNntJu94R KAcYQYMEibfkDp3ML2C6m5phHaT7KdlLFFTk/s60Owa9dzOV755pS9c6r/FaecJpl8Uv 3O60s9B5xLTFzgCNsPyZwS3T9v5Byy2HQBIHo6yPStyAkI9FYPbIWYPmyYhUuih9RmFy 48W0v/lImCbDhc3cxmYyRmtwn0ALBl/7A19+ufW22r5ENtMVBaz8aasXtSVjS/9PjC0n AamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725549563; x=1726154363; 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=driisr0A3MH4MgRKuQS7KG+TfR2Tlhzey12qVcFwLZA=; b=SfWb6OfFKAI/xlxdKnshnIMPmGntK20CRbzM5hn4dpldRW23k02YIlbHzAldp1/c0z Mx4vlmAH4HxdfDHi15tiBEU0dR3qU1Xj9iAg8wzPO7StVrTlmZUehQMyb4qrvH+4oNjY 5cuCx+H+yt0HEKONyKy3zsaxQXoy7qA8rd+/i7o5a4Uw5B+asc7fyPEQBZZsdH1Jjw9w iYhj35OTLLB2u4SuMbjcZbeoqIdxMi8TPpKggPj4zhcKuIBcbsKLusaKHbBUVZnu6RTL EZgC/WLQXqK/tfUU+zLn96gZyBgl+5CKijeGZ80yYfq509Am0RrK8ORHZ1Pd7+y+iNXb +O3A== X-Gm-Message-State: AOJu0YwE1pi5WiBXjxNiIK9Y8N9MNHRJVrAjOM+ZKUgN4w+PXhbQTFXc pHDgdMndfp0Nc9z57aqeios0yC8rN93/IEhQroiklePTAQnB8ltkGxXI8/vWrQc= X-Google-Smtp-Source: AGHT+IEC17EB/IJUmMU3G5MrSDuKVOJd/AkOUmfnYOuz4m0Ufmsilaa1BcxFoMVn0wGFcbEWuW6q2w== X-Received: by 2002:a05:600c:1c90:b0:426:6d1a:d497 with SMTP id 5b1f17b1804b1-42c8de79fdemr60732675e9.12.1725549562913; Thu, 05 Sep 2024 08:19:22 -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-374c1de81b2sm14031076f8f.30.2024.09.05.08.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 08:19:20 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Thu, 05 Sep 2024 17:17:39 +0200 Subject: [PATCH v2 9/9] 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: <20240905-wip-bl-ad3552r-axi-v0-iio-testing-v2-9-87d669674c00@baylibre.com> References: <20240905-wip-bl-ad3552r-axi-v0-iio-testing-v2-0-87d669674c00@baylibre.com> In-Reply-To: <20240905-wip-bl-ad3552r-axi-v0-iio-testing-v2-0-87d669674c00@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, David Lechner , 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio-dac b/Documentation/ABI/testing/sysfs-bus-iio-dac index 810eaac5533c..2f4960c79385 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio-dac +++ b/Documentation/ABI/testing/sysfs-bus-iio-dac @@ -59,3 +59,19 @@ 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: + Arm or disarm a wait-for-synchronization flag. Arming this flag + means the DAC will wait for a synchronizatiopn signal on a + specific internal or external wired connection. I.e., there are + cases where multiple DACs IP are built in the same chip or fpga + design, and they need to start the data stream synchronized. + +What: /sys/bus/iio/devices/iio:deviceX/out_voltage_synchronous_mode_available +KernelVersion: 6.13 +Contact: linux-iio@vger.kernel.org +Description: + List of available values for synchronous_mode.