From patchwork Mon Mar 1 03:59:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 12108685 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 4ACA1C433DB for ; Mon, 1 Mar 2021 04:01:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 168FC64EDC for ; Mon, 1 Mar 2021 04:01:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232295AbhCAEAv (ORCPT ); Sun, 28 Feb 2021 23:00:51 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:36036 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232008AbhCAEAq (ORCPT ); Sun, 28 Feb 2021 23:00:46 -0500 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 2F81F891AE; Mon, 1 Mar 2021 17:00:00 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1614571200; bh=sSHNyDdYGHfNFCFOKIahsVJerUYrrTis7CwGX+Mrark=; h=From:To:Cc:Subject:Date; b=qTKSErQGp26VU9P3OSMEJrZuPpNnHvVYqBCJWA2GoyMNSBzwV2DH+fKRlnn5v/RKQ HMTaGe3E8ihbX2jVbxImOoLhJP/rZidF+XLz+AltA4Ko2g5SH0MK/ahPIz4X8tWpLs 3oAooHg86CMCBDGakwLxPDY98RsGRJNIVbFB1jmTdIKb3V0wz6699fmWgT4Es/vXrF L/BhKjDK5j/556MwHM2kWBsUMYmD5Dp98ih4o4yhPAVMsK0GNhi2lYXPO9KoY/gUuf M/4JtH1lvK77yUQFq/xwZ/+HbC9n/8dWV8oiuL7ZFSDCFZ1ICgTFNzFvi3uLYxBo4w xVwITp9PJpD7g== 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 17:00:00 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.20]) by smtp (Postfix) with ESMTP id 740D213EF2A; Mon, 1 Mar 2021 17:00:10 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id F0294283985; Mon, 1 Mar 2021 16:59:59 +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 v2 0/2] hwmon: (pmbus): Infineon IR36021 driver Date: Mon, 1 Mar 2021 16:59:52 +1300 Message-Id: <20210301035954.16713-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: linux-hwmon@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 | 79 +++++++++++++++++++ 6 files changed, 154 insertions(+) create mode 100644 Documentation/hwmon/ir36021.rst create mode 100644 drivers/hwmon/pmbus/ir36021.c