Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4286467pxu; Tue, 20 Oct 2020 12:58:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfQT1JwTp3O2X5/ElI/dvQluvu+qjsoH4vJKuFynC8CG9XZgi1Smn2k/sdxpFknBO6NHvG X-Received: by 2002:a17:907:212b:: with SMTP id qo11mr4805917ejb.107.1603223900570; Tue, 20 Oct 2020 12:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603223900; cv=none; d=google.com; s=arc-20160816; b=m0qloGjWbpgX5QFzra1BkRnwBs49eo2CJesl6ZRCqE+GVDiOoDMYEW63TEuCkZZYAc HXhs3bNDY+vnMfikTy5vIT5id8dJlM9x0oaWbyPI54wsR6tQo/EsWb3iEDLEjuPlOJmf ag2pB+nGBNsmDSOgK4C0Yl6BeRJmbM52DcefaL1dSS+VUk+a/BFX/burKNhOQCg55ERk IBMp01ikOuuZqGZMlyAIr95YJXYwJkrIGBLyNne8Q6NSM14NJ0PlssiUit+xsmx7ZzC5 CZxJ30hvpfV+48tiGQFpKlEQCznU0OZkOFcoXd9KGgDZyEaa7jRj9Yabxe7bpULKKO7p AJFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=rzBULe/uYcMd2biNuOUoirZAkyxIgwm/ep0g4irabeM=; b=PZMuHAqW7RqSW6ZCdKLCgp57ZSpp/A2EKAUQM8CV11eE4w8vHQV5FYizrRxlAKEu6B FENpaM0wIcWlAXtunPoKB5bMqXGx8Rsf8T+osLWlCDWEYkPD+9xYJMZC68yPLIfZR8cY bLfzNIt+HsxVy/97yr5/MAqBwhXv3BznVwhWkp2XoLLvf7+0A9iK+l0gCYSTSYY1wdKr fhZjuBubchQEtwxLsE6k05jtUM+PDh8wnes93d2AAG4/Zx6OrUA3vAmV3OeXgJuATiiF l+NRM6cVaoggNQywba5rEn1fAT0VI9tSuN6c6A3OWAGNgM2eMfCOWHe6+CVAPaqKdSjM 7B+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="j/qOX1CR"; 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 v20si2017464edy.422.2020.10.20.12.57.58; Tue, 20 Oct 2020 12:58:20 -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="j/qOX1CR"; 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 S1733303AbgJTIIg (ORCPT + 99 others); Tue, 20 Oct 2020 04:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729484AbgJTIIf (ORCPT ); Tue, 20 Oct 2020 04:08:35 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9628C061755; Tue, 20 Oct 2020 01:08:33 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id b19so626499pld.0; Tue, 20 Oct 2020 01:08:33 -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; bh=rzBULe/uYcMd2biNuOUoirZAkyxIgwm/ep0g4irabeM=; b=j/qOX1CRjCJljSPZcb4bbGCVW1mLmUhTrHVtbJJD/ootbD5oyfz7Fz7cYl+sKaEV/J zwn5rw4FwvyqtCGrgfHPwUlBHVCPFzmYriPiwLP0alcRJr225m7heK1Q7oDdkb6mEFZD P8nSv2V9SBMxwbJZhYT+7//xInnXXSyxnQLfkGaYxSluWV/DVxxZkt+YL/iI3d1NWdvD //IZ++RIcxlotD776gTmQHqiwv7/2lObpeTlwOAUtRPgUUAAfmq+KZzQslEIGojJ8MDZ A/LtdXToA44/J6eNbLs7PDuWWs8RUbrcz/zhT2Ko/e7v5pjn+HTyFOPjvTNB1Kc7QYM+ V0Rg== 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; bh=rzBULe/uYcMd2biNuOUoirZAkyxIgwm/ep0g4irabeM=; b=KcjQ55OB4TctQpK/+ye9TCWr/A7Q4hTl/tUDhwm5Fa97i2tSqcBLKQ7E9yWd4+tgRR NxwsQP30ZUIDhlYl5I4gLForKUXOID554vCgJkbovysuAvphBJJtxb3C7oP8cSvALUjx a51rDDOzFelQl8Ncl/Mpu84kklQugLEWWCUxOpyZHU8kCxY7eJy70fhHTUkCVpVB3X6j fZhdPlZE9I4eVxOqXcODgEObmkR0rbNRSCE57C6jlGXnqJFBOZoQWRj1LuqShAR5nEFh wjDYdCX/0UTpdg3T/4IHpndbsAysDS7iQ6GIhAv2ZlDUKLS7RKewe88zYuEh7L3BKVpr G0Dg== X-Gm-Message-State: AOAM5324w1kq/r/u0f/cfLTlk4Y4rQsspUirubNiRnXGuYRugugLlxkv DxrV+VTEOpEMIOIG7x9DvhQ= X-Received: by 2002:a17:90a:2c0c:: with SMTP id m12mr995977pjd.44.1603181313257; Tue, 20 Oct 2020 01:08:33 -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.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2020 01:08:32 -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 0/3] iio: adc: mt6360: Add ADC driver for MT6360 Date: Tue, 20 Oct 2020 16:07:44 +0800 Message-Id: <1603181267-15610-1-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In-Reply-To: This patch series add MT6360 ADC support contains driver, testing document and binding document Gene Chen (2) dt-bindings: iio: adc: add bindings doc for MT6360 ADC Documentation: ABI: testing: mt6360: Add ADC sysfs guideline iio: adc: mt6360: Add ADC driver for MT6360 Documentation/ABI/testing/sysfs-bus-iio-adc-mt6360 | 78 ++ Documentation/devicetree/bindings/iio/adc/mediatek,mt6360-adc.yaml | 34 drivers/iio/adc/Kconfig | 11 drivers/iio/adc/Makefile | 1 drivers/iio/adc/mt6360-adc.c | 372 ++++++++++ 5 files changed, 496 insertions(+) changelogs between v1 & v2 - adc: use IIO_CHAN_INFO_PROCESSED only - adc: use devm_iio_triggered_buffer_setup - adc: use use s64 to record timestamp changelogs between v2 & v3 - Rearrange include file order by alphabet - Set line length constraint below 100 - Add Document for testing adc sysfs node guideline - Set compiler 64 bit aligned when handle iio timestamp changelogs between v3 & v4 - Fix sysfs guideline description - Replace iio channel processed by raw/scale/offset - Add comment of read adc flow for special HW design changelogs between v4 & v5 - Rename dt-bindings aligned to file name - Aligned sysfs node name with driver and add VBUSDIVX description - Add ADC channel sysfs node "*_labels" changelogs between v5 & v6 - Memset aligned adc data - Remove strong casting void pointer changelogs between v6 & v7 - Avoid adc polling infinite loop