Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3890200pxu; Tue, 20 Oct 2020 03:16:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFygfPYDxAJfmgzKOB37kHS+0OEZ61TB/HbjzHicNAC2SiN+0tkRt4Jk856qeMIjXMIE8I X-Received: by 2002:a05:6402:392:: with SMTP id o18mr2041697edv.283.1603188988352; Tue, 20 Oct 2020 03:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603188988; cv=none; d=google.com; s=arc-20160816; b=zQAtDM9/ZmDT4wss6WZYSKTfImnXrf6LsuRsed9ItRofu3mLk8nrlGNkaFNuQLusa4 l2bishfhqAUyhz18Vox+SThf764QLUm6NcQaSrb0B5WDewHEmBzKnITuPzGgoR9nuesr PT/HWrqxOqbXYf07eFAC696GAIXt7EREIWPfLynHRlLy/1UXI1ESNpkyiwhUmPEVvG4u OHU4om+HAtvXzcLmO4l2W4yRCPMU034/g437z5N1O6PoJSKYA9TEmZFH4B3otAhG3ePC KkcovpfwfcdTKKe0uNDy/OBxjpci/nSmB8mZATvKIreSrTfyiUJLVPcLUuTKE5La9sHN lI/g== 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=DmzTSkRYjtKykY8PSd6pUBlsS3qYPAwffVH/pGr6SEU2sDefkJrN9AS73VCU+ouoz9 0NdbydxlZ4SFGn/esPWciw3sYNzP3bBOphRdkGtgk6lraE+yF4wW3q0/EXVGC3yUuaYp EaHfA7wkDHiZzMNH1Qh2dLbtJuiFH0nVgHm38Y9I+NtdGXpHaUZS/K6M2UOAomDeOVqM esME2TqK3aGwxo094uBz2MZ+1MHDUHX2zBPbS7p2ySWXt4zFM9nYtkieKEv4nESFIXmh RIyYgpXSD3016uaAsyRpRSZ9q+giabi1hhmEXyVNUoKU2gmUA36hXpVuNKHRUwxVsX2t QEhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r3q4WYBX; 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 c10si809043edt.544.2020.10.20.03.16.06; Tue, 20 Oct 2020 03:16:28 -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=r3q4WYBX; 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 S2387470AbgJTIIu (ORCPT + 99 others); Tue, 20 Oct 2020 04:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387440AbgJTIIp (ORCPT ); Tue, 20 Oct 2020 04:08:45 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E27C061755; Tue, 20 Oct 2020 01:08:45 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id s22so604590pga.9; Tue, 20 Oct 2020 01:08:45 -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=r3q4WYBXqjYqIQt7imcslM6KvEym12F1IyuoKZjmDVOl2IKrLOeNDdL+26hswkpVJi QTJ5aIjpkzLjkXBpsmAlhtrOaTxwOrI6pREAhyXTH9+++2EefUDoYW4Zjm5BgssjOlza /fCQSc+ouAW+HTvX5JswVnA5eFeGQZkkXuSEqPDuqly2KvtWmQuH3BV/oWrxjOccdEKH AoZVkiUkPy7p3is3jEgIZSUdBBje7v4XGLHg6D4Q4AK6kYXFrrRN2GFUUIV3a95mSyIC +x3V6HfRpP2w90MYpjTaRgUhcoIUcup6XWVLJ3Du7VHoPAGq9u2dZCUq7OAd+Eo4qL2Q zZMA== 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=cIrRfxPBnq5it0NfdT51Uj+7cPpaM7WaHgzuq5xZls7QZ1GMkvmIJRiyo4OY8SPt19 ZtCf+WZ7eog1sA1RHc0KD67jlkTjhUxEMnwW3SzaxXzXVxm0MJoFvX+YHMHf92cdAxGZ YENf8FFMcF+z0dI5aGpWytCcnopSqtoWbWWTDnEEnFNl7MWM93TpvkrL8GtxjCrupi0K xiNC/l1riJ5z2IVM8dp4+dqLmBN/JT5/Lwdc4YoSZ9pFWxVWYnwvGr44Z9l1lnoH+HyC 8plkcYd+aRhA6PpDoxNV0BbCaMpB3Ys22bkC+ffmtXrwA5wANX2WmmXL1/XEeIOyk1pI oPTA== X-Gm-Message-State: AOAM530zlmO6xFN3XY3FTXb7711YUBA6gC7U4HcFd2c2iZVC3ZhERafm uADivsXfEr13QM3XfL4JWJE= X-Received: by 2002:aa7:9299:0:b029:156:5edc:a506 with SMTP id j25-20020aa792990000b02901565edca506mr22385pfa.52.1603181324717; Tue, 20 Oct 2020 01:08:44 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:477:195c:4b74:c749:e0fe:9e69]) by smtp.gmail.com with ESMTPSA id 17sm1347270pfi.55.2020.10.20.01.08.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2020 01:08:44 -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 v7 2/3] Documentation: ABI: testing: mt6360: Add ADC sysfs guideline Date: Tue, 20 Oct 2020 16:07:46 +0800 Message-Id: <1603181267-15610-3-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1603181267-15610-1-git-send-email-gene.chen.richtek@gmail.com> References: <1603181267-15610-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