Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1500958iog; Sat, 18 Jun 2022 11:08:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tN75ii/f2dA4EJQmYeWxhUfqhPDbnCElUYEdavWwKz9eJbToPNhM4nOrWkrh6CN+/WoJbM X-Received: by 2002:a17:907:97d5:b0:706:76ba:f28f with SMTP id js21-20020a17090797d500b0070676baf28fmr13787963ejc.367.1655575719253; Sat, 18 Jun 2022 11:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655575719; cv=none; d=google.com; s=arc-20160816; b=sSRQ7BR73zhWwr+YqU+TVWrIL/nESYeU+3GNauC7RDFrO1FLOkDvMVIO+7X1Z3Ca2q RhfgBxpVKWJZM6yX20WsXVxwG3M3FDKe1KRfFkXfmHO7zp5f8bM7seCMuITZH089bTea EvI1lWAl6PqimTgL284xOwCG6rDPTWm3nNRLiklrcI9hOJ455/rirDtMwcOtrvQCUqP9 dmMeV/3UbfbUjNRY5UQEZF6mUaJvqPY7GVD9rqtqNGeM6W8ZgPOT/rvdX6z6A04OAVXw 4J1qQftPB+N/w2m4Xu/NcA0KCI3K+1GKvSErqPDNZ4A1z1onnWJ3yq8QEy12sZBrfQSk OOwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bwXRW0udv59jSVZAxPcq3Gl1/CvyS35lCj39RrAlOsU=; b=HoDzU7A5oBwdmExongbh+otyY0mGWjLxn506GUgdBB8BYSJYffdH53vD49gD92f9yn 5oH8Yk5HZK6f4QkjHTgKcqyBbKWAK6PtF2bOS8K5L/KPt9VRyzUUsiBoFoC0ZTrpiGf0 PRR2q/+vy4xHHeYBe0o7A1qfeLlBEls0xlcOMAZyktRdVwmOJ+C2+CFWrey586/KPunc sNm10QxfI2RB3U+fabzWXlDE+lYrKF40S8SKCTl+V76IM5H9NQhNvPEnb4/DF2snaVcp f6RFrGUU/JmnqtHwwLLZ5LD7UMR1QPeFD2K7vfRCqhIIl7wE5V5DzHlp3b4emkzxSRaN SxdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZvzyXwrv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn18-20020a1709070d1200b006fec40443b6si11044763ejc.23.2022.06.18.11.08.11; Sat, 18 Jun 2022 11:08:39 -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=@kernel.org header.s=k20201202 header.b=ZvzyXwrv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236579AbiFRRZb (ORCPT + 99 others); Sat, 18 Jun 2022 13:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231142AbiFRRZ1 (ORCPT ); Sat, 18 Jun 2022 13:25:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97CF915FCF; Sat, 18 Jun 2022 10:25:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2E72B60B55; Sat, 18 Jun 2022 17:25:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BDFDC3411A; Sat, 18 Jun 2022 17:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655573123; bh=Q6g5uQ1LQChmHpAdw8ycq1g5nOknwEdMg8uvJ98h72Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZvzyXwrvKPXWSQe+/ZLoXnYYLU/AiMwKuFeit6PR33u7BeJ6L13LeNnhgryWe6FiT pUMsFNXUUkjUFQvYCOHX+12uRfI8zD56F7t4W+Kq6kpq2fEctqGxnKuZF6sYnje5X5 Ngi/Ima8tTCiQ71eGWhUTybULz4xxFWh0p5Bd9nKA84oRc787Av4G+hc3BjgQ54Wq9 FPJHA6xJB3KLs+Y3kVMmo3lq6UViP+1NXs1NsnGqwyDhBd2OfiwCYONiCV/sLbVR8u 3TxOLHarcLim4y7mS8XHpb3Nmy/STL4WMeLgwR3Eg26QBb9jrTxlmfX8Kmq/dFWs4I lnOVFJvEM6JEQ== Date: Sat, 18 Jun 2022 18:34:40 +0100 From: Jonathan Cameron To: Krzysztof Kozlowski Cc: ChiYuan Huang , Rob Herring , Krzysztof Kozlowski , Lars-Peter Clausen , cy_huang , linux-iio , lkml , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: Add rtq6056 adc support Message-ID: <20220618183440.121365d7@jic23-huawei> In-Reply-To: <279cf4ef-8b41-5e92-73c3-416730038c56@linaro.org> References: <1655458375-30478-1-git-send-email-u0084500@gmail.com> <1655458375-30478-2-git-send-email-u0084500@gmail.com> <7a9d3354-164b-e5e5-936b-95de4c4338f9@linaro.org> <279cf4ef-8b41-5e92-73c3-416730038c56@linaro.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat, 18 Jun 2022 19:00:19 +0200 Krzysztof Kozlowski wrote: > On 18/06/2022 08:50, ChiYuan Huang wrote: > > Krzysztof Kozlowski =E6=96=BC 2022=E5= =B9=B46=E6=9C=8818=E6=97=A5 =E9=80=B1=E5=85=AD =E4=B8=8A=E5=8D=889:45=E5=AF= =AB=E9=81=93=EF=BC=9A =20 > >> > >> On 17/06/2022 02:32, cy_huang wrote: =20 > >>> From: ChiYuan Huang > >>> > >>> Add the documentation for Richtek RTQ6056. > >>> > >>> Signed-off-by: ChiYuan Huang > >>> --- > >>> .../bindings/iio/adc/richtek,rtq6056-adc.yaml | 57 ++++++++++++= ++++++++++ > >>> 1 file changed, 57 insertions(+) > >>> create mode 100644 Documentation/devicetree/bindings/iio/adc/richtek= ,rtq6056-adc.yaml > >>> > >>> diff --git a/Documentation/devicetree/bindings/iio/adc/richtek,rtq605= 6-adc.yaml b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056-adc.= yaml > >>> new file mode 100644 > >>> index 00000000..6b4e0e0 > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056-adc.y= aml > >>> @@ -0,0 +1,57 @@ > >>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > >>> +%YAML 1.2 > >>> +--- > >>> +$id: http://devicetree.org/schemas/iio/adc/richtek,rtq6056-adc.yaml# > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>> + > >>> +title: RTQ6056 Bi-Directional Current and Power Monitor with 16-bit = ADC > >>> + > >>> +maintainers: > >>> + - ChiYuan Huang > >>> + > >>> +description: | > >>> + The RTQ6056 is a high accuracy current-sense monitor with I2C and = SMBus > >>> + interface, and the device provides full information for system by = reading > >>> + out the loading current and power. > >>> + > >>> + The device monitors both of the drops across sense resistor and th= e BUS > >>> + voltage, converts into the current in amperes, and power in watts = through > >>> + internal analog-to-digital converter ADC. The programmable calibra= tion, > >>> + adjustable conversion time, and averaging function are also built = in for > >>> + more design flexibility. > >>> + > >>> + Datasheet is available at > >>> + https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.pdf > >>> + > >>> +properties: > >>> + compatible: > >>> + const: richtek,rtq6056 > >>> + > >>> + reg: > >>> + maxItems: 1 > >>> + > >>> + "#io-channel-cells": > >>> + const: 1 > >>> + > >>> + richtek,shunt-resistor-uohm: =20 > >> > >> Use standard properties, so "-micro-ohms". Drop the unit from > >> description and drop the ref. > >> =20 > > Use richtek.shunt-resistor-micro-ohms? =20 >=20 > Yes. >=20 > > Or the prefix 'richtek,' can be removed? =20 >=20 > No, the vendor prefix must stay. It's a standard generic binding used in a bunch of IIO and hwmon drivers without vendor prefix. Mind you I can't find a definition in any of the top level binding files. Probably wants to be in adc.yaml for IIO. Jonathan =20 >=20 > Best regards, > Krzysztof