Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1235063pxy; Sun, 15 Aug 2021 14:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX9ihC90NpErCUnroj+vmxWtK5IBiHBkZWYbb9pZ5NGRxrTqYtqw3TIa42Yv1REBjOm1Mp X-Received: by 2002:a92:1944:: with SMTP id e4mr9581401ilm.186.1629063362462; Sun, 15 Aug 2021 14:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629063362; cv=none; d=google.com; s=arc-20160816; b=WnI48IscQVCEAIS1v/qyUZWpHfRVaJ/7BxB1pe2ZJmVRljKe9KYvC+WkwvRosmMDQ5 beMcmWfOH/UfIUeK9lFaNRSXLwE3BaaclO1JbiQbk5+FV2OazexWxkYpLZBsSmrmMMbf 0/mB0wtNs2yokyjgvCa1f2Oqiowg6MHHl0KtdeMaI1FGjWx9zw/nQ5/GdpAt2js5DRc8 /fxhE8nuPmLyMtD3VYILD+BRLL7XM/zsi9KTvbn4F/J2DtiohNwXiSc4ndRh3BVtD8Qq 9N3RT1TH7ND899pQlabbr99622yqExyj+CA8Exkewx/HVyxHt/R/8aP8sKWY8PGESodL PHfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=S0aH1SD7OXnEr9T1hwKbROMxfg2WX5L/OYnwQ2B4t0M=; b=be8aAReMPkDjaGO/xFgIarXC/s/BMsbXVQHqfP22RDSp95gPIM6k4RIOvLS6KsN9SB 2LE78qTDK5akgpxz0zP5vRM8dOrNJDFA03paIQLFxS+wkiE7O0eBay/khC50ozVHQ8z3 VMtExsdw83Vo6eq2fdOwme/nWZkLzDLL9ys/cQ+LSf/7g6UjAOAvxYC0Na2oMo3Y8o8v 7oulKlRFc5TaSwquPSLZqTVUPn+ocO2gktRFM9TFrH3O8wtkrAD8vlTFZHwNk1yZzC2S PgXmipPka8nowgFpXXhl3RufEPKU0B4tNtA4QWpqgSjanH/u7g5WX8ORgMgrzh+6yQmS pRtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mhxCbxP2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b135si6964774iof.27.2021.08.15.14.35.51; Sun, 15 Aug 2021 14:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mhxCbxP2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231506AbhHOVfR (ORCPT + 99 others); Sun, 15 Aug 2021 17:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233192AbhHOVfK (ORCPT ); Sun, 15 Aug 2021 17:35:10 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04295C0612AF; Sun, 15 Aug 2021 14:33:57 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id e14so17139514qkg.3; Sun, 15 Aug 2021 14:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S0aH1SD7OXnEr9T1hwKbROMxfg2WX5L/OYnwQ2B4t0M=; b=mhxCbxP2/8ivK3NagsAl2lanl7es0MROKSGCXez3o3t8qdK0lWyd9sbYY008OlQkdR CTvsqLgIR87Gd05yUtzAp8se3dycC9rdtOwzB7EoE9jpy18XXXbeItGdKW3535ipfi1Y CQeHeoHqgV0ldqQiDg47umx+qqV/WH3NI6lEq2mI1t9gBC3qkqfPEngYOyvbMZ2+WFWI GMC9v8vt3aX2b60uF+NtUd++8MoxNOD5eNLRuLiIi+DifaPzp2jVlhtfDg91WXRHnBG5 xUwx8ZNEq5Un6gWTQDoTNbvMqgZqu2Mg1VfN4OeksR5DwTWEX1Jt9v4lysTbn3s7rcz3 sO9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=S0aH1SD7OXnEr9T1hwKbROMxfg2WX5L/OYnwQ2B4t0M=; b=Yaq4kEjCkl/pKKs6My2aJXjYPRcwHZxdrzRNe8jvVyjjFqnRvTSyD/RH5z29X7f+N9 TYQ2WpC8gIEDv5q9vKjVqgIHJFv2FBRVyU0cVnsyErAkDBnrVyfAz+hvsUB2gBYC52ug F/HvjfLGyRJW0ZuwOMXCXFIjYACY35adGEjh1nOlXFxVSvmtZeuK9vjuW/9ssmFqdz5C 5NJwzR6JeNPB+eHmDo8M//u4HUW6vcP6cmuBgvShFPr2pux+7b3AH4BhL3MabOgPGsZe c/+vh22xpgap0glEWrWoErzZvh2iwu85qQfj4hHRQnI/aQOQY9HYdthWC+bB3dQiaA1f oTeA== X-Gm-Message-State: AOAM530Pgs87qwnahztnr49foJJPu8FtwvdxuXEG3q+kiKxYzkBQKPdc gjEIInqcITVJRT4VI4AmRuk= X-Received: by 2002:a05:620a:702:: with SMTP id 2mr6231519qkc.7.1629063236223; Sun, 15 Aug 2021 14:33:56 -0700 (PDT) Received: from shaak.xiphos.ca (198-48-202-89.cpe.pppoe.ca. [198.48.202.89]) by smtp.gmail.com with ESMTPSA id u19sm3870988qtx.48.2021.08.15.14.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Aug 2021 14:33:55 -0700 (PDT) From: Liam Beguin To: liambeguin@gmail.com, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, charles-antoine.couret@essensium.com, Nuno.Sa@analog.com Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org Subject: [PATCH v6 4/5] dt-bindings: iio: adc: ad7949: update voltage reference bindings Date: Sun, 15 Aug 2021 17:33:08 -0400 Message-Id: <20210815213309.2847711-5-liambeguin@gmail.com> X-Mailer: git-send-email 2.32.0.452.g940fe202adcb In-Reply-To: <20210815213309.2847711-1-liambeguin@gmail.com> References: <20210815213309.2847711-1-liambeguin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liam Beguin Update bindings to describe support for buffered and unbuffered external voltage references selection, and add adi,internal-ref-microvolt for internal voltage reference selection. Signed-off-by: Liam Beguin --- .../bindings/iio/adc/adi,ad7949.yaml | 51 +++++++++++++++++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml index 9b56bd4d5510..0b10ed5f74ae 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml @@ -26,19 +26,43 @@ properties: reg: maxItems: 1 + vrefin-supply: + description: + Buffered ADC reference voltage supply. + vref-supply: description: - ADC reference voltage supply + Unbuffered ADC reference voltage supply. + + adi,internal-ref-microvolt: + description: | + Internal reference voltage selection in microvolts. + + If no internal reference is specified, the channel will default to the + external reference defined by vrefin-supply (or vref-supply). + vrefin-supply will take precedence over vref-supply if both are defined. + + If no supplies are defined, the reference selection will default to + 4096mV internal reference. + + enum: [2500000, 4096000] + default: 4096000 + spi-max-frequency: true - "#io-channel-cells": + '#io-channel-cells': const: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + required: - compatible - reg - - vref-supply additionalProperties: false @@ -49,9 +73,30 @@ examples: #size-cells = <0>; adc@0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "adi,ad7949"; reg = <0>; vref-supply = <&vdd_supply>; }; + + adc@1 { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "adi,ad7949"; + reg = <1>; + vrefin-supply = <&vdd_supply>; + }; + + adc@2 { + #address-cells = <1>; + #size-cells = <0>; + + compatible = "adi,ad7949"; + reg = <2>; + adi,internal-ref-microvolt = <4096000>; + }; }; ... -- 2.32.0.452.g940fe202adcb