From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6220C433F5 for ; Wed, 27 Oct 2021 07:42:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B16E060E05 for ; Wed, 27 Oct 2021 07:42:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240579AbhJ0HpI (ORCPT ); Wed, 27 Oct 2021 03:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240610AbhJ0HpC (ORCPT ); Wed, 27 Oct 2021 03:45:02 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBD99C061348 for ; Wed, 27 Oct 2021 00:42:37 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id m26so1943324pff.3 for ; Wed, 27 Oct 2021 00:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nathanrossi.com; s=google; h=date:message-id:in-reply-to:references:from:to:cc:subject :content-transfer-encoding:mime-version; bh=w0Qt4eFFwAV7HcPbIJckv7BKVj7qNf4ejTN1sCpeG30=; b=UbPwgJTc946dOVq5jTaNYlYCHv0eOuNRiP++AZ8m9Dw3EXuDRR4yuZGJxj4W8vtd1a T/CRlq3JFwu3rv3z1uB5jBge696GLrhwLdoMy/sorRvUz3la4xZGtF+g1gtm6Gb3Spc0 oFSPqEwj6yUONrsFLUHPd/rdFqt++rkdL4WP41QLSK5GOfdf3cOiC4tw71XHWLOTzHId Yuun6XStccBer4daVa3Zqi78BEhf8KqiL4SrHIHbjAmw3c8sDshKcYhk4kGGol7NZYCJ tqjLfOR3lgCfcBZ+hnUoCXtSF3Wo3nRCB0DeIY/rksWIYzZ3VnTNCxIKamHBLFn0te8W 8+fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:in-reply-to:references:from:to :cc:subject:content-transfer-encoding:mime-version; bh=w0Qt4eFFwAV7HcPbIJckv7BKVj7qNf4ejTN1sCpeG30=; b=UQjDS8c9xPvv49auqPpQaM5TrDkNzcmXhg/MKT7AH39N6Bt9si4QPlVuRWCJ+Uul7X mYYTQjul9RwZWDPqdGtBCshqS9gIcDcFLGiOrc4boqpZESJeOuD1wFd9/Z0xzyI89Xbf FZTrtHCTdGPJVV1DBbSF/EWevzscbeNQghDsIKVqW+BKHNf1pmrBqc1gGR0enQZdOuH3 6lpT8Q/neG+rq5CAUkbTVKCJ9+PT5udfS7K/Br9CEpBGmaPqQytrSEYzprEHNlc6R3RB nRzGaGtJa3+INC+NO8J2HSNJwslgoHcUtx2/QQyguy7kRWKh1kTnICLMi55QfDtFwoiO VE0g== X-Gm-Message-State: AOAM5319pd1pE6zpLCuV2+xQYouuyY84W/uiSeNJ2AE5k2/sO2VY3zMC 6H9FcYSrDHGvMEELTG4ogBPpDQ== X-Google-Smtp-Source: ABdhPJx/aRtvNvnPWp91+GXD506pEy8D8VUk2JvB6N0dvhp3lHYeUPvYnB3Zgd9UbBI6KWsYDe3gzQ== X-Received: by 2002:a05:6a00:14c2:b0:47c:2c90:df4f with SMTP id w2-20020a056a0014c200b0047c2c90df4fmr2236201pfu.63.1635320557436; Wed, 27 Oct 2021 00:42:37 -0700 (PDT) Received: from [127.0.1.1] (117-20-69-24.751445.bne.nbn.aussiebb.net. [117.20.69.24]) by smtp.gmail.com with UTF8SMTPSA id p14sm3334498pjb.9.2021.10.27.00.42.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 00:42:37 -0700 (PDT) Date: Wed, 27 Oct 2021 07:42:12 +0000 Message-Id: <20211027074212.690611-2-nathan@nathanrossi.com> In-Reply-To: <20211027074212.690611-0-nathan@nathanrossi.com> References: <20211027074212.690611-0-nathan@nathanrossi.com> From: Nathan Rossi To: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nathan Rossi , Nathan Rossi , Guenter Roeck , Jean Delvare , Rob Herring Subject: [PATCH v2 2/3] dt-bindings: hwmon: ti,ina2xx: Add ti,shunt-gain property Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org From: Nathan Rossi Add a property to the binding to define the selected shunt voltage gain. This specifies the range and accuracy that applies to the shunt circuit. This property only applies to devices that have a selectable shunt voltage range via PGA or ADCRANGE register configuration. Signed-off-by: Nathan Rossi --- Changes in v2: - Added binding for shunt-gain --- Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml index 180573f26c..6a70e2fe9d 100644 --- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml @@ -36,6 +36,12 @@ properties: Shunt resistor value in micro-Ohm. $ref: /schemas/types.yaml#/definitions/uint32 + ti,shunt-gain: + description: + Programmable gain divisor for the shunt voltage accuracy and range. This + property only applies to devices that have configurable PGA/ADCRANGE. + enum: [1, 2, 4, 8] + required: - compatible - reg --- 2.33.0