From patchwork Mon Nov 13 15:50:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Yin X-Patchwork-Id: 16522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1294781vqg; Mon, 13 Nov 2023 07:52:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzyiGLzsVJqqWRjIhD/qvWxYc9Bsr12l8gqS27MNTUOyV30CsWFFeNgno4Vrx2w35wHCoA X-Received: by 2002:a05:6a00:7c9:b0:6be:130a:22a0 with SMTP id n9-20020a056a0007c900b006be130a22a0mr6556278pfu.14.1699890742531; Mon, 13 Nov 2023 07:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699890742; cv=none; d=google.com; s=arc-20160816; b=XUZwuwPXVHOcdZspS5CwWfCZVRL6UtRfnPGKrr3P/s9H8y3yEUbRbZ6SzgjwvNp0qf ORX4WGOYk8a+7/4r+ZYhNY9RscspwgDe7/8vlbQ5V30M0y/n3AVtwFiGSEksb77t0Mul tp3mwkQUsLVhkqBFIAjqzzlsqKXp0tt+J5ryp0kQwWJyKEP0HmlDbOWl15uSACNRvpK/ m2SEA2TiCxggOfts6AWFkJ4TY0IjIre1Yb3g9EjFdAIfyOAzzREiJfRO0qHjAUuBGL9W sfcjp1PkYNv6+7t5AAMLm1gZ/0+wkEsu8yjJ5WeyJNBR3mIB2tN2lJGT9O0bGVJfFm93 JjLQ== 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:to:from:dkim-signature; bh=+jiIhV9DFibjmf1A//2ZxFoGuCAARSTTwjZBrQOQbB8=; fh=LAqF+cT9pIm2Det9VCk1XSo8WLdDNbxtyK6BBsufJlY=; b=zTqtQjEpIAZE2vEkJUYi1YPZy6q/UQMfvcxLSNTCaBe/eBg8S8LfjkijaUtlnMLAcz Pp+1Ky14zzlm16GP5Jq5d+9AfyEQQxmE3C1uQ52VpUvNWuenUnm9Jqlc7uEa9KfZ4GLN lsrfgL43teBd35Wh1KN4yrAm5xm1e6VXirsSv4Nr4Pjh2KIElez44lKszfUi5zsq2CfB SUEldFxFeRbI1fov2DFIG3FpNHvbDGddGRgVvqSE5oaesKf73cQK4vx0Kyv7neULH6t9 j78F4HNeVi7EtRilHWK75i1tcXC2lZrrA75Ddu4VlLM+ZlsslwTmdE8gA3s8xIxhBKKi W+Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ItumgvMW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i21-20020aa78d95000000b0068e2566615esi5701852pfr.379.2023.11.13.07.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 07:52:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ItumgvMW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 600B7802AD2F; Mon, 13 Nov 2023 07:52:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231678AbjKMPwU (ORCPT + 29 others); Mon, 13 Nov 2023 10:52:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbjKMPwS (ORCPT ); Mon, 13 Nov 2023 10:52:18 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D4761706; Mon, 13 Nov 2023 07:52:15 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5bd33a450fdso3620879a12.0; Mon, 13 Nov 2023 07:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699890735; x=1700495535; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=+jiIhV9DFibjmf1A//2ZxFoGuCAARSTTwjZBrQOQbB8=; b=ItumgvMWUzqxUgnZp0bi4+j2xW34XvxgCO7h0jk53/9F3ocVNFEgo98PGMQ1Z0u3Eq yicD8GqU9Od1dP20y0RvSkBODjQSohqFnSjP9mu3hi120bZKxjXMM5eFENRCtc+HsEsT fw5N4KLxQInjf33Ns7miXySWqgb+g/iZGegyvEOU3IcH/8PYryLP+ZdHkIARYvjgjmOh NRlcLaBFasM5GcvfjKqTuIwxEhyf9NXkLFO7BVb5ObU1zxVEfN9ccy7zlnB6Pq69Q5U+ fZZFK0pFLM1Q70gK5rDrpdcmulumdtbKiu74xhZjR5PuRStspbfdDsQxtXL2d6LXxJmr WAMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699890735; x=1700495535; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+jiIhV9DFibjmf1A//2ZxFoGuCAARSTTwjZBrQOQbB8=; b=G22EwgYhMjNGr3llWEbSIoY3nbFFYZiIibqRu07JyEjxLllYqgMfKAviWGNpBlSHM8 mxcrKpMGWkkUkPIhfB0j8Inrr1u0LesQxEliSwa75jb3U6UKxVBSIuE0C7sFAhBT9kuM vT+LbLUXOO02ZCSqCeriKNDAtzlTGPtKnoAUS/ptRHtrMwzJ1TAXNud7xo4dYZPqjGE8 34gHx9nQZS/E/wbBMjSNyGXkHO7WMCAkY3RqEILAd/1ayZOGwd5t11mOqgdRCUeVYPmj x1tXfVa35h/HAqhXL3IWD/kejYgVtS3gPRQ1J04eSc/llOcC/fXpeGDO2aZEz5m049Pa yhNg== X-Gm-Message-State: AOJu0Yw7yQo3io/B2b17oUuAPH3XKPHA17Gi1jCbvHCEORm4+UAHQFeD qfxf+BRRz65Dm9S5ps/cBEc= X-Received: by 2002:a05:6a21:7785:b0:186:6cb3:4bb with SMTP id bd5-20020a056a21778500b001866cb304bbmr4643446pzc.62.1699890735060; Mon, 13 Nov 2023 07:52:15 -0800 (PST) Received: from peter-bmc.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id iw14-20020a170903044e00b001c5076ae6absm4155925plb.126.2023.11.13.07.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 07:52:14 -0800 (PST) From: Peter Yin To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , Guenter Roeck , Jonathan Corbet , Joel Stanley , Chanh Nguyen , Peter Yin , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v3 0/2] hwmon: (pmbus) MPS mp5990 hsc controller Date: Mon, 13 Nov 2023 23:50:06 +0800 Message-Id: <20231113155008.2147090-1-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 13 Nov 2023 07:52:21 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782464635454737968 X-GMAIL-MSGID: 1782464635454737968 Add MPS mp5990 hot-swap controller. Change log: v2 -> v3: - Support linear mode. v1 -> v2: - Corrected dt-bindings description. - Added comments for Vout mode command. - Removed of_match_ptr() v1: - Add support for MPS Multi-phase mp5990 Hot-Swap controller. --- Peter Yin (2): dt-bindings: hwmon: Add mps mp5990 driver bindings hwmon: (pmbus) Add support for MPS Multi-phase mp5990 .../devicetree/bindings/trivial-devices.yaml | 2 + Documentation/hwmon/index.rst | 1 + Documentation/hwmon/mp5990.rst | 84 +++++++++ drivers/hwmon/pmbus/Kconfig | 9 + drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/mp5990.c | 177 ++++++++++++++++++ 6 files changed, 274 insertions(+) create mode 100644 Documentation/hwmon/mp5990.rst create mode 100644 drivers/hwmon/pmbus/mp5990.c