From nobody Tue Dec 16 14:53:52 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 02B85218AD1 for ; Tue, 6 May 2025 21:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746565530; cv=none; b=jghWtFnpfqpyL7ZUTJSHe2F0eeTTGejRTOjHVQtyMT8aAnvbRb/h3JHSx/PVdn19Z177wYYXotFhr51DwuFkeTQ0ja2OnvWmaidVdm3FeUB4szEnhRQfe5Eco29g76zLxH8tLM1JSD4w/Wi8tZa1gmcaH1KBZopingfsBWU7V5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746565530; c=relaxed/simple; bh=NtotUFQE861trIH/6KVUMJlh1RHFkSekY2PpGsDNTzs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mETBki7l4g5Ymq+PJgMzR4jpHUQ15HfT6FofvWIjycFABrIazgKzh22FDja7LyoFszcLQJpjjqsU+eVvmjpGD134/dTXd+cw/miyqm1NlarwncrGKz3Mci369eOlzOpTT1HBuXFlAk9Bu+Y05XGd64mbqI6evBPt/BbcnmvP7QM= 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=sRKk7VCp; arc=none smtp.client-ip=209.85.128.47 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="sRKk7VCp" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-43ce70f9afbso54299465e9.0 for ; Tue, 06 May 2025 14:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1746565526; x=1747170326; 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=SSPYC82OHD2BI/YU/tjmuoLa3AQcRKZBypSGl/10x2A=; b=sRKk7VCpsIgpDd3l3QlrSy3OBEsV+LNqy3lT+FbM18j77putich8W7nEhP1gCgHOe1 K8rDU14miiRYTvDf41Ogw+rjXfkh2XZEl46uyjA+e9oxD7vmM8k7y2Yz+AfnucORyk2s tE9TSoYe7fN6YWZ0LNu3IVIQ7RxqovT6RIZKkuDbxnGivUKYKPGLpPEPjaEooSG0DQc0 gx2fZwBiKniM6ZEXHyUYZZ+Rn6+mOXJvU9J6xq+D5wyQAU4U6mXGxLM883sha3STkL00 fU/R1Kl9+dFL2BaghDLoZDtM2pqUPtU608LXnz0zT6ca7Gb+SBQ4idzd1GvC54xiUAYr NAGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746565526; x=1747170326; 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=SSPYC82OHD2BI/YU/tjmuoLa3AQcRKZBypSGl/10x2A=; b=WdXZyowVeu1amgUuJeKnn+nQAfdKmkp5wqyysC7VfZkAzEaIn4ywwSxQPO7T3C0on4 F9L/Zq70AyBVEHCl+68nIkxafp4ichWMv+WZ1tHEShzYL30qioyaprjMXYnlgQ2JPF0o 0TYCH77dgYLYIhafLShYb6mn6ygLeVIbVEJLNbK0y/vhtUDkLzo5eebDX4+lzGUohJxu KEqdwIYcVHQf8MWZSTd5b4QN4djzCK8Ca5/fMRx1FUCLMMacNYJgg2WyedtzX5RnbFGy 2Nadbzc/JclKOODQU1KrO8kUM1DUpyyOgGLNaApEmNxy9m1BbWc0LmMhca415Os6sX+x yRGQ== X-Forwarded-Encrypted: i=1; AJvYcCV56UmxDYsKQYiJp7p3tuzsKBUXn0apsnJGHQ+GkJsdHcvBU1/uXrOo7NsQ5jrLgFh0ASqFasu9cljnoEU=@vger.kernel.org X-Gm-Message-State: AOJu0YxtU9dczNS9UuYMNXzkU9j3kdImKts7e3ywp0zx/Z8LyWan2Pth Ju2MZs02XEn4bzRQYff/MSEPn2dVokvOeflihz6Pwl3c45mHPO70+6LRlw5FH2w= X-Gm-Gg: ASbGnctfLfQtUgbC07Gzhc8XAEm/VlRMMRX48WBnngqbsu6Zud3Wmq+7WhnIPYjZYyw yc/dBdsn0zlLwjXVa3QRNGjEWmLjjDfVDV985Ch7HckvkTJhOv2487W1zCfTcx+MDdmoxeVFNv0 +7mOQ4OO3uyhDe5quRIzrRgTL6Trw+ugIs3ELItcNdHGhq1kK7Y92SR5GzNZlatXY0YZqQvP5aF Ly4Ah6rvP0qW1FgzNbn6llfIzmD3DlZw2Q4fokNw9uM9FKqMaC8T9u4HDm2PzCZche178Oi8DBO /sdo1nz5apltjoc0PiMcR9C+e3jZGP9QqaxBf2mQVWFD16Nd9rFEla6l9P7Qy5NEYW9mxO2jNUB 06FSKUJYoYx0mTbkiAIhgB1I= X-Google-Smtp-Source: AGHT+IEGADKws5OxM0lefeqBlHEbBvNpOXvuGA3FZ2E05BjR5O71/V9irAMdAGrDlFjmTztGEFNgKA== X-Received: by 2002:a05:600c:8217:b0:43c:e70d:44f0 with SMTP id 5b1f17b1804b1-441d44c174amr3058605e9.19.1746565526295; Tue, 06 May 2025 14:05:26 -0700 (PDT) Received: from [192.168.0.2] (host-87-8-31-78.retail.telecomitalia.it. [87.8.31.78]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-441d4351abdsm6794475e9.23.2025.05.06.14.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 May 2025 14:05:25 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Tue, 06 May 2025 23:03:50 +0200 Subject: [PATCH v3 4/5] dt-bindings: iio: adc: adi,ad7606: add gain calibration support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250506-wip-bl-ad7606-calibration-v3-4-6eb7b6e72307@baylibre.com> References: <20250506-wip-bl-ad7606-calibration-v3-0-6eb7b6e72307@baylibre.com> In-Reply-To: <20250506-wip-bl-ad7606-calibration-v3-0-6eb7b6e72307@baylibre.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Hennerich , devicetree@vger.kernel.org, Angelo Dureghello , Conor Dooley X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2030; i=adureghello@baylibre.com; h=from:subject:message-id; bh=mK1GoQiX2hS20/yC/1czrPjfc5t1uAwSltJDkMx72Mc=; b=owGbwMvMwCXGf3bn1e/btlsznlZLYsiQqvR4o7TAXEehyJWnqy/bu73gB/+SjYkHbt4VeXWo5 NWX3d38HaUsDGJcDLJiiix1iREmobdDpZQXMM6GmcPKBDKEgYtTACbSys/wV/ztIrf1U7ZaCpR+ mr+poNwt9WX8KplXL309zaMkl4RkWzIybCyIXpOtlGreZpl/NSPFQu25vf7q52/3WMys2Xb44Ht PDgA= X-Developer-Key: i=adureghello@baylibre.com; a=openpgp; fpr=703CDFAD8B573EB00850E38366D1CB9419AF3953 From: Angelo Dureghello Add gain calibration support by a per-channel resistor value. Acked-by: Conor Dooley Signed-off-by: Angelo Dureghello --- .../devicetree/bindings/iio/adc/adi,ad7606.yaml | 29 ++++++++++++++++++= ++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml b/Do= cumentation/devicetree/bindings/iio/adc/adi,ad7606.yaml index 29f12d650442b8ff2eb455306ce59a0e87867ddd..6926f5f090ad6bbbe7bfd9327dc= 5ae17dafcd1fd 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml @@ -204,6 +204,15 @@ patternProperties: considered a bipolar differential channel. Otherwise it is bipol= ar single-ended. =20 + adi,rfilter-ohms: + description: + For ADCs that supports gain calibration, this property must be s= et to + the value of the external RFilter resistor. Proper gain error + correction is applied based on this value. + default: 0 + minimum: 0 + maximum: 64512 + required: - reg - bipolar @@ -256,6 +265,25 @@ allOf: properties: adi,oversampling-ratio-gpios: false =20 + - if: + properties: + compatible: + contains: + enum: + - adi,ad7605-4 + - adi,ad7606-4 + - adi,ad7606-6 + - adi,ad7606-8 + - adi,ad7607 + - adi,ad7608 + - adi,ad7609 + - adi,ad7616 + then: + patternProperties: + "^channel@[0-9a-f]+$": + properties: + adi,rfilter-ohms: false + - if: properties: compatible: @@ -398,6 +426,7 @@ examples: reg =3D <8>; diff-channels =3D <8 8>; bipolar; + adi,rfilter-ohms =3D <2048>; }; =20 }; --=20 2.49.0