Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1416003iog; Sat, 18 Jun 2022 08:51:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uX60T+/i7jsybdmvYkQk9IM8nedZwTJ1Dy44h0PDY6dvJTs0s8bjbVMQwr9xATGxsiEA+3 X-Received: by 2002:a17:90b:1e0e:b0:1ea:89a5:87d9 with SMTP id pg14-20020a17090b1e0e00b001ea89a587d9mr16845101pjb.81.1655567471889; Sat, 18 Jun 2022 08:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655567471; cv=none; d=google.com; s=arc-20160816; b=S3tpzmWbyIOdXtnsmJr3tGRch/kBdI+H19PS1mj+uGAdS4oLcYsxuKNpWRCaN62uQf G69A/pi8fWKz7OBZZ6Wzl+wak6ZvVRyWQ0FC1PtUS/XNUdWfTWsFZrDrP5NQe6U0w6Hw JfUU0wkMAET02yv15C0mXTPcX16uTV1kmJPJHNmnETYvhzjhVJjKKZITVEfSztpHFwgm ngh/a67sNOLE29tRuBn3TCOnxDob5KS1zZFoeJOoh9fnwIhRHEFVtmTCchacmsSp4ayH PwEkI/+HnHHOlUEwKWLWqa8i2des/Af9n4zxGMlOEXFuDovYht95skR9scIQHBCdG9DY 0Epw== 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=gMtnjhjn8c+7JZqN1PoIhW0s0UbRV0nGTSe1Arv5NuE=; b=bQK1GDXnfh/2ukl3cUalKpebWeGp0B/6/5lICAG3KtpdmaZJ8AFnI1TKMy22DOtjZT oiUyXHSTwj53jF7h98KlBoZoQPrfuohdf3w8BBWczO/y5msYnRePwAu70xuXswCf9xYv tvFp/MBfQ1NsIm1NIb8vRqLqw6ZAcfEwK6Q3WpLRtJfWNu7jm+8k1tv2h4kIASDINRJs Lt8tnJc9lrnnIlJzNzIexeS28/kbptH/WNgJD7hFei+fffGfjMFaA80is0AIxS69s0lP vPZHDKdeFxBYgTUZL4t+UH/kf95q/aQDRS1tMtcsyzrVrj2kmqJTGgoAcnK6OAAtEF3h 5GJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dSnD0FK6; 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 l7-20020a170902f68700b0016360b6cec1si11235286plg.230.2022.06.18.08.51.00; Sat, 18 Jun 2022 08:51:11 -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=dSnD0FK6; 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 S235754AbiFRPjO (ORCPT + 99 others); Sat, 18 Jun 2022 11:39:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbiFRPjL (ORCPT ); Sat, 18 Jun 2022 11:39:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D95FFDEAD; Sat, 18 Jun 2022 08:39:07 -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 7543060B1E; Sat, 18 Jun 2022 15:39:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDC6AC3411A; Sat, 18 Jun 2022 15:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655566746; bh=McuYUPbcTogh0Yrn7FSYihqEAcvdIVNBBIDilpwKOpE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dSnD0FK661SnooSn7Z/CDSOX3C3M6TplRlQ+BdTAy3J5UoTF1ZJhfy0liHIx9LLKJ MmOBy6sUSheDILDX/FclyJ2ODmVSkJuDFnMF9EcDwWOK0MMT7rSQl26Krt7XqdvqGH 1ULRRVdc6QRCMSLjBZYYrmNqffXtEeuxOm9uPjF2u1F1Vqa3EQc2N58FHFgSv/NvSE 0gBc87cgiNXnUcjPnNOILCd+NQ1oVQDTlP3VULDcsL6ZpPWAwY2t8+39JcivJuquhJ vVRYNmRbCwYBRuOwqx3C78E8ZqVCAyRz5L7XP3svJYw32ZsjUiJbfJih8B78n6II/1 HYiaISZCY5RRQ== Date: Sat, 18 Jun 2022 16:48:20 +0100 From: Jonathan Cameron To: ChiaEn Wu Cc: lars@metafoo.de, matthias.bgg@gmail.com, lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, szunichen@gmail.com, ChiaEn Wu Subject: Re: [PATCH v2 07/15] Documentation: ABI: testing: mt6370: Add ADC sysfs guideline Message-ID: <20220618164820.2eeb8ae8@jic23-huawei> In-Reply-To: <20220613111146.25221-8-peterwu.pub@gmail.com> References: <20220613111146.25221-1-peterwu.pub@gmail.com> <20220613111146.25221-8-peterwu.pub@gmail.com> 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=US-ASCII Content-Transfer-Encoding: 7bit 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 Mon, 13 Jun 2022 19:11:38 +0800 ChiaEn Wu wrote: > From: ChiaEn Wu > > Add ABI documentation for mt6370 non-standard ADC sysfs interfaces. > > Signed-off-by: ChiaEn Wu > --- > .../ABI/testing/sysfs-bus-iio-adc-mt6370 | 36 +++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-mt6370 > > diff --git a/Documentation/ABI/testing/sysfs-bus-iio-adc-mt6370 b/Documentation/ABI/testing/sysfs-bus-iio-adc-mt6370 > new file mode 100644 > index 000000000000..039b3381176a > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-iio-adc-mt6370 > @@ -0,0 +1,36 @@ > +What: /sys/bus/iio/devices/iio:deviceX/in_voltage0_raw Unfortunately the kernel documentation build scripts do no support duplicating standard ABI for particular devices so as to provide more information. Hence you can't have anything in this file. > +KernelVersion: 5.18 > +Contact: chiaen_wu@richtek.com > +Description: > + Indicated MT6370 VBUS ADC with lower accuracy(+-75mA) Curious though, voltage with a mA accuracy range? This scale should be presented directly to userspace anyway so no need for this doc. > + higher measure range(1~22V) > + Calculating with scale returns voltage in uV No. All channels return in mV. That's the ABI requirement as in sysfs-bus-iio and we cannot vary if for particular drivers. If we did no generic tooling would work. > + > +What: /sys/bus/iio/devices/iio:deviceX/in_voltage1_raw > +KernelVersion: 5.18 > +Contact: chiaen_wu@richtek.com > +Description: > + Indicated MT6370 VBUS ADC with higher accuracy(+-30mA) > + lower measure range(1~9.76V) > + Calculating with scale offset returns voltage in uV > + > +What: /sys/bus/iio/devices/iio:deviceX/in_voltage4_raw > +KernelVersion: 5.18 > +Contact: chiaen_wu@richtek.com > +Description: > + Indicated MT6370 TS_BAT ADC > + Calculating with scale returns voltage in uV > + > +What: /sys/bus/iio/devices/iio:deviceX/in_voltage7_raw > +KernelVersion: 5.18 > +Contact: chiaen_wu@richtek.com > +Description: > + Indicated MT6370 CHG_VDDP ADC > + Calculating with scale returns voltage in mV > + > +What: /sys/bus/iio/devices/iio:deviceX/in_temp8_raw > +KernelVersion: 5.18 > +Contact: chiaen_wu@richtek.com > +Description: > + Indicated MT6370 IC junction temperature > + Calculating with scale and offset returns temperature in degree