Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1957671iog; Sun, 19 Jun 2022 03:30:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/nSWHG1/CW4uwKJXuWkcShPqNQosZGGDzHxyYByO8xDBTm4cyUqgBkZ+UD9x3kRjXS5tV X-Received: by 2002:a17:902:8d98:b0:168:a310:3ea6 with SMTP id v24-20020a1709028d9800b00168a3103ea6mr18293410plo.9.1655634649106; Sun, 19 Jun 2022 03:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655634649; cv=none; d=google.com; s=arc-20160816; b=A3gglkpy85MA8Fe69v3cwghANeN1XImxEj/sIEaQlAPvfK8Sh0EH2zypSA1fzI9yhj FBcOA2gPERPR6+luhaUB+ayK6Sp9eo8lkhstaEooe2SxSBob3pFto+KAEDonblP0uQ5s CFy29tWb78sZcJs+Yy51yEBJeZ5d691fkKBC45c4pIGQ2m9J/xUgotWQxQTMlqh7Tl/B RnhuiEVhdzqUV6Y2ixo7EjwCV7VIzn8y8+Q/yhjIjv4lfD0GiEalsI7KvwkPfvaNXcYX M0C+h8yrg9VLzQViTMranTs5MW31V7BkccILwZ3wWScPa+1u/tgdZNqwxkg3NegYAwZF 0DLA== 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:dkim-signature; bh=LMKugXzUXUVai16DUUHT/I5mEbxAHSqoLaxIXVOrxyM=; b=oejUm6XyEEQoAlFU2ZhC2Jgy0ut2J2CFfyTKm/iadGdvxC1UiLnFXLZeNidGsGDFtR PKohZQBfTDyYpPNMg7hE3dGk3DnNedJC6J7LJVGu2aBB/tiPRrQbhpGdu/BVxOPYfoew DT+ryu9SqEBfGE4QrdPNI1fPVU4u3lwMXET+dNIivzPCVh2QuGr+SQPS/qSZQbdEKc3W e8hjoMe7N0P38visK4dGbLXkaMMuB7L+CWSPRwtxWGc4d6ZgQ07Or/UQb0gLuvkNBMWH PKm0vVC1fbNzFcnomo7FBUgffINJ3pUq6mrKWOVMr7jtr6kKNAAAGQHIk9cug5Y8th7P 5UdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ypl413ms; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a633e0b000000b0040c9268b3e8si3657354pga.870.2022.06.19.03.30.36; Sun, 19 Jun 2022 03:30:49 -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=@linaro.org header.s=google header.b=Ypl413ms; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232285AbiFSK0n (ORCPT + 99 others); Sun, 19 Jun 2022 06:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiFSK0l (ORCPT ); Sun, 19 Jun 2022 06:26:41 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07ADAA182 for ; Sun, 19 Jun 2022 03:26:40 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id e2so485917edv.3 for ; Sun, 19 Jun 2022 03:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=LMKugXzUXUVai16DUUHT/I5mEbxAHSqoLaxIXVOrxyM=; b=Ypl413ms1X3cg1uTpkvLxPrRHtXYDvFbTbPJh/pW9waclQ2x305G/8XKTfmfZGTg4p ZkF1fjXlZrNFqa4E80I99muKcunDkKfdT1MfOlQO9ewFp2B+xQFOv29o4Oqe1I0EQ11g KHcGSGRlJWXS+Xr07UR3KWzgMbgWfmavvlTWyYZynsiowfHtEDdY+G37PXqAQnJLo9Dx gjsO8CeG20WIliM4devWlCjnUKTtdmKfIu5XoWA43+ePILFMOaVa5bX8UMnqTCrXtsFE 5eMlI9J0mS9URDqR4Fh07BovNViKsoI0w4JT+h+cQu0hKJM7rR+kPDMWFBioXR9h124D PMWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=LMKugXzUXUVai16DUUHT/I5mEbxAHSqoLaxIXVOrxyM=; b=aAsP43ar5yJLHJh8nFHHbbR3Kw/RM798ra/YfxoTQOfDVhF2JGJRdhbUdiNVf2mEtp 3R+vIm3OOZn3ffF9h28sjshM1PLAfkOJGiSv0Zmd9ANRuIJRc1SO3r/ZPmitaU6S4I1b taksgeBGvvtYhkLPknQta1Ayemy614ho+4UzpM4hwkudS1UhPP8JGnCtaaRUNFlAk2MY VxHFklU3nATxte/RNYE5VtRztcbJAbAoT40Z6joVIxVP4nDSywEfYv86GY1g/0P9fy4B 4vCLN8Qm3pg0Xi28VAG4mZyO4wtm6pWq6U618TvSNV3MdC0CXBbQfCJBE1kAmUCwjM8u 50ZQ== X-Gm-Message-State: AJIora93oT4o5ZlwtMxmVkkJHNEVrDJqUsRg2NivMTgF6e/Mg41zsj14 TKlTfHKymxk9BGQImtUop6kQUg== X-Received: by 2002:a05:6402:5408:b0:435:60fa:5017 with SMTP id ev8-20020a056402540800b0043560fa5017mr13936929edb.223.1655634398488; Sun, 19 Jun 2022 03:26:38 -0700 (PDT) Received: from [192.168.0.206] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id la5-20020a170907780500b006f3ef214de7sm4434553ejc.77.2022.06.19.03.26.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Jun 2022 03:26:38 -0700 (PDT) Message-ID: Date: Sun, 19 Jun 2022 12:26:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: Add rtq6056 adc support Content-Language: en-US To: Jonathan Cameron Cc: ChiYuan Huang , Rob Herring , Krzysztof Kozlowski , Lars-Peter Clausen , cy_huang , linux-iio , lkml , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 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> From: Krzysztof Kozlowski In-Reply-To: <20220618183440.121365d7@jic23-huawei> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 18/06/2022 19:34, Jonathan Cameron wrote: > On Sat, 18 Jun 2022 19:00:19 +0200 > Krzysztof Kozlowski wrote: > >> On 18/06/2022 08:50, ChiYuan Huang wrote: >>> Krzysztof Kozlowski 於 2022年6月18日 週六 上午9:45寫道: >>>> >>>> On 17/06/2022 02:32, cy_huang wrote: >>>>> 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,rtq6056-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.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.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 the BUS >>>>> + voltage, converts into the current in amperes, and power in watts through >>>>> + internal analog-to-digital converter ADC. The programmable calibration, >>>>> + 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: >>>> >>>> Use standard properties, so "-micro-ohms". Drop the unit from >>>> description and drop the ref. >>>> >>> Use richtek.shunt-resistor-micro-ohms? >> >> Yes. >> >>> Or the prefix 'richtek,' can be removed? >> >> 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. Indeed, thanks for correcting me. It should be just "shunt-resistor-micro-ohms" then. Best regards, Krzysztof