From patchwork Sun Feb 28 23:07:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 388894 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47434C433E0 for ; Sun, 28 Feb 2021 23:09:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 16E7D64E56 for ; Sun, 28 Feb 2021 23:09:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231327AbhB1XIn (ORCPT ); Sun, 28 Feb 2021 18:08:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbhB1XIl (ORCPT ); Sun, 28 Feb 2021 18:08:41 -0500 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45EF2C06174A for ; Sun, 28 Feb 2021 15:08:01 -0800 (PST) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 43A9D806B7; Mon, 1 Mar 2021 12:07:17 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1614553637; bh=j/4y79Sbn2mTxUOqHjk7rek/Rc6O8m6q4ne8OexoRHI=; h=From:To:Cc:Subject:Date; b=ZhC0tKdePGVFXUgTMgE+pqToPzeuSe+oAmnGXXCTtsutVkykj3HVNYlLB1iYPUYUy lWvVMslWgZwpp4ZtH0pZrzmYrVV9sA3QsqumEt36wVUP6lHNtUmJ4JsRCujXtQRUf4 gZTQXjXUks8MPiVgwtx0FdZ4pMGrChfkzNVgeu8QIaBJyYrRg/TQeasnjXTO9CYA1X oVOAQTMMWIyi3ROkTcoiDE9GHph/Fv8yVtURRXpo5kPLjtOM7IT9pt+vDheWI6j8Ao k5T7jdusy1CAurKHPU8vUmeiZHFoZ006TO1ly4esvV3lRVeJMPLXSzQGlk37Dg3dm+ oVx4AzkJW+q2g== Received: from smtp (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8, 2, 6, 11305) id ; Mon, 01 Mar 2021 12:07:17 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.20]) by smtp (Postfix) with ESMTP id 8281C13EF08; Mon, 1 Mar 2021 12:07:27 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 1877C283985; Mon, 1 Mar 2021 12:07:17 +1300 (NZDT) From: Chris Packham To: robh+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net Cc: devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH 0/2] hwmon: (pmbus): Infineon IR36021 driver Date: Mon, 1 Mar 2021 12:07:12 +1300 Message-Id: <20210228230714.26578-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=C7uXNjH+ c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=IkcTkHD0fZMA:10 a=dESyimp9J3IA:10 a=JyPFgGt3d6mCrvuXJWMA:9 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a basic driver for the IR36021. This chip as both a PMBUS and I2C interface that is available simultaenously. This driver is just the PMBUS interface. Chris Packham (2): dt-bindings: trivial-devices: Add infineon,ir36021 hwmon: (pmbus): Add driver for Infineon IR36021 .../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/index.rst | 1 + Documentation/hwmon/ir36021.rst | 62 ++++++++++++++ drivers/hwmon/pmbus/Kconfig | 9 +++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/ir36021.c | 81 +++++++++++++++++++ 6 files changed, 156 insertions(+) create mode 100644 Documentation/hwmon/ir36021.rst create mode 100644 drivers/hwmon/pmbus/ir36021.c