Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4405477pxk; Wed, 30 Sep 2020 01:56:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKsiJk4DSQ7Dm9gA4E1wnptAf88sSM4eY/JxKPrKfIEQTOTK4pgtFtGbALoJH2PhmBI3Ya X-Received: by 2002:a17:906:2552:: with SMTP id j18mr1728861ejb.476.1601456209556; Wed, 30 Sep 2020 01:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601456209; cv=none; d=google.com; s=arc-20160816; b=wC60N+yEWDWDZfitGMcDDmYghXZ7BHv2KWCjaXQDQP4plUxmiB+kxPAuRvFfj7I6lT vXJAErHYAQ/k+Cf6tlq6ObmL4Ouz4E4N2cHA2eDozKLfxuu4cxumHBvnciqhXpjtHSrH M97tDG3OHedKaCA11kV/ewMnheGQqrl/ltpiUxpBUZGSUlRBto0j2IdoQw2FVs6R8AZm M3JsS/2LAtztD/fGGYumFms5+mDatVPXse6jvS/qT9w5f6+HtWCvD54rORhwptcXhOvD u79ijMjg4soDXV6B7gAQJ1Q1seKrluxGQnKlCZIr2mDwO+cp9jJedN7vPE1AwVKCzqAR 8AzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=QIq5NQbiNyJNm/We4OObc4q4pfsVdMirm2rHEjG4Osk=; b=raLXw6oULelKmAM+yfIAKGJvMdL1NZ2BdUtylGcURrBuMhDrTjVqHcMIQlRcJei3Vw P4oUygjYDLAElIfqUjkqo/ko3tl9/b3CqudT3gxmpFB63J1o17Q2EILYMKBHB2Eiwy62 +NSu3HrGVfQJxw5CGit1jj+Adx7NPyy7Es35D3vWiaADONMDquNNaZBg5r4dio0EWSXs LnwDZmBxe//2H44aA4CQmHNo5XtL9Qyf/tgAQL00RwPI1FzBRkyfX0xBSJ+PXzbiAHhk czRWCbfGfQ+lQCMf5TfapYBOnQqkoQr4VGmvufPyZcRTxKD5z2PPXMINLgD3beRLFpg6 JN9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OQHAXcrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si740253ejl.253.2020.09.30.01.56.26; Wed, 30 Sep 2020 01:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OQHAXcrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728828AbgI3Iyf (ORCPT + 99 others); Wed, 30 Sep 2020 04:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728805AbgI3Iye (ORCPT ); Wed, 30 Sep 2020 04:54:34 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D76BC061755; Wed, 30 Sep 2020 01:54:34 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id u3so558272pjr.3; Wed, 30 Sep 2020 01:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QIq5NQbiNyJNm/We4OObc4q4pfsVdMirm2rHEjG4Osk=; b=OQHAXcrzd8LKG1J6V1impLCbnRaHVbL7qYR9d0/Mjrf7JE9uHlsFYPaTmKzK8OIKvM wvUb4Cmh68mHeOonPe9bveNFrdQwLizIWVEjCZ/4TwEMBXc6I9ScHlEHz/gqcpannNrk TRUMf3q/dye/fK+nwktRIXM0JlPX9Q70emD2qqryaMfurw37lD09/ZV3HPGUtMmo/yo9 hyZ8TgvIjpta4z8KQE0RfGrdFJ3sgh6nsnvBOwhUsWtwTOiISze954p2k16e7y1Xwvjk yrcmcSwJrQFTAdzET3OijUlQFvu/gxYLuM8B11c6hA67ehbelvLGuVlLVlC7SPWRD8YA KPmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QIq5NQbiNyJNm/We4OObc4q4pfsVdMirm2rHEjG4Osk=; b=KvAVadMv3uS3+C679qNPJlreWTa1sXgUylkblLBFC+lAbeQPSyhVtxCmEMdrYLro1E NGVhnqJbXWsFIk5WugUx6gX1eySQI1bwCxokCFgdgdWPe+qcqGf6xlcc6QtBx4carihX Q5A0lz/saeb+wzEMrqU56Nb7x5xU7Bciiw2p0ud64Hv/RQK8oRPNPS0GfBMQ5n8WN1lq YVmeiyvKU3ybgWdoJV5tbCjOCJ5mDu/r2OBkZ8PYfXsO090UerSqqcluWaOzF/yTl1/w iudYEVOK9hrlxMOFRiU51GAHiHp030MT1Nx3Eq5R+zA0RSC9HlXICmMIarVAjAWcGrQf 8vhw== X-Gm-Message-State: AOAM533BpU8fFWzboiTUTXPFu/74ym6PpUCnQ1Bw8nR99v/byz4d3qMM Pyy55iAwddylKzAQQ8tj1GM= X-Received: by 2002:a17:902:9a8d:b029:d2:4ef:a1fb with SMTP id w13-20020a1709029a8db02900d204efa1fbmr1545988plp.4.1601456074097; Wed, 30 Sep 2020 01:54:34 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:56b:d17:8c76:3dc4:5429:d7e4]) by smtp.gmail.com with ESMTPSA id x13sm1513938pff.152.2020.09.30.01.54.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2020 01:54:33 -0700 (PDT) From: Gene Chen To: jic23@kernel.org, robh+dt@kernel.org, matthias.bgg@gmail.com Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com Subject: [PATCH v6 2/3] Documentation: ABI: testing: mt6360: Add ADC sysfs guideline Date: Thu, 1 Oct 2020 16:54:07 +0800 Message-Id: <1601542448-7433-3-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601542448-7433-1-git-send-email-gene.chen.richtek@gmail.com> References: <1601542448-7433-1-git-send-email-gene.chen.richtek@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gene Chen Add ABI documentation for mt6360 ADC sysfs interfaces. Signed-off-by: Gene Chen --- Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 diff --git a/Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 b/Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 new file mode 100644 index 0000000..e5a7b1c --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 @@ -0,0 +1,78 @@ +What: /sys/bus/iio/devices/iio:deviceX/in_voltage0_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 USBID ADC which connected to connector ID pin. + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_voltage1_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 VBUS ADC with lower accuracy(+-75mA) + higher measure range(1~22mV) + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_voltage2_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 VBUS ADC with higher accuracy(+-30mA) + lower measure range(1~9.76V) + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_voltage3_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 VSYS ADC + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_voltage4_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 VBAT ADC + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_current5_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 IBUS ADC + Calculating with scale and offset returns voltage in uA + +What: /sys/bus/iio/devices/iio:deviceX/in_current6_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 IBAT ADC + Calculating with scale and offset returns voltage in uA + +What: /sys/bus/iio/devices/iio:deviceX/in_current7_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 CHG_VDDP ADC + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_temp8_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 IC junction temperature + Calculating with scale and offset returns temperature in degree + +What: /sys/bus/iio/devices/iio:deviceX/in_voltage9_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 VREF_TS ADC + Calculating with scale and offset returns voltage in uV + +What: /sys/bus/iio/devices/iio:deviceX/in_voltage10_raw +KernelVersion: 5.8.0 +Contact: gene_chen@richtek.com +Description: + Indicated MT6360 TS ADC + Calculating with scale and offset returns voltage in uV -- 2.7.4