Message ID | 20231103080128.1204218-2-peteryin.openbmc@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp868717vqu; Fri, 3 Nov 2023 01:05:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvm/x9XjlGlBdMYYzJ1Xa48pnN+ImUG+KRLwxXhhzjS7GDPH0DX4rRGlb6nUACTSkqcSUs X-Received: by 2002:a05:6a00:140d:b0:6bd:3157:2dfe with SMTP id l13-20020a056a00140d00b006bd31572dfemr20491432pfu.7.1698998704549; Fri, 03 Nov 2023 01:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698998704; cv=none; d=google.com; s=arc-20160816; b=Upw47nQQN8aP66T+d7Gnbp/9sxH4S/ePacUINGMy/B/60+NoD348ZRlwbendz1Vosh mhdi3e3pjcd0Cp3gEbIkhN6n10wRgy8p4GDHXrDFFE1qaPTJ3IbgUX63K5Uh0ht3PUVJ izOIZlyemanDEMLNt4QbaHYpiTkzSxjkmksH5jKCVgZ0Hqm2e2E2tfw4EQhEkRknstWa OBozqozb9uGw6SiFRe25kFmXvdvqM9b3TPYUQRdWwHLsTrz6lbThuV4ajPUxMPgmLne9 tbeAlIZoOxjrjJZnECVsE7xALUL8rsFKktn9jvdwhFzutR8D9dTC64wFbje5XLNUt/9Z P5vw== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=V8o7NIVsvFjoN1IBcJ9gHST23hC/srd4GUV+1AFgork=; fh=FOMho48dHeCrwK813iVBLZoyn/HaS3J+JQrZ0cE/8CI=; b=EnJhjMMhcPvTtY8XdXfrRagNRz+JJ18X7yEV7GLvwyclDqqmbBYnY12idiiUMaU2vf 3PZlRrAd1Pm1Gzt6LomDOh/bMTXYAvr4eFSi7MNx8NZRnD293Rkgnh1yk+YEU30KpbVu 2RK8FPZx1oTzRA9IzlqaNsZssAVAXdISVc/XbYmF4nQFkkhOwXNuT6gh1NgKR6C2zIE7 eZU9wo56gB/HdFQF21Ti7g6qzDTMk1rx/FBv2zSCnj/fTYApgqaF0PKhg+PnG23aR4nk yiPvirYSPvbhw/XQsXX3lSHmhau/hsXEEpDGyDSB/kL58xlKip8Bjx/q/auymePrh/sM tzaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BUZMq2hp; 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 n7-20020a634d47000000b005ae8dda5ab5si1092884pgl.899.2023.11.03.01.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 01:05:04 -0700 (PDT) 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=BUZMq2hp; 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 5C602835450B; Fri, 3 Nov 2023 01:05:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234694AbjKCIE7 (ORCPT <rfc822;lhua1029@gmail.com> + 36 others); Fri, 3 Nov 2023 04:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbjKCIE5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Nov 2023 04:04:57 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCBABD42; Fri, 3 Nov 2023 01:04:51 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6b5af4662b7so1764223b3a.3; Fri, 03 Nov 2023 01:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698998691; x=1699603491; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=V8o7NIVsvFjoN1IBcJ9gHST23hC/srd4GUV+1AFgork=; b=BUZMq2hpWAjDVjRxMnilrZ9EUdJHidAj6QzwqMdPxqcTLiZ8U2WNc7Lz0XSujJX6ZP Nc39h6rliipFGiel285vAYPJTr/adNwlDr35YmXfVUdU7hVgjKOxyVeQ/ZvDh+XrOm8x QZdow8LdtnRwUQxm/orZfDs24MvYI/6VvLqAz8FqZ8SmLqVA622IM8YXmYlEpoeTidYd PqiITFYSutyLw7esICxZL4CC28JIaQlcISZfjQmIQvHJd4HQ4fRUSJmFKLQmq78bfKuw UrYAdO0+ZsU4J3W1Jmc4i25hHnWugvEsvh5kxmvIvh9pYBo6R0OcVh3Unq6rIXtIMxWt Uauw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698998691; x=1699603491; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V8o7NIVsvFjoN1IBcJ9gHST23hC/srd4GUV+1AFgork=; b=ZdGAHLqMFbm0h7y1h/TxpFKqL3Na1X6p/4oxwppK4CIx8gd2YWtrMd50C1tBKHnCqv gNYlPylZd7hjH/vvYOM6vxQJRZY12WtuLjaZKqZrR2mMaYLTsFx7QT97h7RX7ENEcFXq 23UhO0nAais3a12jjVoK69v80lo7QQNaqrWDiXytMe0D0oLLgxvA1KDVyROKhSjs5qVP kg5sdzKfF06IXw0w7BbR4dF3PFWoQoKyHZ2vPmMqsGlOvqHUDtSVqa5rACy/2Bn/FvZR gkbF+R/M3Q+VQSYCTvwtb1Ou0o4RCG/Ji4+BQyjb4t9scBZTZQ26QkHMZlHK9h/d6Bwn MPjQ== X-Gm-Message-State: AOJu0YwzWD81Hk+j14FgS17L5GGuO1fgDVuexIcM3Fqs1kz0apMrLFxK iryGAS5sJDO+0w7O9J1qwz4= X-Received: by 2002:a05:6a20:3941:b0:181:8654:8279 with SMTP id r1-20020a056a20394100b0018186548279mr5059009pzg.47.1698998691363; Fri, 03 Nov 2023 01:04:51 -0700 (PDT) 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 l1-20020a17090a72c100b002790ded9c6dsm834378pjk.31.2023.11.03.01.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 01:04:50 -0700 (PDT) From: Peter Yin <peteryin.openbmc@gmail.com> To: patrick@stwcx.xyz, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Peter Yin <peteryin.openbmc@gmail.com>, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: hwmon: Add mps mp5990 driver bindings Date: Fri, 3 Nov 2023 16:01:26 +0800 Message-Id: <20231103080128.1204218-2-peteryin.openbmc@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231103080128.1204218-1-peteryin.openbmc@gmail.com> References: <20231103080128.1204218-1-peteryin.openbmc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE,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: <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]); Fri, 03 Nov 2023 01:05:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781529265310887459 X-GMAIL-MSGID: 1781529265310887459 |
Series |
hwmon: (pmbus) Add support for MPS Multi-phase mp5990
|
|
Commit Message
Peter Yin
Nov. 3, 2023, 8:01 a.m. UTC
Add a device tree bindings for mp5990 device.
Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
---
.../devicetree/bindings/hwmon/mps,mp5990.yaml | 43 +++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml
Comments
Hey, On Fri, Nov 03, 2023 at 04:01:26PM +0800, Peter Yin wrote: > Add a device tree bindings for mp5990 device. > > Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> > --- > .../devicetree/bindings/hwmon/mps,mp5990.yaml | 43 +++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml b/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml > new file mode 100644 > index 000000000000..7533d69f1922 > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml > @@ -0,0 +1,43 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/mps,mp5990.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices MP5990 HSC Controller Analog Devices? Also, could you write that out rather than using the "HSC" acronym? > + > +maintainers: > + - Peter Yin <peteryin.openbmc@gmail.com> > + > +description: | > + Analog Devices MP5990 HSC Controller Ditto here, Analog Devices? > + > + Datasheets: > + https://www.monolithicpower.com/en/mp5990.html > + > +properties: > + compatible: > + enum: > + - mps,mp5990 Do you expect this list to grow? If not, just use const: instead of enum: > + > + reg: > + description: I2C address of slave device. Can drop this description. Cheers, Conor. > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + power-sensor@20 { > + reg = <0x20>; > + compatible = "mps,mp5990"; > + }; > + }; > -- > 2.25.1 >
diff --git a/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml b/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml new file mode 100644 index 000000000000..7533d69f1922 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/mps,mp5990.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/mps,mp5990.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MP5990 HSC Controller + +maintainers: + - Peter Yin <peteryin.openbmc@gmail.com> + +description: | + Analog Devices MP5990 HSC Controller + + Datasheets: + https://www.monolithicpower.com/en/mp5990.html + +properties: + compatible: + enum: + - mps,mp5990 + + reg: + description: I2C address of slave device. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + power-sensor@20 { + reg = <0x20>; + compatible = "mps,mp5990"; + }; + };