Message ID | 20231211160519.21254-1-potin.lai.pt@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7167507vqy; Mon, 11 Dec 2023 08:15:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEHI1YP4wY+q7tvd9uQLcOus+8iyIq+IBrQrFR8FQvctZSHSO2NTALeiCKKZ6RIcz63r6g X-Received: by 2002:a17:903:1c6:b0:1d0:c6fd:3168 with SMTP id e6-20020a17090301c600b001d0c6fd3168mr4965880plh.55.1702311332538; Mon, 11 Dec 2023 08:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702311332; cv=none; d=google.com; s=arc-20160816; b=trhr5gEAkbKYpOJ5ka4o0VxICzGRsRYVXgcp9Y8ms4FKQGdF2NIuSx8abp8+6nCL35 oHuhZCBFS4s8ergXUX0+G5IpXCIfflUcBGLHOFKswnXsnJXLkHSx4s6kO0Rs5it3gI5+ gGmTwDyibUpdadhWPPyt/edE5vmQX/IxuBA8ObO2AlbT2vl3tWDEZQcxQ8VJVPKhZabY i2H48XsqTJwg5PWEyk2IV3xxzCKKVjO99bC2vWIwZHR3dcVDDXQbf7PlHP0JPV96Y0/3 KL3EawfDwwiDp9tAqy2LWdINknvcWJDXOFNsWpPfDp0YDhnlD+Yo2501pRQ81AHXC/Sf 4pIw== 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=WGjiUns1h+iAl3w3ceq2flEBlTM6hUQvZg8488X+6N0=; fh=LNsixk4TAzp23nBzdJnI/BPPg6l27kEDS1SQLjLxi/s=; b=YF1E+KlRtLkno+IXZjGFVwhNG8qnhM5v/SDgnxC7AqAiUbFcFuecRQgpTpSFjGwbCl +tDVWDV2YuTeuyllfWXwwiyHLrsXSV87OprZ+BoTgRGPkvdIeAz/eGqNU4ZJ2AKPLQXe GkLbVqqaELAcpA8YjJFazvAZlIJATAzcuApttM9naH4VamnMPa2j+Nn5NrLX2pgLVIwA jG9QIvJ03gIHVzMKzem34XlbBwVTFeYdFLhtxS4dcrhQd/eyGciBWIpiEHPpOkVILtEf mhCKHG/GklRVx+aAZsQbcswKbL9ktPhqEA5L/4IzDJGrgBXCRUgZ38Y46VGuc/RjqoDs iEFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EN708hKa; 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 j18-20020a632312000000b005c676beba09si6035799pgj.74.2023.12.11.08.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:15:32 -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=EN708hKa; 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 B171080A266C; Mon, 11 Dec 2023 08:15:29 -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 S1344723AbjLKQPT (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Mon, 11 Dec 2023 11:15:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344719AbjLKQOy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 11 Dec 2023 11:14:54 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F260926B9; Mon, 11 Dec 2023 08:07:43 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-6ce72730548so3962475b3a.1; Mon, 11 Dec 2023 08:07:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702310863; x=1702915663; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WGjiUns1h+iAl3w3ceq2flEBlTM6hUQvZg8488X+6N0=; b=EN708hKaCy9qzdzx3q0dMTuJnp6PecLBV0ZAlAWaBvO0rID0vEVTM6dvhOQDaw6Bji WcKj6KWkMCfqRMEfJArITfFeqEYcgNPyo9BYFFp7k8YRFiv1EHkmDhKi6DkJIYAmgixF xLruuvvYvfIEFzSk54EOAHnVamJuro02+cJj7mrzTavdLQEODW6QW3vI7rrZw1qMbAsJ MvBaAZVBg5tspbgnXGEY8CetMuuU9316RnArrnXZ+3KtG0AqF9LjzPhuUQP6VboEVKn3 LzAF3hDW4vFh83rpmt8EgkrBQiMX9qMxKn59nZfOoJmTYgns43lMXHm/m2zAbbx8B5BD sV3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702310863; x=1702915663; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WGjiUns1h+iAl3w3ceq2flEBlTM6hUQvZg8488X+6N0=; b=RnEjnH3A7QLhx/D/39Hc15FZgubQB0xCRmLoqEoodCs73NfUZinkZvDaZwopIdANZZ sv9LOHzeOVna6s8NoLkTAVQhS+r+Uw2BaSpUUe9d/liEJwt81JA2dZF4Gbhl5g4HbdYA YMUutl3gSaoAmwnzE8+ubsUHHJ9iTa5WqBRVz5W6d3NbgKVXLQJThKsJ1Q1aQvEGCbDe UN1sLLZI3r2bfBOOV3dCDgqWDOeRCNTeDUsh87riux8M7+M/hxb1LhBVKTArmM7Pg35G RtiRV2Of1sTxhSp1q+bo08tMvGlEyH6xZAF5xNWWmxuNifXBBjloJnHY1L6ztTx5qrWy GZMg== X-Gm-Message-State: AOJu0YzR75rebS4W77ziALDsqt11rE0YJMl3ss+1tnIz8jIRb066K+Wg tznpENkugtdnON2EGlQzk3o= X-Received: by 2002:a05:6a00:870b:b0:6ce:2731:e877 with SMTP id hj11-20020a056a00870b00b006ce2731e877mr3977204pfb.62.1702310863210; Mon, 11 Dec 2023 08:07:43 -0800 (PST) Received: from localhost.localdomain (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id ei39-20020a056a0080e700b006cbef269712sm6545611pfb.9.2023.12.11.08.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:07:42 -0800 (PST) From: Potin Lai <potin.lai.pt@gmail.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Jonathan Corbet <corbet@lwn.net>, Mark Brown <broonie@kernel.org>, Joel Stanley <joel@jms.id.au> Cc: Peter Yin <peteryin.openbmc@gmail.com>, Peter Yin <peter.yin@quantatw.com>, Potin Lai <potin.lai@quantatw.com>, Patrick Williams <patrick@stwcx.xyz>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Potin Lai <potin.lai.pt@gmail.com> Subject: [PATCH v2 0/2] hwmon: (pmbus) Add support for MPS Multi-phase mp2856/mp2857 controller Date: Tue, 12 Dec 2023 00:05:17 +0800 Message-Id: <20231211160519.21254-1-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_XBL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> 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, 11 Dec 2023 08:15:29 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785002802145852968 X-GMAIL-MSGID: 1785002807782614169 |
Series |
hwmon: (pmbus) Add support for MPS Multi-phase mp2856/mp2857 controller
|
|
Message
Potin Lai
Dec. 11, 2023, 4:05 p.m. UTC
Add support for mp2856/mp2857 device from Monolithic Power Systems, Inc. (MPS) vendor. This is a dual-loop, digital, multi-phase, modulation controller. LINK: [v1] https://lore.kernel.org/all/20231108024222.2026546-1-peter.yin@quantatw.com/ changes v1 --> v2: - mp2856.rst - fix wordings - mp2856.c - fix register naming in defines - remove unused register defines - add max_phases and chip_id in struct mp2856_data - force vout in direct mode - remove unnecessary functions (ex: mp2856_identify_vid) - add identify multiphase for both rail1 and rail2 Peter Yin (2): dt-bindings: Add MP2856/MP2857 voltage regulator device hwmon: (pmbus) Add support for MPS Multi-phase mp2856/mp2857 controller .../devicetree/bindings/trivial-devices.yaml | 4 + Documentation/hwmon/index.rst | 1 + Documentation/hwmon/mp2856.rst | 98 ++++ drivers/hwmon/pmbus/Kconfig | 9 + drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/mp2856.c | 477 ++++++++++++++++++ 6 files changed, 590 insertions(+) create mode 100644 Documentation/hwmon/mp2856.rst create mode 100644 drivers/hwmon/pmbus/mp2856.c