From patchwork Mon Apr 19 11:50:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 12211707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28547C433B4 for ; Mon, 19 Apr 2021 11:51:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B5BE61165 for ; Mon, 19 Apr 2021 11:51:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238917AbhDSLvg (ORCPT ); Mon, 19 Apr 2021 07:51:36 -0400 Received: from mail-lf1-f47.google.com ([209.85.167.47]:46772 "EHLO mail-lf1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238744AbhDSLvg (ORCPT ); Mon, 19 Apr 2021 07:51:36 -0400 Received: by mail-lf1-f47.google.com with SMTP id 12so55284972lfq.13; Mon, 19 Apr 2021 04:51:06 -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=ZjC6yPawIleJWn4rthBNXTCZYN7M+ry107LxigA6vJA=; b=keaxxQ9aIn7dqPxGRfcUxXktNJytEI3JHXv5nZ8x4JAH9fcBC8CbmTUIsjLP+84+uK +1FyjtG6HsftUkbiw5X7ilYdgIOt/UXM/4XZ4dlIh88P9liAIrb3Ju24xildQKCS7YG1 VQz7F2tUELqX4x4hAQ32JTwLo4h+sxFrTcyC9gbHT6MaHYMx410hZOoRJahZR9+WGRh1 15DQgg7AlP0FkjficvPihuUvnR+FDWcVlnK8bTuuonmEKUD41O0LhhRpcFzYI4J9stu8 EFude3MxVGwqvIyvwarN+nqg7XO5s6tHDCIPttIwUdCQ0On64ZUNU0PTggLK2jl9KHre fPgw== X-Gm-Message-State: AOAM531zGKCc5153ZYqVPglqezDp6+kPW6RxLRfD/3LVMsInpzjc/ePB kFC8jt80oO01vxxZVIJLEQo= X-Google-Smtp-Source: ABdhPJxbR0vRbvKWgmK2tPkaz3AUdij0MGbiIKCd/4exi6/H5HaLDuXV2BlcNaz0m3BvROaUi739fg== X-Received: by 2002:a05:6512:2309:: with SMTP id o9mr12571603lfu.168.1618833065466; Mon, 19 Apr 2021 04:51:05 -0700 (PDT) Received: from localhost.localdomain (dc7vkhyyyyyyyyyyyyydy-3.rev.dnainternet.fi. [2001:14ba:16e2:8300::6]) by smtp.gmail.com with ESMTPSA id q14sm1836075ljj.124.2021.04.19.04.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 04:51:05 -0700 (PDT) Date: Mon, 19 Apr 2021 14:50:58 +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 v8 07/10] dt-bindings: regulator: bd9576 add FET ON-resistance for OCW Message-ID: <7a8ee942001f4b407d33eb7c1e6886936061635d.1618832466.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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