lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20250510091937.2298256-6-paweldembicki@gmail.com> Date: Sat, 10 May 2025 11:18:48 +0200 From: Pawel Dembicki <paweldembicki@...il.com> To: linux-hwmon@...r.kernel.org Cc: Pawel Dembicki <paweldembicki@...il.com>, Jean Delvare <jdelvare@...e.com>, Guenter Roeck <linux@...ck-us.net>, Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, Jonathan Corbet <corbet@....net>, Noah Wang <noahwang.wang@...look.com>, Naresh Solanki <naresh.solanki@...ements.com>, Michal Simek <michal.simek@....com>, Fabio Estevam <festevam@...il.com>, Grant Peltier <grantpeltier93@...il.com>, Laurent Pinchart <laurent.pinchart@...asonboard.com>, Peter Zijlstra <peterz@...radead.org>, Shen Lichuan <shenlichuan@...o.com>, Greg KH <gregkh@...uxfoundation.org>, Charles Hsu <ythsu0511@...il.com>, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org Subject: [PATCH v3 5/5] hwmon: pmbus: mpq8785: Add support for MPM3695 family Add support for the Monolithic Power Systems MPM3695 family. It contains four devices with suffixes: -10, -20, -25 and -100. The device is PMBus compliant and shares characteristics with the MPM82504. MPM3695-25 has different VOLTAGE_SCALE_LOOP register size [11:0] and it needs to be separated because it will be configured in the next commit. Tested with device tree based matching (MPM3695-10). Signed-off-by: Pawel Dembicki <paweldembicki@...il.com> --- v3: - fix alphabetical order in couple places - adjust patch after patch order change v2: - Added whole MPM3695 family --- Documentation/hwmon/mpq8785.rst | 13 +++++++++---- drivers/hwmon/pmbus/mpq8785.c | 10 +++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Documentation/hwmon/mpq8785.rst b/Documentation/hwmon/mpq8785.rst index b91fefb1a84c..198d5dfd7c30 100644 --- a/Documentation/hwmon/mpq8785.rst +++ b/Documentation/hwmon/mpq8785.rst @@ -5,6 +5,7 @@ Kernel driver mpq8785 Supported chips: + * MPS MPM3695 family * MPS MPM82504 * MPS MPQ8785 @@ -15,6 +16,14 @@ Author: Charles Hsu <ythsu0511@...il.com> Description ----------- +The MPM3695 family is a scalable, ultra-thin, fully integrated power module with +a PMBus interface. It offers a complete power solution that achieves up to +10A (-10 variant), 20A (-25 variant), 25A (-20 variant), 100A (-100 variant) +of output current with excellent load and line regulation across a wide input +voltage range. It operates at high efficiency over a wide load range, and can +be parallled to deliver higher current. Variants -10,-20 and -100 have different +voltage scale configuration register range (10 bits) than -25 version (11 bits). + The MPM82504 is a quad 25A, scalable, fully integrated power module with a PMBus interface. The device offers a complete power solution that achieves up to 25A per output channel. The MPM82504 has four output channels that can be paralleled @@ -42,10 +51,6 @@ Fully integrated protection features include over-current protection (OCP), over-voltage protection (OVP), under-voltage protection (UVP), and over-temperature protection (OTP). -All supported modules require a minimal number of readily available, standard -external components. The MPM82504 is available in a BGA (15mmx30mmx5.18mm) -package and the MPQ8785 is available in a TLGA (5mmx6mm) package. - Device compliant with: - PMBus rev 1.3 interface. diff --git a/drivers/hwmon/pmbus/mpq8785.c b/drivers/hwmon/pmbus/mpq8785.c index 1e12e7267a7f..6c9c0970e5d6 100644 --- a/drivers/hwmon/pmbus/mpq8785.c +++ b/drivers/hwmon/pmbus/mpq8785.c @@ -13,9 +13,11 @@ #define MPM82504_READ_TEMPERATURE_1_SIGN BIT(9) #define MPM82504_READ_TEMPERATURE_1_SIGN_POS 9 -enum chips { mpm82504, mpq8785 }; +enum chips { mpm3695, mpm3695_25, mpm82504, mpq8785 }; static u16 voltage_scale_loop_max_val[] = { + [mpm3695] = GENMASK(9, 0), + [mpm3695_25] = GENMASK(11, 0), [mpm82504] = GENMASK(9, 0), [mpq8785] = GENMASK(10, 0), }; @@ -85,6 +87,8 @@ static struct pmbus_driver_info mpq8785_info = { }; static const struct i2c_device_id mpq8785_id[] = { + { "mpm3695", mpm3695 }, + { "mpm3695-25", mpm3695_25 }, { "mpm82504", mpm82504 }, { "mpq8785", mpq8785 }, { }, @@ -92,6 +96,8 @@ static const struct i2c_device_id mpq8785_id[] = { MODULE_DEVICE_TABLE(i2c, mpq8785_id); static const struct of_device_id __maybe_unused mpq8785_of_match[] = { + { .compatible = "mps,mpm3695", .data = (void *)mpm3695 }, + { .compatible = "mps,mpm3695-25", .data = (void *)mpm3695_25 }, { .compatible = "mps,mpm82504", .data = (void *)mpm82504 }, { .compatible = "mps,mpq8785", .data = (void *)mpq8785 }, {} @@ -116,6 +122,8 @@ static int mpq8785_probe(struct i2c_client *client) chip_id = (kernel_ulong_t)i2c_get_match_data(client); switch (chip_id) { + case mpm3695: + case mpm3695_25: case mpm82504: info->format[PSC_VOLTAGE_OUT] = direct; info->m[PSC_VOLTAGE_OUT] = 8; -- 2.43.0
Powered by blists - more mailing lists