From patchwork Sat Oct 7 16:58:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 730531 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43DFA1549C for ; Sat, 7 Oct 2023 16:58:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linumiz.com header.i=@linumiz.com header.b="JY+dO9v4" Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A56D0BF for ; Sat, 7 Oct 2023 09:58:24 -0700 (PDT) Received: from eig-obgw-6002a.ext.cloudfilter.net ([10.0.30.222]) by cmsmtp with ESMTP id opboqktgcIBlVpAcmqdLu0; Sat, 07 Oct 2023 16:57:56 +0000 Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTPS id pAdBqw0ijQ8G7pAdCqDxfy; Sat, 07 Oct 2023 16:58:23 +0000 X-Authority-Analysis: v=2.4 cv=M/pelg8s c=1 sm=1 tr=0 ts=65218e2f a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=J9R/PiKqv2o3jGxbVGXx4w==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=bhdUkHdE2iEA:10 a=oz0wMknONp8A:10 a=vU9dKmh3AAAA:8 a=rM9D5TWVn6pDyQQmvLkA:9 a=rsP06fVo5MYu2ilr0aT5:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4z+nM1mxoZBItzWTXHKdYlwbBxVGpaluekfGFIeavRs=; b=JY+dO9v4v3xDE3rAuXhtdLgEdk sbY++wXnmb0Ka9Cf9hmEQ7wTnnnqzwqKpNbpLFcml3m0KtrBpCft/qEFvIBkRmgcRd8Nkg+Ngtb3w a/StchzVUkslyrKqwEP0FfI3IyvtKKxrsjKHlMu3drNXk87qnOIPOAWW9rWsvLYY/dxjBugvDxrE1 4RBScLLvHRUwBnO9cPOFend9tP81FEza6IWF9Fise07kjaiEqOdkI6YrEafaLlI9Osu4e3qdFw1s/ TbGQ9AjE2z8Knunumy/0AUlzvHTF8Flv7P6t3P2RRS7N0eVNjXq+yff7Z6xXIU8Pz/iVJpagU2Lyj ZjzByz1Q==; Received: from [103.186.120.251] (port=39748 helo=discovery..) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qpAdA-002Tlj-09; Sat, 07 Oct 2023 22:28:20 +0530 From: Saravanan Sekar To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@roeck-us.net, jdelvare@suse.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, Saravanan Sekar Subject: [PATCH v3 1/3] hwmon: (pmbus/mpq7932) Get page count based on chip info Date: Sat, 7 Oct 2023 22:28:01 +0530 Message-Id: <20231007165803.239718-2-saravanan@linumiz.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231007165803.239718-1-saravanan@linumiz.com> References: <20231007165803.239718-1-saravanan@linumiz.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 103.186.120.251 X-Source-L: No X-Exim-ID: 1qpAdA-002Tlj-09 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (discovery..) [103.186.120.251]:39748 X-Source-Auth: saravanan@linumiz.com X-Email-Count: 13 X-Org: HG=dishared_whb_net_legacy;ORG=directi; X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfMim7SiZ0DtgmLVdBsSnfVbsgHIgPyzFMzY3fqacN/V2kxPF+ds+UzlUDy0qICBJh7QH/ZNGLjiqCLN2AAJVYgtbwipkVHGi6b9RW0icGgfZJZM1PWYI VC7chGKHcoEQuHzx+S7q8PYwKgs+QKX83Mv+x9iC7LAgnhic2TI/4Aqi1x8W5k/2ZNuKxZMki/+zjBXJvmNbFx7ubXlBrp0cDgc= X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Get page count using compatible match to support the series of chipsets which differs in number of regualator/page. Signed-off-by: Saravanan Sekar --- drivers/hwmon/pmbus/mpq7932.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/pmbus/mpq7932.c b/drivers/hwmon/pmbus/mpq7932.c index 6c62f01da7c6..723c314a57a2 100644 --- a/drivers/hwmon/pmbus/mpq7932.c +++ b/drivers/hwmon/pmbus/mpq7932.c @@ -105,7 +105,7 @@ static int mpq7932_probe(struct i2c_client *client) return -ENOMEM; info = &data->info; - info->pages = MPQ7932_NUM_PAGES; + info->pages = (int)(unsigned long)device_get_match_data(&client->dev); info->format[PSC_VOLTAGE_OUT] = direct; info->m[PSC_VOLTAGE_OUT] = 160; info->b[PSC_VOLTAGE_OUT] = -33; @@ -115,7 +115,7 @@ static int mpq7932_probe(struct i2c_client *client) } #if IS_ENABLED(CONFIG_SENSORS_MPQ7932_REGULATOR) - info->num_regulators = ARRAY_SIZE(mpq7932_regulators_desc); + info->num_regulators = info->pages; info->reg_desc = mpq7932_regulators_desc; #endif @@ -129,7 +129,7 @@ static int mpq7932_probe(struct i2c_client *client) } static const struct of_device_id mpq7932_of_match[] = { - { .compatible = "mps,mpq7932"}, + { .compatible = "mps,mpq7932", .data = (void *)MPQ7932_NUM_PAGES }, {}, }; MODULE_DEVICE_TABLE(of, mpq7932_of_match); From patchwork Sat Oct 7 16:58:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 730703 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D43A5232 for ; Sat, 7 Oct 2023 16:58:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linumiz.com header.i=@linumiz.com header.b="mQkXFRKq" Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0135DBA for ; Sat, 7 Oct 2023 09:58:26 -0700 (PDT) Received: from eig-obgw-5002a.ext.cloudfilter.net ([10.0.29.215]) by cmsmtp with ESMTP id oX3oqPunlQUgRpAdGqWPk3; Sat, 07 Oct 2023 16:58:26 +0000 Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTPS id pAdEqsoUdwATbpAdFqXJmK; Sat, 07 Oct 2023 16:58:26 +0000 X-Authority-Analysis: v=2.4 cv=LtCBd1Rc c=1 sm=1 tr=0 ts=65218e32 a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=J9R/PiKqv2o3jGxbVGXx4w==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=bhdUkHdE2iEA:10 a=oz0wMknONp8A:10 a=vU9dKmh3AAAA:8 a=gEfo2CItAAAA:8 a=3wVwG3AGMsDn-ITQ_vwA:9 a=rsP06fVo5MYu2ilr0aT5:22 a=sptkURWiP4Gy88Gu7hUp:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eUcuTet8QT5QESolz39f7W9jI3SYlnZj/s8TwdRqlXg=; b=mQkXFRKqoapyfbifh/aHqaQ+5z uNRcJCfQW9gfYZI4PdFlIQ0BL3YlU001kjLrdZundV888HkbKZVU7aqo0XpMDq2EzdLlHgNUxJ5d2 SDpfMPg7q+2CKLFEVskD3qXc3xRqbTuMz/Qz1p2fD6ep+tX/XX2ndywBXNxtG9agcUDkN9kvnBxBf amECh3j/18RgsKGIUrUB9hQLy1NtFYPyPzdh+7Mie519WJSxnzjG8otrcvv6RvnyTDfcpXGoUrX1a OHXaRdw42kxXhxXlTP7k+1oWipSux5b4+EBRYlPOirx6vo6dPewui6s3KpEePvMeNRcJhAI1kBbc8 Hk4eRUpA==; Received: from [103.186.120.251] (port=39748 helo=discovery..) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qpAdD-002Tlj-0j; Sat, 07 Oct 2023 22:28:23 +0530 From: Saravanan Sekar To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@roeck-us.net, jdelvare@suse.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, Saravanan Sekar Subject: [PATCH v3 2/3] regulator: dt-bindings: Add mps,mpq2286 power-management IC Date: Sat, 7 Oct 2023 22:28:02 +0530 Message-Id: <20231007165803.239718-3-saravanan@linumiz.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231007165803.239718-1-saravanan@linumiz.com> References: <20231007165803.239718-1-saravanan@linumiz.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 103.186.120.251 X-Source-L: No X-Exim-ID: 1qpAdD-002Tlj-0j X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (discovery..) [103.186.120.251]:39748 X-Source-Auth: saravanan@linumiz.com X-Email-Count: 24 X-Org: HG=dishared_whb_net_legacy;ORG=directi; X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfGiss8efpKc3OXNdsmu43WKwY/b68u0AD0Ohvq7pis9BqTUFaqnf5uhV6BuNQxyqQmkOSTowUFN7icR6vQbAZVEJYXDQdGZ7J0efgTJCqYxwIXSmc2oO 4vklyH+6uR6ZBXJ1J4dogYXfNak1GPR0Qt9G2PgpwiBQyKBifepq7e4TbuV0tst5vDZpe5I8MMAofl9pfiL/CXJwGGVOPKi7uHo= X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Document mpq2286 power-management IC. Instead of simple 'buck', 'buck0' is used to keep the driver common which handles multiple regulators. Signed-off-by: Saravanan Sekar --- .../bindings/regulator/mps,mpq2286.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mps,mpq2286.yaml diff --git a/Documentation/devicetree/bindings/regulator/mps,mpq2286.yaml b/Documentation/devicetree/bindings/regulator/mps,mpq2286.yaml new file mode 100644 index 000000000000..594b929fe4b8 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mps,mpq2286.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mps,mpq2286.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Monolithic Power System MPQ2286 PMIC + +maintainers: + - Saravanan Sekar + +properties: + compatible: + enum: + - mps,mpq2286 + + reg: + maxItems: 1 + + regulators: + type: object + + properties: + buck0: + type: object + $ref: regulator.yaml# + + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@3 { + compatible = "mps,mpq2286"; + reg = <0x3>; + + regulators { + buck0 { + regulator-name = "buck0"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + }; + }; + }; +... From patchwork Sat Oct 7 16:58:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 730530 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5948F5232 for ; Sat, 7 Oct 2023 16:58:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linumiz.com header.i=@linumiz.com header.b="R0lG7n9I" Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E7AB9 for ; Sat, 7 Oct 2023 09:58:32 -0700 (PDT) Received: from eig-obgw-6001a.ext.cloudfilter.net ([10.0.30.140]) by cmsmtp with ESMTP id oOazqVQiXqBU3pAdLqa0JA; Sat, 07 Oct 2023 16:58:32 +0000 Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTPS id pAdGqyemIOQjZpAdJq2LlH; Sat, 07 Oct 2023 16:58:30 +0000 X-Authority-Analysis: v=2.4 cv=KLZJsXJo c=1 sm=1 tr=0 ts=65218e36 a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=J9R/PiKqv2o3jGxbVGXx4w==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=bhdUkHdE2iEA:10 a=oz0wMknONp8A:10 a=vU9dKmh3AAAA:8 a=vkTJ7md9u3ILQXjsLOgA:9 a=rsP06fVo5MYu2ilr0aT5:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S1mEjXE9swMM771o0bc5Hhhx27byeazfVy5HXq2TuqY=; b=R0lG7n9Ioab8QJiKp1o0i3AjkG SATpEyfgfQ9QZo/o4C3HGvE9AGqmMCxmLzW5/wY61h6HlxtrGS3l+jRnt7YkiPaARUmqLUSfq6/r/ A1CI4JuyONg06/SyiT+zjZqwUNoqqXbq23uv6O8W1Z91huuXp4gPXC8vg96sF42O4h5wLavxTUuGS VCAK56Zekr3QOSD09H7tyL/mcp3zAmIu7YzFVAwAKlao7Yo1RH+XZhGGbHg7AklfnYlD8Bm8ANN+W ny8/yqXiKnN3PgQwgVIGiGz9Nu7uTDRr2gqRKlBHIdTy4sIJfHhF0Y/u0UhqNQ3lRSlwhNYXRs50d XLbdMA5Q==; Received: from [103.186.120.251] (port=39748 helo=discovery..) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qpAdF-002Tlj-1s; Sat, 07 Oct 2023 22:28:25 +0530 From: Saravanan Sekar To: sravanhome@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@roeck-us.net, jdelvare@suse.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, Saravanan Sekar Subject: [PATCH v3 3/3] hwmon: (pmbus/mpq2286) Add a support for mpq2286 Power Management IC Date: Sat, 7 Oct 2023 22:28:03 +0530 Message-Id: <20231007165803.239718-4-saravanan@linumiz.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231007165803.239718-1-saravanan@linumiz.com> References: <20231007165803.239718-1-saravanan@linumiz.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 103.186.120.251 X-Source-L: No X-Exim-ID: 1qpAdF-002Tlj-1s X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (discovery..) [103.186.120.251]:39748 X-Source-Auth: saravanan@linumiz.com X-Email-Count: 35 X-Org: HG=dishared_whb_net_legacy;ORG=directi; X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfKPU81+YNFrmGExhrCawmaauJsPHmoqbqlwt0KfMjD1fQGx7MyBkjWFqkU6SeuCwOJVp5Ts1we9BYnvzE+39ksHmWSMjvi+BLwrZ3CCmNqrGdS2yy9pY RXoBUQdswIS6zQX8EJtjqUIBWwVFxRav9R/ypi+jYhKk7Fxv18lY8EIXBpZgpmToauCsCe2Z4soZU/eF+8aYSlGfqv4jrsDUwOw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The MPQ2286 is a programmable, high frequency synchronous buck regulator designed to power a variety of Automotive system peripherals. Single buck converters with hardware monitoring capability is configurable over PMBus interface. Signed-off-by: Saravanan Sekar --- drivers/hwmon/pmbus/mpq7932.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hwmon/pmbus/mpq7932.c b/drivers/hwmon/pmbus/mpq7932.c index 723c314a57a2..60d7b8aec05a 100644 --- a/drivers/hwmon/pmbus/mpq7932.c +++ b/drivers/hwmon/pmbus/mpq7932.c @@ -21,6 +21,7 @@ #define MPQ7932_N_VOLTAGES 256 #define MPQ7932_VOUT_MAX 0xFF #define MPQ7932_NUM_PAGES 6 +#define MPQ2286_NUM_PAGES 1 #define MPQ7932_TON_DELAY 0x60 #define MPQ7932_VOUT_STARTUP_SLEW 0xA3 @@ -129,12 +130,14 @@ static int mpq7932_probe(struct i2c_client *client) } static const struct of_device_id mpq7932_of_match[] = { + { .compatible = "mps,mpq2286", .data = (void *)MPQ2286_NUM_PAGES }, { .compatible = "mps,mpq7932", .data = (void *)MPQ7932_NUM_PAGES }, {}, }; MODULE_DEVICE_TABLE(of, mpq7932_of_match); static const struct i2c_device_id mpq7932_id[] = { + { "mpq2286", }, { "mpq7932", }, { }, };