From patchwork Wed Apr 14 05:59:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 1466009 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FKsHV6dHGz9sVv for ; Wed, 14 Apr 2021 15:59:18 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348403AbhDNF7g (ORCPT ); Wed, 14 Apr 2021 01:59:36 -0400 Received: from mail-lf1-f41.google.com ([209.85.167.41]:38547 "EHLO mail-lf1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347993AbhDNF7g (ORCPT ); Wed, 14 Apr 2021 01:59:36 -0400 Received: by mail-lf1-f41.google.com with SMTP id j18so31236997lfg.5; Tue, 13 Apr 2021 22:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=b9R0s+EDMZLI0RnpDaFC1Cm/LjqCeBrqvvjiWyeaZ0Q=; b=DqMDP66jtgYKubRjwk0jkED14xHASA7rZLUdlzmykHsaCQ4/9f7bDl/BrWO+SXxoy6 VrHer0ZsWWLhJ6YAUJ5IlTbu48hmC9WpjaD/ClYcYjlYu/OuaMvqVHhgeUQmvZAqT//U wEA0sPSPshPhYgOJCQL0m2sGzFxe0sACKnhBRIvcibCqJJkApEL+aweuOTF6wAh2M3W5 QSfyo+kz7L02kxQ+M2DCJOz+45rTbwQvEaAIil0mzSIES1MyqlUNGHp7FcmXmXptlfpd nt2KO/yT7NyojbyvLRAtpUY6DB1bQf5TDPK3xTaEvu34SlBzmJzmELqZNWdgRMG2KHDb SSgA== X-Gm-Message-State: AOAM5335ptLxD1H4WxPPD1JN+OeW+WdXnt2O9ATTVc2w2fu7T+4MYQny 0Tg9gdUmL1WNBwUnto3COlo= X-Google-Smtp-Source: ABdhPJxCMFmJ9dEFPHovWAQeL7a4JthzzOkgk7X6gNAQ6VGP4KDAs9T4eGQV+4wVA15L46ITPje/xg== X-Received: by 2002:ac2:504f:: with SMTP id a15mr7900641lfm.176.1618379953904; Tue, 13 Apr 2021 22:59:13 -0700 (PDT) Received: from localhost.localdomain (dc7vkhyyyyyyyyyyyyydy-3.rev.dnainternet.fi. [2001:14ba:16e2:8300::6]) by smtp.gmail.com with ESMTPSA id d8sm84581lfq.58.2021.04.13.22.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 22:59:13 -0700 (PDT) Date: Wed, 14 Apr 2021 08:59:07 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Mark Brown , Kees Cook , Andy Shevchenko , Zhang Rui , Guenter Roeck , "agross@kernel.org" , "devicetree@vger.kernel.org" , linux-power , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "bjorn.andersson@linaro.org" , "lgirdwood@gmail.com" , "robh+dt@kernel.org" Subject: [PATCH v7 6/9] dt-bindings: regulator: bd9576 add FET ON-resistance for OCW Message-ID: <5213499b034d3b84c0144665287be0a926d089e8.1618377272.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org BD9576MUF provides over-current protection and detection. Current is measured as voltage loss over external FET. Allow specifying FET's on resistance so current monitoring limits can be converted to voltages. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- v5 onwards: - No changes v4: - Fixed the description indentiation --- .../bindings/regulator/rohm,bd9576-regulator.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml b/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml index b6515a0cee62..7cb74cc8c5d9 100644 --- a/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/rohm,bd9576-regulator.yaml @@ -27,6 +27,12 @@ patternProperties: Properties for single regulator. $ref: "regulator.yaml#" + properties: + rohm,ocw-fet-ron-micro-ohms: + description: | + External FET's ON-resistance. Required if VoutS1 OCP/OCW is + to be set. + required: - regulator-name