Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp534800lqo; Fri, 10 May 2024 07:22:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWesgTHmKYCdHKZJpwSkL7LalZD5YNl9kx2mMJbM6DsEL3Huo3InipW+nDDsaQ7mIptgRnl8g4ENdeSwak4VQ4MIA5mmlSfYYyaiqbj6w== X-Google-Smtp-Source: AGHT+IHtbIOM98BvoYnH/AEhg3JHkeez7+OQBVO9/YKAg5we4B9oR8FVqgMReBxOgJ9NpNeAVfE1 X-Received: by 2002:a05:6358:3a11:b0:17b:5661:5e2b with SMTP id e5c5f4694b2df-193bb64065bmr271588455d.18.1715350944947; Fri, 10 May 2024 07:22:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715350944; cv=pass; d=google.com; s=arc-20160816; b=XUTkB8J09un9pA+XuUksWWGgmyl/I2GvBhkh9AZEhaujRFFInMIxOmETgjSf+bXKHD vchpv7d5FamQ46H9tTTA/NJp6ek/84+645IKdyV5SM+MRLH6+Osi8GIaJ8J5Y4Hpjcd7 VwBfqz5vBDIcUNHw3XZF6a49mjRGMhZ9d8s+WaRv4hNa8hwIxqqpB0MgGcZfoBUio1mm t06ZHduKcuMb1Yn8JMtw3vUTCtAuQ4k2hlp11pym7pgrO8L1bg87RUrmps5mH/TdEkDz P/Y/EfAJmxJTbKG1yNk6DuZGJKUk6Oh3aGnxt4s5cS+JUyxgLvPBfqR5weJtG8QjZ6FB 5qwg== 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=ygxOQC15SUv3c6gwY3JPpSRcLSnmMYCDwnNrBTw5+2g=; fh=sNH8LpsVZmuSKohQS2NwyNxUjpsgHsLZDruZpmpkwyU=; b=zBP4WuhL5C4JBDa6VWDcv+NTQTp8zPwfo0j2fPC/7P+IsS83qpIkYtFxX6NcefAvhC g0WRveNZjoxgD4PstDrvldBuCxAIp1n6Ph2I3GSfP/9cqDgoVBSiLS84Eu8EN3xjXtrv GoQfwZAioiYMg4uvvsJS44uKmffaiIW9xb80aR8vmRzNKDyfecqj09WnioFRTqfQsF60 Y4t0d6qgtHsNpJyPeyWlHBXAPuL+kT+40VS96JE1nqX32YBMECFj2YTSxVNxuFScYTUy PtpEbdAX3do2T3AENaQB91lfORtWC6SKFFr0msOPBasYujO04roQTvnWxFrw3mwq2imB ZxDw==; 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=iFwnDgVD; 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-175881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175881-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412958d4esi3782407a12.620.2024.05.10.07.22.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 07:22:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=iFwnDgVD; 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-175881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175881-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6CE89B246A3 for ; Fri, 10 May 2024 14:19:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B1CC170884; Fri, 10 May 2024 14:19:22 +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="iFwnDgVD" Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 DE5391311B9 for ; Fri, 10 May 2024 14:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350761; cv=none; b=r/jjE/AVGKsn4zdlKiE7secOO+kGAxLmDQfOBeqGZYeXUlepF6ojakA1K/ZpPPdndAzI4I2gslAWcaGmbPvCMxpIKzbWa3Pbn5DjzgyJsMm84LZOR4EeHff/lQ+1d+UD/Rra9sO08sFexPZTxZikmJcLW8Vw+dS89SxflqEfB7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350761; c=relaxed/simple; bh=i4G7aoZtuOLQ6v/EAbm/87VL6HJuAkCoK1F6wDmVAoA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ETtVLMrv4whgwtB8b60AksAfiuCh4y6fPHEYgCdLKo+GYvV2OUwD/M6AJVekdoPXaBrKyhnXtwrvBzsDPKzA1JM2Wn90lqS60BNzv9zH1MozczMCdi34krW9Hb8rcc6KaOz7EDvHBpyJG3whpi4ljPnLxHMs14XV10rPws0PNGY= 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=iFwnDgVD; arc=none smtp.client-ip=209.85.208.173 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-f173.google.com with SMTP id 38308e7fff4ca-2e0933d3b5fso29480321fa.2 for ; Fri, 10 May 2024 07:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715350758; x=1715955558; 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=ygxOQC15SUv3c6gwY3JPpSRcLSnmMYCDwnNrBTw5+2g=; b=iFwnDgVDMpE5HBR8sOAoQ76o7hp7BSvjOms/HGF2HJnJvHhi5AOLEqSKQYxUNbsfnJ C3iCuFyKktF45RLOTC7odHlEdBKuNc6pGYjU8El7Z6h901A9gTgeizRp+MdzVZ9Jk+BG j1UsYkuCuh7rvr9TxvV+N3AkpW5A736Y/LQq4nS6TwiNawXQ/N2/+KOU7o39ibEWpaM+ BHplazxLWcyPuZC7Ty6nhrBF1iFaP7J0KrR1NM56PduTxJLc0H0MoRhFnn4A0LsagJc9 zs8wQg6W0xnO+8mU66pcY22KHVZbZxr4SePjJiHCYXZdH8X6t76gKvCpJNzfdY2PHp7v 08lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715350758; x=1715955558; 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=ygxOQC15SUv3c6gwY3JPpSRcLSnmMYCDwnNrBTw5+2g=; b=YU7hYcfP7wO7Z0/L6Wgdy7s3/BJa45tNUbfnNgJjH+u2WtsxDPMSHZ2ayojqZrZ/2A VxTgOybh3Dlyze8O9fxX3ewboiPUvQx6gyvnOeA2RFnpjRrQJeZYbuHspkeuyvzC94t5 N+pEMoxkMP/WtTDbCxCHWkCtu7ynoOA57aVEoqNryKuHL5pYpGaSjdmhPwDoZJ0LuZfn 0SKBCeh3jANjx4YdjEp5DjT4HroUjtwYN3hIYGMTAlc88IXArTCWSWmbFjMTiz+m1IsY MydSrBnCwnRlLpKf32lq7dl/FjjDy9P693/83rjiHwJeHYKmJTPr/0ulwyfTf9FD9V9I A9mg== X-Forwarded-Encrypted: i=1; AJvYcCWqynG8vvrJeRttG3Duz/grkxnbiKsN5QbNAdr+3F52P+Szih/Xi0mfMu7UkBtPZv2sXWEL0egZeGB7ggVF9yfBTmquKs4loXkxKmT8 X-Gm-Message-State: AOJu0YxRu8myIACWK0Aap4jk3nNBk4j/VOue0qnBaZ1cXDLKy5ykNbCb XemxFv7+hiNFxTBo0hvNmPaVtfNBxQz+dHADedmIwvXT76nDYyu9XTtUcLge3Wo= X-Received: by 2002:a2e:b16e:0:b0:2e2:1e87:bbc7 with SMTP id 38308e7fff4ca-2e51fe53fbcmr17337851fa.18.1715350758289; Fri, 10 May 2024 07:19:18 -0700 (PDT) Received: from localhost.localdomain (host-79-47-39-74.retail.telecomitalia.it. [79.47.39.74]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fd97e842csm56111875e9.24.2024.05.10.07.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 07:19:17 -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 3/3] dt-bindings: iio: dac: fix ad3552r gain parameter names Date: Fri, 10 May 2024 16:18:36 +0200 Message-ID: <20240510141836.1624009-3-adureghello@baylibre.org> X-Mailer: git-send-email 2.45.0.rc1 In-Reply-To: <20240510141836.1624009-1-adureghello@baylibre.org> References: <20240510141836.1624009-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 The adi,gain-scaling-p/n values are an inverted log2, so initial naiming was set correct, but the driver uses just adi,gain-scaling-p/n, so uniforming documentation, that seems a less-risk fix for future rebases, and still conformant to datasheet. Signed-off-by: Angelo Dureghello --- .../devicetree/bindings/iio/dac/adi,ad3552r.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml index 17442cdfbe27..9e3dbf890bfa 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad3552r.yaml @@ -94,13 +94,13 @@ patternProperties: maximum: 511 minimum: -511 - adi,gain-scaling-p-inv-log2: - description: GainP = 1 / ( 2 ^ adi,gain-scaling-p-inv-log2) + adi,gain-scaling-p: + description: GainP = 1 / ( 2 ^ adi,gain-scaling-p) $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2, 3] - adi,gain-scaling-n-inv-log2: - description: GainN = 1 / ( 2 ^ adi,gain-scaling-n-inv-log2) + adi,gain-scaling-n: + description: GainN = 1 / ( 2 ^ adi,gain-scaling-n) $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 1, 2, 3] @@ -109,8 +109,8 @@ patternProperties: required: - adi,gain-offset - - adi,gain-scaling-p-inv-log2 - - adi,gain-scaling-n-inv-log2 + - adi,gain-scaling-p + - adi,gain-scaling-n - adi,rfb-ohms required: @@ -214,8 +214,8 @@ examples: reg = <1>; custom-output-range-config { adi,gain-offset = <5>; - adi,gain-scaling-p-inv-log2 = <1>; - adi,gain-scaling-n-inv-log2 = <2>; + adi,gain-scaling-p = <1>; + adi,gain-scaling-n = <2>; adi,rfb-ohms = <1>; }; }; -- 2.45.0.rc1