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 X-Spam-Level: X-Spam-Status: No, score=-15.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 5D41BC433FE for ; Tue, 8 Dec 2020 00:16:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 259A623A1D for ; Tue, 8 Dec 2020 00:16:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbgLHAQQ (ORCPT ); Mon, 7 Dec 2020 19:16:16 -0500 Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:39367 "EHLO gproxy10-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727330AbgLHAQQ (ORCPT ); Mon, 7 Dec 2020 19:16:16 -0500 Received: from cmgw15.unifiedlayer.com (unknown [10.9.0.15]) by gproxy10.mail.unifiedlayer.com (Postfix) with ESMTP id 63C36140759 for ; Mon, 7 Dec 2020 17:15:34 -0700 (MST) Received: from bh-25.webhostbox.net ([208.91.199.152]) by cmsmtp with ESMTP id mQfFk6jjjh41lmQfGk8kb4; Mon, 07 Dec 2020 17:15:34 -0700 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.3 cv=O5cXQi1W c=1 sm=1 tr=0 a=QNED+QcLUkoL9qulTODnwA==:117 a=2cfIYNtKkjgZNaOwnGXpGw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=kj9zAlcOel0A:10:nop_charset_1 a=zTNgK-yGK50A:10:nop_rcvd_month_year a=evQFzbml-YQA:10:endurance_base64_authed_username_1 a=VwQbUJbxAAAA:8 a=gEfo2CItAAAA:8 a=sozttTNsAAAA:8 a=_jlGtV7tAAAA:8 a=wkPXI5Rq_EWXVTfHbnkA:9 a=CjuIK1q_8ugA:10:nop_charset_2 a=AjGcO6oz07-iQ99wixmX:22 a=sptkURWiP4Gy88Gu7hUp:22 a=aeg5Gbbo78KNqacMgKqU:22 a=nlm17XC03S6CtCLSeiRr:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ncp9CpIxDmtSPeBusVYnYvkP37GO1Y0RnBZMGD5zCRU=; b=ABEQCIcaebv5FWBrXLeGAaii/A 5+zy3psNbMCq88Iu1L95JjnRyr5Rqo8YwNegpYiSaCHwg73xSfba9n/aztUIRseAPoYTocHCYTuU+ SRZgapo63xacABwuFNb37Tq6Yp4th5BUBsKZ5m8k/Pkh2lxeIVH5kxyNScUAolvJRuyuBkrGVtVrc ms1uuAUW2wrGhhX4m02X0ZhTJ+u53svMW1fflKOC0CouXGI5ElONFeP920qLPWq6yFFKlEPl5jbtW fN3jDuLy8255w467B7PkZI0vLqQpX/se3uHI7p0Jb5nhF1CXn4hIuEUybxWLP2KtM6ncvSZTg8F7S 2I95eVXg==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:33510 helo=localhost) by bh-25.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kmQfF-001tGq-6q; Tue, 08 Dec 2020 00:15:33 +0000 Date: Mon, 7 Dec 2020 16:15:32 -0800 From: Guenter Roeck To: Krzysztof Kozlowski Cc: Jean Delvare , Rob Herring , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Linus Walleij , Kun Yi Subject: Re: [PATCH 1/4] dt-bindings: hwmon: convert TI INA2xx bindings to dt-schema Message-ID: <20201208001532.GA59098@roeck-us.net> References: <20201117220807.208747-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117220807.208747-1-krzk@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-BWhitelist: no X-Source-IP: 108.223.40.66 X-Source-L: No X-Exim-ID: 1kmQfF-001tGq-6q X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 108-223-40-66.lightspeed.sntcca.sbcglobal.net (localhost) [108.223.40.66]:33510 X-Source-Auth: guenter@roeck-us.net X-Email-Count: 5 X-Source-Cap: cm9lY2s7YWN0aXZzdG07YmgtMjUud2ViaG9zdGJveC5uZXQ= X-Local-Domain: yes Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Nov 17, 2020 at 11:08:04PM +0100, Krzysztof Kozlowski wrote: > Convert the TI INA2xx bindings to dt-schema. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Rob Herring Applied. Thanks, Guenter > --- > .../devicetree/bindings/hwmon/ina2xx.txt | 24 -------- > .../devicetree/bindings/hwmon/ti,ina2xx.yaml | 55 +++++++++++++++++++ > MAINTAINERS | 2 +- > 3 files changed, 56 insertions(+), 25 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/hwmon/ina2xx.txt > create mode 100644 Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/ina2xx.txt b/Documentation/devicetree/bindings/hwmon/ina2xx.txt > deleted file mode 100644 > index 02af0d94e921..000000000000 > --- a/Documentation/devicetree/bindings/hwmon/ina2xx.txt > +++ /dev/null > @@ -1,24 +0,0 @@ > -ina2xx properties > - > -Required properties: > -- compatible: Must be one of the following: > - - "ti,ina209" for ina209 > - - "ti,ina219" for ina219 > - - "ti,ina220" for ina220 > - - "ti,ina226" for ina226 > - - "ti,ina230" for ina230 > - - "ti,ina231" for ina231 > -- reg: I2C address > - > -Optional properties: > - > -- shunt-resistor > - Shunt resistor value in micro-Ohm > - > -Example: > - > -ina220@44 { > - compatible = "ti,ina220"; > - reg = <0x44>; > - shunt-resistor = <1000>; > -}; > diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > new file mode 100644 > index 000000000000..6f0443322a36 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > + > +$id: http://devicetree.org/schemas/hwmon/ti,ina2xx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments INA209 family of power/voltage monitors > + > +maintainers: > + - Krzysztof Kozlowski > + > +description: | > + The INA209 is a high-side current shunt and power monitor with > + an I2C interface. > + > + Datasheets: > + https://www.ti.com/product/INA209 > + > +properties: > + compatible: > + enum: > + - ti,ina209 > + - ti,ina219 > + - ti,ina220 > + - ti,ina226 > + - ti,ina230 > + - ti,ina231 > + > + reg: > + maxItems: 1 > + > + shunt-resistor: > + description: > + Shunt resistor value in micro-Ohm. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + power-sensor@44 { > + compatible = "ti,ina220"; > + reg = <0x44>; > + shunt-resistor = <1000>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 0818a5b03832..e9ba2e555679 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -8669,7 +8669,7 @@ INA209 HARDWARE MONITOR DRIVER > M: Guenter Roeck > L: linux-hwmon@vger.kernel.org > S: Maintained > -F: Documentation/devicetree/bindings/hwmon/ina2xx.txt > +F: Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml > F: Documentation/hwmon/ina209.rst > F: drivers/hwmon/ina209.c >