From patchwork Wed Aug 16 08:02:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingjin Yang X-Patchwork-Id: 13354653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB8E6C04A94 for ; Wed, 16 Aug 2023 08:04:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbjHPIED (ORCPT ); Wed, 16 Aug 2023 04:04:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242732AbjHPIDk (ORCPT ); Wed, 16 Aug 2023 04:03:40 -0400 Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E547C1987 for ; Wed, 16 Aug 2023 01:03:35 -0700 (PDT) Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 37G839QM044059; Wed, 16 Aug 2023 16:03:10 +0800 (+08) (envelope-from Mingjin.Yang@unisoc.com) Received: from SHDLP.spreadtrum.com (shmbx06.spreadtrum.com [10.0.1.11]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4RQgYm0SPgz2PrQN4; Wed, 16 Aug 2023 16:01:00 +0800 (CST) Received: from xm9614pcu.spreadtrum.com (10.13.2.29) by shmbx06.spreadtrum.com (10.0.1.11) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 16 Aug 2023 16:03:07 +0800 From: Mingjin Yang To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , , , Orson Zhai , Baolin Wang , Chunyan Zhang , , , Subject: [PATCH V0 0/2] Add support for UMP serise pmic adc Date: Wed, 16 Aug 2023 16:02:23 +0800 Message-ID: <20230816080225.21482-1-mingjin.yang@unisoc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.13.2.29] X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To shmbx06.spreadtrum.com (10.0.1.11) X-MAIL: SHSQR01.spreadtrum.com 37G839QM044059 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Patch 1, add UMP518 pmic adc description and sample in dt-bindings. Patch 2, add UMP serise pmic adc driver, support both voltage and current mode. Mingjin Yang (2): dt-bindings: iio: adc: Add support for ump518 pmic adc iio: adc: sprd_pmic_adc: Add support for UMP serise pmic adc .../bindings/iio/adc/sprd,sc2720-adc.yaml | 2 + drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/sprd_pmic_adc.c | 1298 +++++++++++++++++ 4 files changed, 1311 insertions(+) create mode 100644 drivers/iio/adc/sprd_pmic_adc.c