Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp405707lqp; Wed, 22 May 2024 08:03:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKpQxtwlbbOujTklZc5BYPyZOIJxwOK/DR23I5UUuqQbNkOePfNPmvML4inP9sVXn9ROVovnyQjW8d3Noq50EWTMCmfQcnsHsUYWrjaA== X-Google-Smtp-Source: AGHT+IHEDL3AicXl/n51RaLHnjtlc9DnsfG9jytLjP64+h+qCdEXooUsE1/D2cRUf4mkWkYoj5PA X-Received: by 2002:a05:620a:1598:b0:792:f438:abff with SMTP id af79cd13be357-794994cfeccmr227388185a.76.1716390219419; Wed, 22 May 2024 08:03:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716390219; cv=pass; d=google.com; s=arc-20160816; b=AmtbeTplaFO7Zsq3RVCHhNpygzgpajbmFvapXvGWWunVDNtFQFGkAF806Lgs2c8Bt1 10hjWjMZWGAJ9hgF6CGk/eI+XjGFqydv0erMJloXK2BUzh3xmn+CbARqxe7Hvuef9RsZ dE1Xc8cNJio2Pi9G5jkcL+JrKcknVXrHAvF8ZoR7x+ACL73SNbQmBUHWDsOqpPBaCRGZ CsQ3mULSIY3sYJPoGoh+ahZ+bggJzCWSI/4nwG+3SeWH4J3riwz5xewJqrJXlzkcEwSl ssiiw7hglOnUfLhZYuqvGFWr9aEq20uUZk/W9VtgLE7wkHVcnloVDB4ll4xAUDIEz7EF uRrA== 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=TB4aFrxJGRpEFoDCF3w8d3C8gCv5YBGExDQ2YOzvshA=; fh=j/fv40BGfKiMgx3EXRng1RLxtfhe32SyKDWLsTPH9iA=; b=SanDZD42+RZD16v5t8oNvQ81yZcayNqpjIK/Vr0V2vdsLLOyLGcVzuYghW7JamPfAx iR/wYagQFo1+vU1aiNhSsIX3VTjMpKf89YhLX9lrDqL/oRVWs2BjsnXun+Jc1VqQ1qJy AaPZ8sGSOQ87LZzL5TMMAaaLQXpUxquFy1yMHtzw5PECYXMnZMBXkXha11T53fYYmtnK ck58suvJaQCyrLt/576C2QEwC6jfUYY4S7WDt/qGlPr7nSgG9esZsSSRkowhudNzzE4V 2TPXBMRFsV20fN8BIgzbPXoEV+s+VohbI1u25Qzi3g0uXJe4d6fXfek4f0b+/Bpdr/fb ILKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=LckNCFsD; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-186399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186399-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf364ef5si11132385a.636.2024.05.22.08.03.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 08:03:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186399-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=LckNCFsD; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-186399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186399-linux.lists.archive=gmail.com@vger.kernel.org" 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 86E621C22C3E for ; Wed, 22 May 2024 15:03:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A1143CF63; Wed, 22 May 2024 15:02:55 +0000 (UTC) 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="LckNCFsD" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 71DD921362 for ; Wed, 22 May 2024 15:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716390174; cv=none; b=KHPaOOW+9h3E7z8Z7MSLMPfThWif4+1gxKlIY+40LksfWzOUCzIJNWPu7gxzp5C37bS5vvbNR119t+4qS6oLbnvwUXdJGwhB8LVFSKqRmgEYCbrvbZ5GmhmgXKbu+kZjWi8gLWinIgFlXQ92avVkxYAoIOvbed9E1ohItqK3kkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716390174; c=relaxed/simple; bh=Oyivc8v0nPgyt25Ej8yA93bFsXe74OIpIMbFcFJaQZE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XRdulwvS6iA/oipC4NMOHblszkr5Vj9pC9fkm1xsQFnxDw6j8azu14xXK7KCW4fkTQiF5jk6z6c4A4Uuy9jikxdOE8cYN4PACz2L3qq5Dw0Cq70uTKa93zCVoA3qXmjCjF+wkW1jB5EpnGMXj2lEwiHYXogjziqxaPV+YN57LzA= 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=LckNCFsD; arc=none smtp.client-ip=209.85.208.174 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 Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2e6f2534e41so52499941fa.0 for ; Wed, 22 May 2024 08:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716390171; x=1716994971; 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=TB4aFrxJGRpEFoDCF3w8d3C8gCv5YBGExDQ2YOzvshA=; b=LckNCFsDKH+aWSA8Li2pAvIW5abUE0UIKW3jCXJNPgpjHu0T68hIF7DRduCkbWTUUv fk791piCxcn7hhgSZt1aPt+XTw6aoTBWZ7s6qDUrZba80Be83EBBNo0gazwE+0PlZhJC qCMUGYgshQV+OlUkEjWwMe/uZOtGvzkuBluGiA8kn/eWzCEjq8t6tcg0cBXAp4iy1bSG glrVRH0LoZRvLC2gO7lIWeicakvlSIKidLYX09sOeYiluQdp6dAfk47xqnBdfdnNochA xsrdwHET0P4TaPCFXnHmBSZEOV1sG9xofKdxQPFbFYsJUOqQajuHZvOLpSA8Hdnd+ZmX MNQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716390171; x=1716994971; 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=TB4aFrxJGRpEFoDCF3w8d3C8gCv5YBGExDQ2YOzvshA=; b=YwYW/igBuihUPOb23bxo46CHRs50VCrGuLy7MX4DLUsolL8ulez5K3whyktf8FjnYo sQwfchwsFd+elHAt4A0ipUGokkyVhNOBsD+mzOK838WOW47bA8Fy0Rh2W7K/2Zw4eYIJ Aqsq0ZkhERH3bJAZZ7seM7IfgSG1nVQX3vHIxhmnDAUiQSbif225Hg4NlU45HegOQPn8 dkkCnTtsVvd0RyjZ6JzrCz2AyiEiQYQudp3FknSrD6YqueJGyoVDSozBYut6hXI5Ct4p RLU6taevldO/+KMD4tegvvGFBmkvtYHoCH4QHuzqZ+8ln8xABCceeMWbSuSwlnlHMdxS ni2A== X-Forwarded-Encrypted: i=1; AJvYcCVGlUFO3/kpMdwm+kHoQkUvjBiofGbzEUmBKD4ac50iM7EcBPzCNw9V0Jna6vbCh1pN4VwbBDpoH8x/pLBKVm0B7ulSELaZYPUVqYVy X-Gm-Message-State: AOJu0Yyzqoaw1j7FwtGXWY0Csk1HJPAR0iAbeBZCa6zE1Ig74dfjkP4v 6579D5mZZpM8IpaIIGvJnZZgnRBlfKlPQN40euiqywFNDC9H51/tZauNlc2MznI= X-Received: by 2002:a2e:720c:0:b0:2e4:f8e:3a64 with SMTP id 38308e7fff4ca-2e949518e3emr15052791fa.30.1716390170644; Wed, 22 May 2024 08:02:50 -0700 (PDT) Received: from localhost.localdomain (host-79-16-6-145.retail.telecomitalia.it. [79.16.6.145]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fa90e93absm531370515e9.9.2024.05.22.08.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 08:02:50 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello To: jic23@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: nuno.sa@analog.com, lars@metafoo.de, Michael.Hennerich@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Angelo Dureghello Subject: [PATCH v2 2/6] dt-bindings: iio: dac: add ad35xxr single output variants Date: Wed, 22 May 2024 17:01:37 +0200 Message-ID: <20240522150141.1776196-3-adureghello@baylibre.org> X-Mailer: git-send-email 2.45.0.rc1 In-Reply-To: <20240522150141.1776196-1-adureghello@baylibre.org> References: <20240522150141.1776196-1-adureghello@baylibre.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Angelo Dureghello Add support for ad3541r and ad3551r single output variants. Signed-off-by: Angelo Dureghello --- Changes for v2: - bounds reg value to 0 and channel nodes for the 1-channel models. --- .../bindings/iio/dac/adi,ad3552r.yaml | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml index 4e9f80445405..fc8b97f82077 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml @@ -13,13 +13,17 @@ maintainers: description: | Bindings for the Analog Devices AD3552R DAC device and similar. Datasheet can be found here: + https://www.analog.com/media/en/technical-documentation/data-sheets/ad3541r.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/ad3551r.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf properties: compatible: enum: + - adi,ad3541r - adi,ad3542r + - adi,ad3551r - adi,ad3552r reg: @@ -128,7 +132,9 @@ allOf: properties: compatible: contains: - const: adi,ad3542r + enum: + - adi,ad3541r + - adi,ad3542r then: patternProperties: "^channel@([0-1])$": @@ -158,7 +164,9 @@ allOf: properties: compatible: contains: - const: adi,ad3552r + enum: + - adi,ad3551r + - adi,ad3552r then: patternProperties: "^channel@([0-1])$": @@ -182,6 +190,21 @@ allOf: - const: -10000000 - const: 10000000 + - if: + properties: + compatible: + contains: + enum: + - adi,ad3541r + - adi,ad3551r + then: + properties: + channel@1: false + channel@0: + properties: + reg: + const: 0 + required: - compatible - reg -- 2.45.0.rc1