From patchwork Mon Feb 20 12:32:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: marius.cristea@microchip.com X-Patchwork-Id: 5638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1284920wrn; Mon, 20 Feb 2023 04:43:35 -0800 (PST) X-Google-Smtp-Source: AK7set9BkxAJoZWSdgyNfGzjsCrvNguG9zXlCssMSkZl0C4iIKrnp9n2zGEHwyVGvJbijDogf7AY X-Received: by 2002:a17:90a:e7ca:b0:230:ac12:a5ca with SMTP id kb10-20020a17090ae7ca00b00230ac12a5camr3144965pjb.3.1676897015479; Mon, 20 Feb 2023 04:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676897015; cv=none; d=google.com; s=arc-20160816; b=WnERpeMNOVElfrOKLSGf36Q7Gtfdz/kHybSv6m4XwVW2ok4oBKIT2w0HClNiL8H110 LxbSoYHTMfNaKMSvcyBaSqkKXv7e03oCuft3rmg3M5lHnqH9oUuZKGfEn7rCSS7C/Xj+ UKsxRShyeG1VskwSLmH3+tFvyYFR3BysYtr84qULkomS5+4oIVe9qLhxfsZgI6WsO+HP lqmznD+Vw0+wtTB+dM6o465couLU1kk2H9R8PWhc0tkvsSqfdeqfhD9m/0Mm9C51MMPo q4diDtpGRnNBGWaTQu3i2Wr+i8AqZQTixoNuiDeGKMto+5kx/y22Qgf7DMSaV31fL0vt sLTg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SXoh6jlBr/4nhPaS5uVIx9zCMEqyJjZ7EF3nf7KwX8o=; b=Ryw7qSVeRayP928RRiyzyHF92PeG/FwXEJJvO6UBXVg3hpRGMnJSa88xh0Z8ucBpdl t9v1Clw6O6hO38bCNkYlLo+/PHkjmtCIJOw4jApIJrDL4Mfq18ug+cuki6XQhBvX+xW6 B2t4Wx9JAhSKdzDQYX5vbhpRzqS3rk4Ekc6gM+y3yYTgFfW6djJSw2QtiNawUA2pABiM tdT4Q34iJm9nQD+byNs8zn3IERvgW7KtS63AjFpYavLUDcQvuuAC57o0tGgt9akb1kIF Mu9OZ8jO3t2fp4BnoZH3cwe1UmfSc2RCH9xkkSZFVTmzOjzkemB7JwOXqawftvd24SF/ 2IDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=CeVYdhKq; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a630612000000b004fc2f19bacasi12855962pgg.120.2023.02.20.04.43.23; Mon, 20 Feb 2023 04:43:35 -0800 (PST) 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=@microchip.com header.s=mchp header.b=CeVYdhKq; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231731AbjBTMdB (ORCPT + 99 others); Mon, 20 Feb 2023 07:33:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjBTMc7 (ORCPT ); Mon, 20 Feb 2023 07:32:59 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56FA776A7; Mon, 20 Feb 2023 04:32:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676896376; x=1708432376; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vgSCEUc8iWaLUJXuISUE4WfvVHLMArLiY4LlOtGKzjE=; b=CeVYdhKqQX68jyRF9UBPb1yetaHoIyGVK5YUeJmex3hQKdNRmhHBYp6D oiru2zM86xdfNjwL9VZ41HyIG7jsNbRmoF8kMs8DNMBm+Tf7v+A6ZhirW X3Bx+ABbmp8qhYJNz0xlJ1m4P2vSThqzADqOAZcJjgR+os5uASi3v2Cd8 Hgwcy6jFh6TKgHCtsk7xwEbad0JcbKV6FUOdm1VtIrw/b2oyioZblZpi5 hSjDRMkTFsWph94G45J70Jsr/PCoe1AL2p4uzyMUxwVg15s4qVSfrxJOr fKmN+3Bf2GnX8AfjwPQZs0NIglClQR4bL+9gQl/BcZLCSruh443nN7Tbl g==; X-IronPort-AV: E=Sophos;i="5.97,312,1669100400"; d="scan'208";a="201422084" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Feb 2023 05:32:55 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 20 Feb 2023 05:32:51 -0700 Received: from marius-VM.mshome.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Mon, 20 Feb 2023 05:32:50 -0700 From: To: , , CC: , , , Subject: [PATCH v1 0/2] adding support for Microchip PAC193X Power Monitor Date: Mon, 20 Feb 2023 14:32:30 +0200 Message-ID: <20230220123232.413029-1-marius.cristea@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758353964747167909?= X-GMAIL-MSGID: =?utf-8?q?1758353964747167909?= From: Marius Cristea Adding support for Microchip PAC193X series of Power Monitor with Accumulator chip family. Differences related to previous patch: v1: - first version comitted to review Marius Cristea (2): dt-bindings: iio: adc: adding dt-bindings for PAC193X iio: adc: adding support for pac193x .../bindings/iio/adc/microchip,pac193x.yaml | 122 + MAINTAINERS | 7 + drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/pac193x.c | 2072 +++++++++++++++++ 5 files changed, 2214 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/microchip,pac193x.yaml create mode 100644 drivers/iio/adc/pac193x.c