From patchwork Mon Feb 14 21:44:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcello Sylvester Bauer X-Patchwork-Id: 12746178 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 283BDC4332F for ; Mon, 14 Feb 2022 21:45:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231536AbiBNVpa (ORCPT ); Mon, 14 Feb 2022 16:45:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231512AbiBNVp3 (ORCPT ); Mon, 14 Feb 2022 16:45:29 -0500 Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050::465:103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9C9018462D; Mon, 14 Feb 2022 13:45:19 -0800 (PST) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4JyHnn48nNz9sPp; Mon, 14 Feb 2022 22:45:17 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sylv.io; s=MBO0001; t=1644875115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=oRr78yIBPxY77+I5AuoDVOFQS9ad7sIPGYxZpt1x9Ws=; b=s4lNrCnZ79xMhCyGsG/v/JFzek6MJhnrRCzr71iFa2YSfHBoOvnlCqFBHuHNFyiAV5Zz+N l+Ia+TNt3KObZLrxTmqtqtEa4Ueqn/DslRUXZgYEdBcrHFhK6GkCyP4r4nDWDGSaSpfojH a6CWJ+O+Z/hBd1wwfibrF/2e2pLT49iyUpzBJjIC9hrD3PFP1ngW7krrHWkG4gzhEZtEi1 Ql/1ALNYt5KZtUzbWf/vBtGeWNC2aLChOkc3iq8zHQdk19MELWGGDIkV00P4K6r1nveRbI oqEQQOFhCEDVkF8sYskSeML9PgFoi6zsBROKD8gWZnxfiz9tHCJiZmMeYxIj6w== From: Marcello Sylvester Bauer To: Guenter Roeck , Jean Delvare Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph , Marcello Sylvester Bauer Subject: [PATCH v3 0/4] Support pli1209bc Digital Supervisor Date: Mon, 14 Feb 2022 22:44:52 +0100 Message-Id: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Hi, This patch set adds support for PLI1209BC Digital Supervisor from Vicor Corporation. It replaces the previous submitted driver "bcm6123" [1], since there are multiple digital supervisors, which uses BCMs in different configurations [2]. Change in v3: - prevent potential over- or underflow of PMBUS_READ_POUT Changes in v2: - Multiply PMBUS_READ_POUT with 10 (R=1) instead of dividing PMBUS_READ_PIN by 10. - Set all pmbus formats to direct. - Comment reason why page 0 is redundant. - Import pmbus namespace. [1]: https://www.spinics.net/lists/linux-hwmon/msg14097.html [2]: https://www.spinics.net/lists/linux-hwmon/msg14123.html Marcello Sylvester Bauer (4): dt-bindings: vendor-prefixes: add Vicor Corporation dt-bindings:trivial-devices: Add pli1209bc pmbus: Add support for pli1209bc pmbus (pli1209bc): Add regulator support .../devicetree/bindings/trivial-devices.yaml | 2 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + Documentation/hwmon/pli1209bc.rst | 73 +++++++++ drivers/hwmon/pmbus/Kconfig | 16 ++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/pli1209bc.c | 146 ++++++++++++++++++ 6 files changed, 240 insertions(+) create mode 100644 Documentation/hwmon/pli1209bc.rst create mode 100644 drivers/hwmon/pmbus/pli1209bc.c