Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1299852rwb; Wed, 26 Jul 2023 10:17:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPt3/RypbTRMg7vtTaAHUXZOgWhPGcB6UBAkS5iH9eWjUsImAJSxBDB/LWarlUWm1c9dOQ X-Received: by 2002:ac2:4d17:0:b0:4fb:c740:326 with SMTP id r23-20020ac24d17000000b004fbc7400326mr1767658lfi.55.1690391850826; Wed, 26 Jul 2023 10:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690391850; cv=none; d=google.com; s=arc-20160816; b=KIuz7E2Ru76k41tFIeOc7oJLj2DtKktXpoClw6Zx+FbhlA4Adnjs3GG6/2JWy/U9Hi 0Gq/vEvDK/gN3giQNwwQ2lWX5+CJr9r3vZ0g0bD+Evbt79joJClpjOJspPW3JS6liKzf BLc51/4mUc1DiCErbz6x/se9b8Edi+hDnsNJoq4SlDTcjbDgfwAI8KBZ29xKHmw4ASLQ ds5qcp7Q9gY3VZL/O87efb9Ab0qdG7cKE9uBzVg3BxbH4Jf+0r+U6yBZvCUUQ+quhDOO 9b6g47eFazCBe379V5bETZH5fLc5lbGi+MGLnQ4UMfqQYO5ylY5CJEWEk8lpI1GB5PQp woCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=QxZ9c2bp3CuxoSR+aGIpzxjqwq5Taob+y5juqu6C380=; fh=fjzer5h/5RR64N1E+NLQliHekC0z4HQRkG43Z4rSI6g=; b=e20eBelBg4k+3y8a93o/yA/4vV1qrNaKwCaCr5jEk5dFyGepEmW4/xEFRVZUuUX8TN Jl4Sgy/5U6IN/N58EFyIu1sg5yIdljW30NWEBFx2UoJQDdpd4v87T2lUTfUUn1C15I1M oPbG4BHZsZ+mt4jU6bw4QEFSigc1OllVjtZ8QLHUgOGZ2wJkoWj0Z8h3jpukJO0OB+UI HBEKka0W4KTBcGmdvqPBj6OOcVzPPGO3xF1/3lTmgR3nEX/iGQs1U9bCCrE3YLF3eyQN Lar/Y34yfNyFF4PnUbn5fQ9RNGdH0X8OpnAbeYSRtkcCVv3/oFN3+BR0nHBmKD6c6cU3 joKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fHG4e8YE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020aa7d607000000b005222709bc35si5868426edr.197.2023.07.26.10.17.04; Wed, 26 Jul 2023 10:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fHG4e8YE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231940AbjGZQQ1 (ORCPT + 99 others); Wed, 26 Jul 2023 12:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232514AbjGZQQY (ORCPT ); Wed, 26 Jul 2023 12:16:24 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0204726A8; Wed, 26 Jul 2023 09:16:18 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3461163c0b6so37727495ab.2; Wed, 26 Jul 2023 09:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690388178; x=1690992978; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=QxZ9c2bp3CuxoSR+aGIpzxjqwq5Taob+y5juqu6C380=; b=fHG4e8YEkfo2hCaYEp+MWN/Tjr4PJgK6Nz2cnuHcBaUUBFmN4fP0iKYtQfYD/14MU+ WAeAWBQ3YeNRlNb54N/NMP2ONPKMACzn9R3wj5oHe34LgO4vH0U8bI6w+A4NyGyBjPIu 4UwbDUDo49VdxZvzj3IEBjSmUy/Jq1RA2q5nsFBBqVLwDcQuacOHIZvuyqpC6qOw9RDd /522cutveGfKQxSzvQYHDLHF7nc6YB+ER1e0/7TnaetZAQW14n/JG2nBAKJ7ckXvh2Me nsQ68wzT7HOnPhax/eGVttQry52ZH58YhEYA0bc/4Zkz6My5KWDhv2674A2k7nrKUVuL KcEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690388178; x=1690992978; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QxZ9c2bp3CuxoSR+aGIpzxjqwq5Taob+y5juqu6C380=; b=AprYXHSU/N491sIWEnuUSU0P5pwulBrlBnMrd6ZmVHDhtpdgZZ9RiU8pc+yp5dYR2H qON3HxqvnUv1NnLLaTXq7rcB2guH7JkS1T41vfRXG3sz12d0Jir5xczG18Ck0R7PyZRI Xp9+WJp/PkoQ/DjiKPksOpyjN3iqt2TJ4Nbw8mx11f8AGYxNBOcjOx1jf7zRfD2UfmU8 JRjURarzXNfzNwz64RyEnx9cE4N2V62ue6/v6dPQogN7zqE8BvT5Q5UJhqKlEN2qTaRZ mhg+cDu6tkDzUnsZHKZWCkCEv6phvoNDTBFLN4gultfyH8u4SVebvYfdJkX2eoXHrsGX bWJQ== X-Gm-Message-State: ABy/qLbpmkBSI1hUQFZejnmJdiZwM1+SJWGaN/sVgf3OlcOr0K9EmOXJ 8lnNu6MgmHd2qgYIHTuzGxA= X-Received: by 2002:a05:6e02:1050:b0:345:d6d4:f9f3 with SMTP id p16-20020a056e02105000b00345d6d4f9f3mr2124185ilj.17.1690388178145; Wed, 26 Jul 2023 09:16:18 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id u7-20020a92da87000000b00345d00dc3fdsm4512250iln.78.2023.07.26.09.16.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jul 2023 09:16:17 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Wed, 26 Jul 2023 09:16:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 2/2] dt-bindings: hwmon: add renesas,isl28022 Content-Language: en-US To: =?UTF-8?Q?Carsten_Spie=c3=9f?= , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org References: <20230726152235.249569-1-mail@carsten-spiess.de> <20230726152235.249569-3-mail@carsten-spiess.de> From: Guenter Roeck In-Reply-To: <20230726152235.249569-3-mail@carsten-spiess.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/26/23 08:22, Carsten Spieß wrote: > Add dt-bindings for Renesase ISL28022 power monitor. > > Signed-off-by: Carsten Spieß > --- > .../bindings/hwmon/renesas,isl28022.yaml | 67 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 68 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml b/Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml > new file mode 100644 > index 000000000000..5ecf892db269 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml > @@ -0,0 +1,67 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > + > +$id: http://devicetree.org/schemas/hwmon/renesas,isl28022.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas ISL28022 power monitor > + > +maintainers: > + - Carsten Spieß > + > +description: | > + The ISL28022 is a power monitor with I2C interface. The device monitors > + voltage, current via shunt resistor and calculated power. > + > + Datasheets: > + https://www.renesas.com/us/en/www/doc/datasheet/isl28022.pdf > + > +Required properties: > + compatible: > + enum: > + - renesas,isl28022 > + > + reg: > + maxItems: 1 > + > +Optional properties: > + shunt-resistor-micro-ohms: > + description: > + Shunt resistor value in micro-Ohm > + defaults to <0> when not set > + monitoring of current and power not supported when <0> > + Should not default to 0 (disabled). > + shunt-gain: > + description: > + Shunt gain to scale maximal shunt voltage to > + 40mV, 80mV, 160mV, 320mV > + defaults to <8> (320mV) when not set > + enum: [1, 2, 4, 8] > + > + average: > + description: | > + Number of samples to be used to report voltage, current and power values. > + defaults to <0> when not set > + enum: [0, 1, 2, 4, 8, 16, 32, 64, 128] Should not default to 0 (disabled). > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + power-monitor@40 { > + compatible = "renesas,isl28022"; > + reg = <0x10>; > + shunt-resistor-micro-ohms = <8000>; > + shunt-gain = <1>; > + average = <128>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index c61aa688cd11..ec9b97ace50b 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11076,6 +11076,7 @@ ISL28022 HARDWARE MONITORING DRIVER > M: Carsten Spieß > L: linux-hwmon@vger.kernel.org > S: Maintained > +F: Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml > F: Documentation/hwmon/isl28022.rst > F: drivers/hwmon/isl28022.c >