From patchwork Wed Jan 31 05:55:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5b6Q5rC46KyE?= X-Patchwork-Id: 194501 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1693584dyb; Tue, 30 Jan 2024 21:57:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBvIkmJ/6rkLYyj06ilyeW+9lohpExylP3vEZnNHQ9RpLONd8WI1ZbjHjY5XYWuM9w1+Uv X-Received: by 2002:a05:6214:ca9:b0:68c:444e:2bea with SMTP id s9-20020a0562140ca900b0068c444e2beamr3775552qvs.6.1706680672578; Tue, 30 Jan 2024 21:57:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706680672; cv=pass; d=google.com; s=arc-20160816; b=XMuBJwEtwp1ArzNIZfEbGEw4vnw6X4wCeE2X7Nhba4ij1nAcdlaKh+QHVtiUGoTyRg V66Fzi73H52EhQeZ3U/Tf8KsVb427HE24+3R2Pa+X4b8j/XAWeHqJE+Vw6a6ax0TSFUl hDwmiqFrG5QYxTOlKR7Gd/ngBT6kk8rYrXEDLyZsU0EiO48JzVWm0gBKH55UcntHbJqL J3C3qqiCFXeokMNgT5q6o7dNQkgCaPFmpHglJ3+LoFaJs75pMtsf/bUT50LsdkhjUUMR p07/2N6kobeSi9QrodLqqM/m5sWd4NKMjXlC6e9P0M2jMhZS52NXzaygofQ1f4ckj9nT dkZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=DwfM1rJCcQryVjF8O0WNubhcGyoUuP04qt8oaDsGtxo=; fh=kk6Psa9+lv2GkKZjEsEGExcWjhd1F4e8yW0CKD1XVV4=; b=Vd6/u0/TWSZwYCpWGJQSbPq+VcE8zXgncZNLUiEA7LkGG8V76zrxaoz840wQknp3P9 CvYQhNydkKPYYyuI70gNfYfxEJhmgJdVkbkhfc3Na9AKIgdyoibB7CC+alVEVlsTouTL 4sdsXz9GqC3J7vdkmej5ytpfoh5JK3Dn4n8CRIbr/W5gRpF0CRm9Kkf5HaF6y8oMEsOG YvB6WBZ9o/PemvTWagYea2vh3F9+edrrT3xmdlzpID9V7Z2Olk0bcmLdrTlK2QnZ8v6x Q9kb0gRDJ1oQKawLeY7YQ2fWrr+bhrZhPUaJgRQByAAnWAEztsIoHD6wJtuDuFzJ5pTI W5Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Gm7KvZNk; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45797-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45797-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXSPXffheEbbQjrWUJVUwsqw+TcHyEF3hACKALDZR20+Ui+/LjB2UIamx1xTb3v1aCripPWE/A0PZ6+lj4z1R/Kza7Crg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 3-20020a0562140d4300b0068c4faf2798si5625864qvr.142.2024.01.30.21.57.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 21:57:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45797-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Gm7KvZNk; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45797-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45797-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 199E51C214F6 for ; Wed, 31 Jan 2024 05:57:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 831103E494; Wed, 31 Jan 2024 05:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Gm7KvZNk" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B04C3DB8C; Wed, 31 Jan 2024 05:57:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706680653; cv=none; b=u6gs9g/cGGgwIkv8Rm1t9e/uT4Ad3vF1ID79U8S5CO7ydWUBjs7+OVYPPVDDJS3MkcCZRHonMqhhwqqtjrXRAkP29LXcGamf86lWsYlpG7WPHSSSH/3vXx8hoLLoy/i/JMUeh0uOCe0nag1R0lolEBhkqZzVFBOXMy8xrg79gFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706680653; c=relaxed/simple; bh=yExbTaxNujpw4MVvw6DMvGP2n9jHMUjfnafp46vGVVI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sRPSwU2TcO03mdOvYmvTo3PBa2aHGTGFLS3ETsLhh2akeCkTMJ+CnnkYOJYZpxAM9zA4IGxEUNeO82t/FYBWi0LNwtWtNfzMvnEWUf7ffmPsZga7ohoVdnlx4VawBqRV3r2eCLUd6rM1L3/kbll8b+ETEMLu65mxILijjwvkWv8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Gm7KvZNk; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6de0ba30994so400853b3a.1; Tue, 30 Jan 2024 21:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706680651; x=1707285451; 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=DwfM1rJCcQryVjF8O0WNubhcGyoUuP04qt8oaDsGtxo=; b=Gm7KvZNkpb2JQY+2Wx8+IdWD97aI0tLgCglD24Q0xq0xiGpOiQblALbjqhvUyRyNNw +sVprWLFNr3kvZxs268dOP+7N2gCiHQmkBVhiu0wE/RmwIXeF6hTzPqW3pPZ7Gy8dXgz 8RVkiDluP4v4N/O/yfXhF8PVa8j5WCo1S4r19ks+/MlqEO1KE9VTSIMFYlp97keV8qls hrcitQXb+MNMxkolLCH4gpidPJ/K0AH4fwcGcJuz8CYIlor/PGix+xVCbL+k/8Ec3h2f sHemtFfYO+Np2Cwl8qgURgb0BM4R3udNyDTMtaXKYKabnn65mymufpaHHIjg7LfIGGKo sELg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706680651; x=1707285451; 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=DwfM1rJCcQryVjF8O0WNubhcGyoUuP04qt8oaDsGtxo=; b=MuRkhPFI8c+QnQxVKTSJamW5UXYxyF556FZ9thc6YYSG2N927fGEZkOs1tRZEYuX8+ Fzi/FNBxoCHbjNYMDbatPP2uDyErrJ4h4eLgu+DcI3ZmlaZzHQ1oeUFqKy7BC869/zXZ U8TwPZoywaJeZzvXHPfmnsczogxtZ7od5ZIzElyRE3GnWYlU7qj4ruNRRVvr8FcCDd+2 S97gM8UqVXbZTaHaZTnKE7nCPUeLmzvSahksWJwH7b1W1wLwd0kPxgNsddF6XoO+v6Zc +DiPj1G3XXQu4JyD1qADIxMgvB7jkB/WIL2xJrFoebtAgbYkWSLV70r0nFO8BZnbW6Pk Y4bA== X-Gm-Message-State: AOJu0Ywkr9N2ahXZj+VPMjzGcbkTHkmkdCBeGcL0EvTFp51U+G970zMl NDN9zdRFzhnBjgWibLkWOUyg11nC15pv/Yf5me9+5weqtGyOcgj5 X-Received: by 2002:a05:6a00:981:b0:6d9:a074:659f with SMTP id u1-20020a056a00098100b006d9a074659fmr4506003pfg.13.1706680651313; Tue, 30 Jan 2024 21:57:31 -0800 (PST) Received: from charles-System-Product-Name.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id r20-20020aa78b94000000b006ddddc7701fsm8904385pfd.4.2024.01.30.21.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 21:57:31 -0800 (PST) From: Charles Hsu To: jdelvare@suse.com, linux@roeck-us.net, corbet@lwn.net, Delphine_CC_Chiu@Wiwynn.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Charles Hsu Subject: [PATCH v3 1/2] hwmon: Add driver for MPS MPQ8785 Synchronous Step-Down Converter Date: Wed, 31 Jan 2024 13:55:25 +0800 Message-Id: <20240131055526.2700452-1-ythsu0511@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789584393103780233 X-GMAIL-MSGID: 1789584393103780233 Add support for mpq8785 device from Monolithic Power Systems, Inc. (MPS) vendor. This is synchronous step-down controller. Signed-off-by: Charles Hsu --- Change in v1: Initial patchset. Change in v2: 1.Add pmbus support status registers. 2.Add mpq8785 in trivial-devices.yaml. 3.Remove format[PSC_VOLTAGE_OUT]. 4.Fix MODULE_DESCRIPTION. Change in v3: 1.Identify vout_mode. 2.Separate dt-binding. --- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/mpq8785.rst | 94 +++++++++++++++++++++++++++++++++ drivers/hwmon/pmbus/Kconfig | 9 ++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/mpq8785.c | 91 +++++++++++++++++++++++++++++++ 5 files changed, 196 insertions(+) create mode 100644 Documentation/hwmon/mpq8785.rst create mode 100644 drivers/hwmon/pmbus/mpq8785.c diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index c7ed1f73ac06..085ad6ca9b05 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -163,6 +163,7 @@ Hardware Monitoring Kernel Drivers mp2975 mp5023 mp5990 + mpq8785 nct6683 nct6775 nct7802 diff --git a/Documentation/hwmon/mpq8785.rst b/Documentation/hwmon/mpq8785.rst new file mode 100644 index 000000000000..bf8176b87086 --- /dev/null +++ b/Documentation/hwmon/mpq8785.rst @@ -0,0 +1,94 @@ +.. SPDX-License-Identifier: GPL-2.0-only + +Kernel driver mpq8785 +======================= + +Supported chips: + + * MPS MPQ8785 + + Prefix: 'mpq8785' + +Author: Charles Hsu + +Description +----------- + +The MPQ8785 is a fully integrated, PMBus-compatible, high-frequency, synchronous +buck converter. The MPQ8785 offers a very compact solution that achieves up to +40A output current per phase, with excellent load and line regulation over a +wide input supply range. The MPQ8785 operates at high efficiency over a wide +output current load range. + +The PMBus interface provides converter configurations and key parameters +monitoring. + +The MPQ8785 adopts MPS's proprietary multi-phase digital constant-on-time (MCOT) +control, which provides fast transient response and eases loop stabilization. +The MCOT scheme also allows multiple MPQ8785 devices to be connected in parallel +with excellent current sharing and phase interleaving for high-current +applications. + +Fully integrated protection features include over-current protection (OCP), +over-voltage protection (OVP), under-voltage protection (UVP), and +over-temperature protection (OTP). + +The MPQ8785 requires a minimal number of readily available, standard external +components, and is available in a TLGA (5mmx6mm) package. + +Device compliant with: + +- PMBus rev 1.3 interface. + +The driver exports the following attributes via the 'sysfs' files +for input voltage: + +**in1_input** + +**in1_label** + +**in1_max** + +**in1_max_alarm** + +**in1_min** + +**in1_min_alarm** + +**in1_crit** + +**in1_crit_alarm** + +The driver provides the following attributes for output voltage: + +**in2_input** + +**in2_label** + +**in2_alarm** + +The driver provides the following attributes for output current: + +**curr1_input** + +**curr1_label** + +**curr1_max** + +**curr1_max_alarm** + +**curr1_crit** + +**curr1_crit_alarm** + +The driver provides the following attributes for temperature: + +**temp1_input** + +**temp1_max** + +**temp1_max_alarm** + +**temp1_crit** + +**temp1_crit_alarm** diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 294808f5240a..557ae0c414b0 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -377,6 +377,15 @@ config SENSORS_MPQ7932 This driver can also be built as a module. If so, the module will be called mpq7932. +config SENSORS_MPQ8785 + tristate "MPS MPQ8785" + help + If you say yes here you get hardware monitoring functionality support + for power management IC MPS MPQ8785. + + This driver can also be built as a module. If so, the module will + be called mpq8785. + config SENSORS_PIM4328 tristate "Flex PIM4328 and compatibles" help diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile index cf8a76744545..f14ecf03ad77 100644 --- a/drivers/hwmon/pmbus/Makefile +++ b/drivers/hwmon/pmbus/Makefile @@ -39,6 +39,7 @@ obj-$(CONFIG_SENSORS_MP2975) += mp2975.o obj-$(CONFIG_SENSORS_MP5023) += mp5023.o obj-$(CONFIG_SENSORS_MP5990) += mp5990.o obj-$(CONFIG_SENSORS_MPQ7932) += mpq7932.o +obj-$(CONFIG_SENSORS_MPQ8785) += mpq8785.o obj-$(CONFIG_SENSORS_PLI1209BC) += pli1209bc.o obj-$(CONFIG_SENSORS_PM6764TR) += pm6764tr.o obj-$(CONFIG_SENSORS_PXE1610) += pxe1610.o diff --git a/drivers/hwmon/pmbus/mpq8785.c b/drivers/hwmon/pmbus/mpq8785.c new file mode 100644 index 000000000000..b5bfc5d8a96b --- /dev/null +++ b/drivers/hwmon/pmbus/mpq8785.c @@ -0,0 +1,91 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Driver for MPS MPQ8785 Step-Down Converter + */ + +#include +#include +#include +#include "pmbus.h" + +static int mpq8785_identify(struct i2c_client *client, + struct pmbus_driver_info *info) +{ + int vout_mode; + + vout_mode = pmbus_read_byte_data(client, 0, PMBUS_VOUT_MODE); + if (vout_mode >= 0 && vout_mode != 0xff) { + switch (vout_mode >> 5) { + case 0: + info->format[PSC_VOLTAGE_OUT] = linear; + break; + case 1: + case 2: + /* Direct mode or VID mode: Vout_Actual = READ_VOUT*LSB, + LSB = 1.5625 mV/LSB */ + info->format[PSC_VOLTAGE_OUT] = direct, + info->m[PSC_VOLTAGE_OUT] = 64; + info->b[PSC_VOLTAGE_OUT] = 0; + info->R[PSC_VOLTAGE_OUT] = 1; + break; + default: + return -ENODEV; + } + } + + return 0; +}; + +static struct pmbus_driver_info mpq8785_info = { + .pages = 1, + .format[PSC_VOLTAGE_IN] = direct, + .format[PSC_CURRENT_OUT] = direct, + .format[PSC_TEMPERATURE] = direct, + .m[PSC_VOLTAGE_IN] = 4, + .b[PSC_VOLTAGE_IN] = 0, + .R[PSC_VOLTAGE_IN] = 1, + .m[PSC_CURRENT_OUT] = 16, + .b[PSC_CURRENT_OUT] = 0, + .R[PSC_CURRENT_OUT] = 0, + .m[PSC_TEMPERATURE] = 1, + .b[PSC_TEMPERATURE] = 0, + .R[PSC_TEMPERATURE] = 0, + .func[0] = + PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT | + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT | + PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT | + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP, + .identify = mpq8785_identify, +}; + +static int mpq8785_probe(struct i2c_client *client) +{ + return pmbus_do_probe(client, &mpq8785_info); +}; + +static const struct i2c_device_id mpq8785_id[] = { + { "mpq8785", 0 }, + { }, +}; +MODULE_DEVICE_TABLE(i2c, mpq8785_id); + +static const struct of_device_id __maybe_unused mpq8785_of_match[] = { + { .compatible = "mps,mpq8785" }, + {} +}; +MODULE_DEVICE_TABLE(of, mpq8785_of_match); + +static struct i2c_driver mpq8785_driver = { + .driver = { + .name = "mpq8785", + .of_match_table = of_match_ptr(mpq8785_of_match), + }, + .probe_new = mpq8785_probe, + .id_table = mpq8785_id, +}; + +module_i2c_driver(mpq8785_driver); + +MODULE_AUTHOR("Charles Hsu "); +MODULE_DESCRIPTION("PMBus driver for MPS MPQ8785"); +MODULE_LICENSE("GPL"); From patchwork Wed Jan 31 05:55:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5b6Q5rC46KyE?= X-Patchwork-Id: 194503 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1694894dyb; Tue, 30 Jan 2024 22:01:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQX89KyuSucrOgrVZq6ogoGJ810dDrV142chW9hJBOB6JHjd2m7gFBdQTu6K9fMYPCfg3w X-Received: by 2002:a05:6870:71c9:b0:218:cfbb:a85c with SMTP id p9-20020a05687071c900b00218cfbba85cmr242068oag.37.1706680880381; Tue, 30 Jan 2024 22:01:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706680880; cv=pass; d=google.com; s=arc-20160816; b=GHw82McLM/Fk7eGOvlNdDKF7YstcM7Do3v8LXkoZ0XTkiFH9z25Yz+fmhOx+U7hkSz 2uM98P4RElqefJZKkAEofx7O6Pgwla/AIQEPXh5iypQjF8q4dkELE3t51JkID4y81BIC oyui1r0KgXMcwMHSZweCG5UbrtWM7qFQ/RrjZNezUHpTjZDFQMy5/cHo4ZYhUD5WZWhM 9ngtKeGti1T6U5PNTuVy+g5Y9KdDy/ClpYTdyR1cbtFUQQLLQrQZulUrtCSIeFuWinzi xx2iOxTCCbI/2R5gqvEbQ7T8fdWaDOpDU8iCEFoNj7s91nTWMY3F241ykoL5T62fxuq6 YvhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0dHEweAsyBseNZ/atWmXcoaWQ2MjiSsil4Mz+T/iMO0=; fh=bbskUeUJ+yCGVB/nKK0B7QUVnQjYazZPCe6VgAn3gWo=; b=rvjuQYK4JOVpeT1Zt0iGvadxpSzcCEsuPfFUUE1zg/nAnF7IVFcxmhWX2KGo8riT3H 0kC3GX0wKn993J659I6eKiTApqgIx6+jaT845ZoskFAHPhC7LlFLKotbKpLrjSQTZIjw a3c6ebX2y5X0zbfw1Oi7NGXNdyzRvdVckzgapdF6dTcIeOpfdowMIiQA8eUH4JS3dYkh vgX7SzbLg3CWIOOyWILoCMjGzwq8kJXSOFXgsDwwWgS0EGAlkF4lvzOXpFr9DcTRut50 eG5d6+0QEbggYjXaG5JBMyKZfl84mxKDGYdlnMijSW5GRlsI/Ar6g9Lpx/LgomFT3v+l zTpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ewh1VKAJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45799-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45799-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXhycBehaENTLXX8oK8S9YfdfvfJtFgPRa6Uv2s0ST7XtAByW3oajpk+85GvlvNtU0QPz2VQ1TeCiJ0bSBckSsgfphjgw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j71-20020a63804a000000b005ce097ce679si8815226pgd.741.2024.01.30.22.01.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 22:01:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45799-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ewh1VKAJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45799-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45799-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8E75CB24F01 for ; Wed, 31 Jan 2024 05:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1F4C3E496; Wed, 31 Jan 2024 05:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ewh1VKAJ" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F1653DB97; Wed, 31 Jan 2024 05:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706680730; cv=none; b=asc3FJ5H+wlUofieqTegQ3nHUYAVhZ+jpOJ6FDUeutwJ3bwunZSs+kKZ38FxnYctb7HMYCX9ukQEmvCAr5yiTxbqrHz4UVB6akBP6cShpdmh7howDBH43o5wS/5z9WO9AHCsbJjAZimnLzFxXB7QKAGsgP7hqAxRS5EHpkmBC/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706680730; c=relaxed/simple; bh=0tOTsazWTcs9QYzc3VNchWmVv4Rg9HgIxUYj/cpbTtY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iO2rJUAlR/rTmzAyjRkb3RKh0/qMKFvQV+8YfkU/i1tLWdgnr08gUmh4g9iCqt+TlKP0bN7zlJbF+YwI4U4+VTeATi90OMH/bZDt5SQlod+uXjb82mT5lUo63Be/1Agv8/Olabse4wy0pJ2XRPbW1HcO56fRd6CzwliJgQJM2Qc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ewh1VKAJ; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6ddfb0dac4dso3414182b3a.1; Tue, 30 Jan 2024 21:58:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706680728; x=1707285528; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0dHEweAsyBseNZ/atWmXcoaWQ2MjiSsil4Mz+T/iMO0=; b=Ewh1VKAJS2lNUkD5rXKZlDBoflb0g8XxswMjDDltlAXIXklz1wtpJAr1d+luUUIncK K3ryJY1XT9CMC4X90PphvEosYfvqlXS5gbwy2RKkcfqh+n+VQa3LqtD4kGjJ9xtTVgfb 1/qMmVRUlgYiAz8QA1ycTjm2up4G0ThMlu4KR70F9zX8xSrhSkf/rXgdwBkgAidhfyC6 YF20jHdjLS4xqldfDTl5vCqLgq1k1PJsbRjfpytseemU/pTD9pXIiHcZHXRkL91jxWPt JaYzK35Y49fs8uxpo2+vRwjrcdcBMy2dIHk64VDu8XQxvvT9J3UyyYTOf8wav+kCI4ul sWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706680728; x=1707285528; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0dHEweAsyBseNZ/atWmXcoaWQ2MjiSsil4Mz+T/iMO0=; b=aE2pQabwS2cP7aDcg+9VlSdHrilGC4SvyMBMvUjO3tTp8SHaoVZU2ZmxmByKHXZ3Ur b7+bLxC+PlFtxaMYWtxqhKL0brc2fvuUe4izOpVRyDZ6dhF7cziryxzt+ocWLCFYWhsc BWgMd/mjCg9nB3DxHzGJA+6isHRr2uUEqpW5bUo9jZz/xoaPs5+bZVBUK3Selqa+45sE Yisvr/G7w98JbFmmi/JCYiHKv4mWw1RkfXohCyxoHsEGGB9CWcJMwFRViydcm8gNiRs7 giN3+Xg/whVScbHT4lAlX4U6XMzC0QIcTbNkRbyqgcflEKrYfwBM/E3sp5KbszbErdaE EAJw== X-Gm-Message-State: AOJu0YxcUMlAA9YpRx4DYCkXCqZlDWt/A39Tb1WsU61yFtUIv9sRRlZa WYoBfTS2yaVI8f8S5vZsQI4sSiifnXR2lDSRnpl6xM29xG/57zh8 X-Received: by 2002:aa7:87c3:0:b0:6de:2f30:9aa4 with SMTP id i3-20020aa787c3000000b006de2f309aa4mr778100pfo.33.1706680727878; Tue, 30 Jan 2024 21:58:47 -0800 (PST) Received: from charles-System-Product-Name.dhcpserver.bu9bmc.local (1-34-21-66.hinet-ip.hinet.net. [1.34.21.66]) by smtp.gmail.com with ESMTPSA id r20-20020aa78b94000000b006ddddc7701fsm8904385pfd.4.2024.01.30.21.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 21:58:47 -0800 (PST) From: Charles Hsu To: jdelvare@suse.com, linux@roeck-us.net, corbet@lwn.net, Delphine_CC_Chiu@Wiwynn.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Charles Hsu Subject: [PATCH v3 2/2] dt-bindings: Add MPQ8785 voltage regulator device Date: Wed, 31 Jan 2024 13:55:26 +0800 Message-Id: <20240131055526.2700452-2-ythsu0511@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240131055526.2700452-1-ythsu0511@gmail.com> References: <20240131055526.2700452-1-ythsu0511@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789584610931039656 X-GMAIL-MSGID: 1789584610931039656 Monolithic Power Systems, Inc. (MPS) synchronous step-down converter. Signed-off-by: Charles Hsu Acked-by: Conor Dooley --- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 79dcd92c4a43..088b23ed2ae6 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -129,6 +129,8 @@ properties: - mps,mp2975 # Monolithic Power Systems Inc. multi-phase hot-swap controller mp5990 - mps,mp5990 + # Monolithic Power Systems Inc. synchronous step-down converter mpq8785 + - mps,mpq8785 # Honeywell Humidicon HIH-6130 humidity/temperature sensor - honeywell,hi6130 # IBM Common Form Factor Power Supply Versions (all versions)