Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp391235iog; Wed, 29 Jun 2022 02:20:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1lwlu+oimbWwVhfkAu3WaCCyUZ7U9Ge1z9r3fdA2tkIjffOnD79QMJApie50Qczv29+/g X-Received: by 2002:a17:906:7482:b0:722:edf9:e72f with SMTP id e2-20020a170906748200b00722edf9e72fmr2336534ejl.92.1656494425140; Wed, 29 Jun 2022 02:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656494425; cv=none; d=google.com; s=arc-20160816; b=rIw7FSswn9K2Nr88i1Vh09tqCqYScJh0Umf6ibzSDZHItBaIkCuKUAHw+u1Wj458xk azZ71KtDPNOksp1HP0A1GDrJk2vBBk3+rDNvaltnzJtTp+SmCedYw8ZcGR8bTh7InBig nZuh3/+CcRylA1g1nq9DT8txwG4wqvWbFC/MIGdepG7Dv182jEroAXKtMlRt7Dsij7It 4Yrdt3BVg+ucOLqvvONmJrPSuyJbkml1ix7+doavhOEmJI1+3ncVJ5fwkzwqXsMBt2I6 yvZjKu+SP1QugtPt2Ler4CAM3YKsPr7Bh5fTXQf2e/sHiBP8N9hiC3PFowxXngMcBEJU S1fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ey+1hPLWMzu03pOiFsT4/+TTM+sA5fHRsZxt3a18l5I=; b=R6HeXCytirzCpRh002IMBvllKBK4fuilhqv8dGpU1Xp7CXHLE+bLnX07ozc28xVJ1K HvxlZrFPNW6iTuYuHpArQw4v2hObz1zjs+Gi2ysXLCg+dnnTYn6OSOZdrEr+UHlnSeEW LlpS0RbjflSnpUjJKE2JeYJWyWAjxb6kG7s/buhhBMQfW8OufQx0nRnPR7umzRF2jbd+ K8t4CYfuTkZihp3Z+AAoMMNyruZN6aJDh6pzCo79DPk7EUXzsL44sJXQ/+ZNfOAhXPvL JpcjRyp0wfAZHSAfHVfFBuga6tm3OGbuf1NfLmJNBYc4ppfES1aKmH4mY0wOjRTg6xjS RAPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ITFrgF4t; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a1709064bc600b007122fe7f49csi2143417ejv.424.2022.06.29.02.19.58; Wed, 29 Jun 2022 02:20:25 -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=20210112 header.b=ITFrgF4t; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbiF2I7p (ORCPT + 99 others); Wed, 29 Jun 2022 04:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232356AbiF2I7o (ORCPT ); Wed, 29 Jun 2022 04:59:44 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40EE924956; Wed, 29 Jun 2022 01:59:43 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id g26so31171455ejb.5; Wed, 29 Jun 2022 01:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ey+1hPLWMzu03pOiFsT4/+TTM+sA5fHRsZxt3a18l5I=; b=ITFrgF4tOWPEhvarmRB5prRer9hEUz+UyNGFHcwfTGVb8Iu9ut4cyieJU0oum2eSvM Z7BNbjCLM32ciGEqgOGAt7TvZQjazxOM+YygBbgwnjhjYYYJ2Wx9VoLysU1iJ94izIR6 Bxw0IUWp6KLy/n7RGqg926kFq6jj29j3PJaXlUIotrrJ61Xf5csNYpp03WfWmkS0xDco G9WP5jKLZnsQRv3rm4KWk2n9Hu+SwCfuT700IElUw1emp0EzBS9CIQIZm++CAZOvUm+f CJWFt8Y0z0e5g5Jv90vt0p3lNiwAnXhlj5S9VWNfWOVvsoIO4LRu6jEhJxjB2suMC1Vh 9Meg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ey+1hPLWMzu03pOiFsT4/+TTM+sA5fHRsZxt3a18l5I=; b=RgxoT/J5sEJb500PAC9PnD7wGOeECmuR0QB+uN80CALXWxDGSJRaY7i+w7KPl/UuE2 XDj5fk0F7RPaPiTNq0/szGD/CBU2dMDP8v/RfYOI4bmrS0IEwllxv8dVNiJHHOXkmF+/ dpHdWMZql5KGSR7MypGhNCdr1q/2weh+X2l9mAP9AzFUYnFul5afgPT9TLM4XBbu4hAk rvpZfBmVZT5s2atBimiM8a6YSHkPuHCXTukews7lq+88vCMkkeTqdZC1wvlNADiT4i0w BUDCC9u2b8x2MeFw6+3Zf1BZgHYpZafd/C6iCq4XHbTXUjQYvmQM7ZuwIkUOc18nTHKs HEoQ== X-Gm-Message-State: AJIora/G6GuOY8cekN6tMJbHOEHqxwy+yI8UURBvFgToH2Pjp+/ZoY+I HAvj9tmwsgdc8mTfzJiVnNoTwle1I5ftsPccOM4= X-Received: by 2002:a17:907:72d0:b0:726:ec43:9bb with SMTP id du16-20020a17090772d000b00726ec4309bbmr2032289ejc.533.1656493181431; Wed, 29 Jun 2022 01:59:41 -0700 (PDT) MIME-Version: 1.0 References: <1656469212-12717-1-git-send-email-u0084500@gmail.com> <1656469212-12717-2-git-send-email-u0084500@gmail.com> In-Reply-To: From: ChiYuan Huang Date: Wed, 29 Jun 2022 16:59:30 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: iio: adc: Add rtq6056 adc support To: Krzysztof Kozlowski Cc: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Lars-Peter Clausen , cy_huang , linux-iio , lkml , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 Krzysztof Kozlowski =E6=96=BC 2022=E5=B9= =B46=E6=9C=8829=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=884:25=E5=AF=AB= =E9=81=93=EF=BC=9A > > On 29/06/2022 04:20, cy_huang wrote: > > From: ChiYuan Huang > > > > Add the documentation for Richtek rtq6056. > > > > Signed-off-by: ChiYuan Huang > > --- > > Since v2 > > - Change the resistor property name to be generic 'shunt-resistor-micro= -ohms'. > > > > --- > > .../bindings/iio/adc/richtek,rtq6056.yaml | 56 ++++++++++++++= ++++++++ > > 1 file changed, 56 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/adc/richtek,r= tq6056.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.= yaml b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml > > new file mode 100644 > > index 00000000..fe45d8b > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/adc/richtek,rtq6056.yaml > > @@ -0,0 +1,56 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/adc/richtek,rtq6056.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: RTQ6056 Bi-Directional Current and Power Monitor with 16-bit AD= C > > + > > +maintainers: > > + - ChiYuan Huang > > + > > +description: | > > + The RTQ6056 is a high accuracy current-sense monitor with I2C and SM= Bus > > + interface, and the device provides full information for system by re= ading > > + 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 watts th= rough > > + internal analog-to-digital converter ADC. The programmable calibrati= on, > > + 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 > > + > > + shunt-resistor-micro-ohms: > > + description: Shunt IN+/IN- sensing node resistor > > + > > +required: > > + - compatible > > + - reg > > + - "#io-channel-cells" > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + i2c { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + rtq6056@40 { > > This was not fixed. > Sorry, too many changes to check. I really forgot it. > > Best regards, > Krzysztof