Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1488356iog; Sat, 18 Jun 2022 10:48:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sfr0jj24doQA/e/4NsrliLZx7AeddLZ1MpzRZt2rKnKj6f6ZRyj63RXcqCOhsMkuC8p59B X-Received: by 2002:a05:6402:3893:b0:435:26a1:a52 with SMTP id fd19-20020a056402389300b0043526a10a52mr19064517edb.261.1655574501441; Sat, 18 Jun 2022 10:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655574501; cv=none; d=google.com; s=arc-20160816; b=YJW4ZYFRiWIS5XEnfMxjey/KtnsUtUxnOJfsZBCXZT1bf+Z+XjORs/J8kcmxYuRm8M qooVoY3CVYt6uJ8Oj4Xn15v+A23EouZbDtQ5mvB/QPKZ7M4s1XzMSluAf6p3fGbFjSe5 Bck3y+6aKVusgRfcx3sdPP5rYzTkX5bOuUXQHHWzdSMcYl6HHK/z1yaRf8XsFuLtDtvm haSA201VLFCnCoxu6CKTb3ocJXjbzuf2C3tVcUtYR5DkeIv2kks1lI80e17Q/9mGHy4T DpcrkQXvhmXEF8VxEjS61aiEH2++Jmo4coxg4IZo5BMKeRggbK/8uY3CWImRC+VRdnAh QW9Q== 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=UWdB8pdiESswr1DB7u7lswaKOHmcbRGHBzNCtFpdz9Y=; b=blFTCQStvimL+NuOsE+yGGJVIc0M59oF4rKSapTqinKG6C1WYwgmS7xTvL+wrEviFu x8PDnh1+1Gw+greKuDTXDEhqvM5gsjIeoFDyjs+zi228Cvx4b46SRAyswbMtpLn4P4g1 seytnM2uCwT5P9FiKrSqjmnVa7XPx9KwlgcqBdizbZq8tkokBNFWWFqm9F5WVn04Bjof PVMRmKdgE3qzqHv0DNDxMIuM7y07Tc0g6tuRPaOSnbMb+oVisRk9l4O1Dy8QDKJ31bqU JSyaF/MmD2Xe69EALP8IpO4KQecaB0k3hiTzo3729fxxkXciM6iedrzYukLJ+J2UpmKQ VJCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iO2tqrxn; 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 mh2-20020a170906eb8200b0070ebd0b405dsi4517167ejb.428.2022.06.18.10.47.54; Sat, 18 Jun 2022 10:48:21 -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=iO2tqrxn; 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 S237200AbiFRR0X (ORCPT + 99 others); Sat, 18 Jun 2022 13:26:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiFRR0V (ORCPT ); Sat, 18 Jun 2022 13:26:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A60A915FD3; Sat, 18 Jun 2022 10:26:20 -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 ams.source.kernel.org (Postfix) with ESMTPS id 57D85B80B2E; Sat, 18 Jun 2022 17:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7DFCC3411A; Sat, 18 Jun 2022 17:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655573178; bh=39UnWn6/BLP0wfoTZHT7v2eNKaEICuTAxT3fZ9m190s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iO2tqrxnt4KpaHax6i/wrpdA0yUl51BQfyFFDXdlXie//UgyKsVSCJjCaqC8x0HgZ sr2Ur5peM9Wm3C03A0OlYpiKofzqd7I45exkV2OvIeVDyy01W4XwSOnmgkRmn9bRII AwgTJKMztbMPb3BatWny0rxA7rY5gkc+d9eZnlN77+uvUXkCEUqsGbHlna/Kn/6Bas RgUrjW3P3UYIPEAX9aOP2FzM0UiHrDGV4eu/fCMXf1R9AnU/j7PVnhgolSbE4TuLzU j6Fez52xdS3ZphVn02Jl8Q3Uv14kNvGhN1nS32inVVzbcITZIQDDY8JgMtKnE0r2+x +x9xCE1KYEEBA== Date: Sat, 18 Jun 2022 18:35:34 +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: <20220618183534.576a2277@jic23-huawei> In-Reply-To: <20220618183440.121365d7@jic23-huawei> 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> <20220618183440.121365d7@jic23-huawei> 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 18:34:40 +0100 Jonathan Cameron wrote: > On Sat, 18 Jun 2022 19:00:19 +0200 > Krzysztof Kozlowski wrote: >=20 > > On 18/06/2022 08:50, ChiYuan Huang wrote: =20 > > > 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/richt= ek,rtq6056-adc.yaml > > >>> > > >>> diff --git a/Documentation/devicetree/bindings/iio/adc/richtek,rtq6= 056-adc.yaml b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056-ad= c.yaml > > >>> new file mode 100644 > > >>> index 00000000..6b4e0e0 > > >>> --- /dev/null > > >>> +++ b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056-adc= .yaml > > >>> @@ -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.yam= l# > > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > > >>> + > > >>> +title: RTQ6056 Bi-Directional Current and Power Monitor with 16-bi= t ADC > > >>> + > > >>> +maintainers: > > >>> + - ChiYuan Huang > > >>> + > > >>> +description: | > > >>> + The RTQ6056 is a high accuracy current-sense monitor with I2C an= d SMBus > > >>> + interface, and the device provides full information for system b= y reading > > >>> + out the loading current and power. > > >>> + > > >>> + The device monitors both of the drops across sense resistor and = the BUS > > >>> + voltage, converts into the current in amperes, and power in watt= s through > > >>> + internal analog-to-digital converter ADC. The programmable calib= ration, > > >>> + adjustable conversion time, and averaging function are also buil= t in for > > >>> + more design flexibility. > > >>> + > > >>> + Datasheet is available at > > >>> + https://www.richtek.com/assets/product_file/RTQ6056/DSQ6056-00.p= df > > >>> + > > >>> +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. =20 >=20 > 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 by which I meant to say "bindings" not drivers :) > in any of the top level binding files. Probably wants to be in > adc.yaml for IIO. >=20 > Jonathan >=20 > =20 > >=20 > > Best regards, > > Krzysztof =20 >=20