From nobody Tue Jun 16 07:37:02 2026 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (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 B063C3A9625; Fri, 17 Apr 2026 08:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776414495; cv=none; b=n4FRld4gtr8+ogppM6aeA5FLX3HOBREhuGjiddvASeMQlJI/2lpJZ87FIKGNLgvJyfxoqteTZyjGbwxirZbBR/Rw0JU7b+gnq10pq3+QSH648KJbET+3vuurXCxFDpy2b/CLR3mLcjSfsC6Up/Vfjx16+3FqX+9E1AzTCge6WZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776414495; c=relaxed/simple; bh=ARRiuAm3euM3jPyM10A/k7Z8LraeT/Fam/a7tZM+LgE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=GNhKhq+cPDH0nqX7Z066vZxXrqrpr3HF+84jgYJTtOpv3ILPChrkL87Eadbapnwn9vFMVAvx1jNQ87/z/nJk+k9EmRAE2QzNaCRnSAQOHoWDxNPnGdgIeIjPoJPOGVpgS81V1Z6Q8BbU0ao++VZbV7tvjfkcopF+vAtMvoirQC4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=Xosr7A0P; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="Xosr7A0P" Received: from pps.filterd (m0516787.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63H7bHQN203845; Fri, 17 Apr 2026 04:27:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=dyC3f upVH/1PpZ1No+sAqEC+auj9zkyoh6aWpIQV5UU=; b=Xosr7A0PncOmxzNzM/hBD LektY6dYMwEmbw9eDo2bm3vTc1HmZFIc3Mhzpw9JZyAC3kwjWLRQo7hywN5kf8yl 9ZJFn3VL6EcAw58WXJsb/VGzpdtXlLwbY80vGZVWgdW7EdxK35OtMoFT2l25O2ne F92AGW5PYDCuktWIU+Y5Mzp8w92JxT1BKXLU6rTinfpbyNk7UKgzvmnHwQpZZxSx jDMbmixbCpd2kDHK37yLkNLDshwvvipWEyN5hDPoN9AX86loj3CE3YHEPsyEB7NI BpG8WTFn6N6hm6eghDQAVshDxhiDDjQJL7ipz36xg3UftoyPjG+9NNCpQHyRJv6Z w== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4djv9acyre-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Apr 2026 04:27:57 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 63H8RuLe010663 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Apr 2026 04:27:56 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 17 Apr 2026 04:27:56 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.1748.37 via Frontend Transport; Fri, 17 Apr 2026 04:27:56 -0400 Received: from ATORRENO-L02.ad.analog.com ([10.66.6.191]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 63H8RZ9k029843; Fri, 17 Apr 2026 04:27:46 -0400 From: Alexis Czezar Torreno Date: Fri, 17 Apr 2026 16:27:13 +0800 Subject: [PATCH v3 1/2] dt-bindings: hwmon: pmbus: add max20830 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20260417-dev_max20830-v3-1-0cb8d56067aa@analog.com> References: <20260417-dev_max20830-v3-0-0cb8d56067aa@analog.com> In-Reply-To: <20260417-dev_max20830-v3-0-0cb8d56067aa@analog.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan CC: , , , , Alexis Czezar Torreno X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776414456; l=3152; i=alexisczezar.torreno@analog.com; s=20250213; h=from:subject:message-id; bh=ARRiuAm3euM3jPyM10A/k7Z8LraeT/Fam/a7tZM+LgE=; b=IKDS8FW4ETpzypnsOdB4M9EJJ0FAWWLJy9khuCUaHoAEgZTI7a3J0rADm8q093e4vgXclmOVN 7C4Rjm4xDC7CCnI7bli21MAyUX/W+6tSjTm6OVbfCx0jLeKBIEELCEC X-Developer-Key: i=alexisczezar.torreno@analog.com; a=ed25519; pk=XpXmJnRjnsKdDil6YpOlj9+44S+XYXVFnxvkbmaZ+10= X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: cHp7cxNnVXME7HJI6ArHihhH2Z6vnwDO X-Authority-Analysis: v=2.4 cv=KIZqylFo c=1 sm=1 tr=0 ts=69e1ef0d cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=OmVn7CZJonkx5R5zMQLL:22 a=gEfo2CItAAAA:8 a=gAnH3GRIAAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=otUEmpEx_C0DwgoW3ccA:9 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE3MDA4NCBTYWx0ZWRfX+kv9gUdRGcJW XTaUy4QvC3EJxznt6EC0CwYaGTCCgmfyuRk7oSVkL8xA8tAHq1qM8sR629Ml9n+Uz+hsmf98gxp mQywphZWIvJeabmHHV3jUVB1cr4faI/U1m9nytdcERowkEmcWvW+AUXFmy2XIiUYgDY4J5yqCCz X/Qx8wPWHvADKEnnViwAhvTEblfFop/3+QaRKcYebt1mR68BngXNEX4Y+kUKxkIPIL9qEXEI+jQ D7dPn0ECwA6my0VYO4JPz5RtCBelVg6PTK+d/CEbGTUJbkxS9ivwUVBJlLBTA8uz/eDfY9DUtD6 DCFqsXy8tH41ErwP++4/2YMKSnl3O/tH0DeE4n2JtrIb/2l4p9vlx1VyXvd9+smPxT9hyURsWRg qUaKl+h4y3cAvxxQAQPzA7ee/jDhjGkpuwheSxb8aAvXYkrsBXTXxfflpRg7Oi1NBGvvac24Kty DI2O5srC1kJVxvp0f6Q== X-Proofpoint-ORIG-GUID: cHp7cxNnVXME7HJI6ArHihhH2Z6vnwDO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-16_04,2026-04-16_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 phishscore=0 spamscore=0 suspectscore=0 bulkscore=0 clxscore=1015 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604170084 Add device tree documentation for MAX20830 step-down DC-DC switching regulator with PMBus interface. Signed-off-by: Alexis Czezar Torreno Acked-by: Conor Dooley --- .../bindings/hwmon/pmbus/adi,max20830.yaml | 66 ++++++++++++++++++= ++++ MAINTAINERS | 7 +++ 2 files changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yam= l b/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1625dd59417f1b3ca689a9c86ca= 266da913d1217 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/pmbus/adi,max20830.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX20830 Step-Down Switching Regulator with PMBus + +maintainers: + - Alexis Czezar Torreno + +description: | + The MAX20830 is a fully integrated step-down DC-DC switching regulator w= ith + PMBus interface. It provides 2.7V to 16V input, 0.4V to 5.8V adjustable + output, and up to 30A output current. It allows monitoring of input/outp= ut + voltage, output current and temperature through the PMBus serial interfa= ce. + Datasheet: + https://www.analog.com/en/products/max20830.html + +allOf: + - $ref: /schemas/regulator/regulator.yaml# + +properties: + compatible: + const: adi,max20830 + + reg: + maxItems: 1 + + vddh-supply: + description: + Phandle to the regulator that provides the VDDH power supply. + + avdd-supply: + description: + Phandle to the regulator that provides the AVDD power supply. + + ldoin-supply: + description: + Optional 2.5V to 5.5V LDO input supply. + + pwr-good-gpios: + description: + GPIO connected to the power-good status output pin. + maxItems: 1 + +required: + - compatible + - reg + - vddh-supply + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + regulator@30 { + compatible =3D "adi,max20830"; + reg =3D <0x30>; + vddh-supply =3D <&vddh>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 0a3991c10ade20dd79cc7d1bf2a1d307ba6bd19d..031c743e979521a92ed9ac67915= c178ce31727bd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15579,6 +15579,13 @@ F: Documentation/devicetree/bindings/hwmon/pmbus/a= di,max17616.yaml F: Documentation/hwmon/max17616.rst F: drivers/hwmon/pmbus/max17616.c =20 +MAX20830 HARDWARE MONITOR DRIVER +M: Alexis Czezar Torreno +L: linux-hwmon@vger.kernel.org +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml + MAX2175 SDR TUNER DRIVER M: Ramesh Shanmugasundaram L: linux-media@vger.kernel.org --=20 2.34.1 From nobody Tue Jun 16 07:37:02 2026 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (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 B06CC3ACEF7; Fri, 17 Apr 2026 08:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776414495; cv=none; b=XLu+qQ6/4OjABG/EOQBHOWXTW2sj/Bp23K0YnKd0R4YooT9k0gxMs6Kmd+yCVKNgGoAFt2ylpvSovH0vAuJvMTdRQOt55CuQa6Xoi0rtkx8kK0InQLS4gw1adHeTnUM+3W8GdxPBN38Ak+qJVkCxvdzIZrb0YCP3ayBEM681noM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776414495; c=relaxed/simple; bh=Zu10F1h95T6wrSBA6o0Eq54vnkra5NJj/jxRwsR2vFs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=BenQUBEiRd8ru6wx4DX9+0G7sRCAKvkt+mqN7+8XhLNxyWE/qSpLWJBTs1otb+GPXMt8Yaj7bnN5wwuY/I4fs4MQ7Mv05TZ94xnXbzzricwDuJQw9Ei4VwWBT+tA4RVmUfDMqBSHlyIuf15sqbNDvyQRfs4DMd2kxi/S1rgnRkQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=jg6ToWud; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="jg6ToWud" Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63H7W4e91700012; Fri, 17 Apr 2026 04:27:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=yeWcy Ld+Kyfp6FCiZol8qTT9yrwh2APvkI5SYQNZvag=; b=jg6ToWudHlyvf81SX8Snp uMXmSDc081TSyCc+kICoxxXlckT4wLcizc1iMkHYB96vkTx7hFWh7ieW41D/kQcM gKr/GHnrvahsup6ew/nTT/wjvAlpK4XEEZhChB+8ZroaXclo89YJLgIqxhABWtQ7 AOhiXsbw6FPxqGqbYUi82UJvS2FdEICQhwZDVA37ghAOG3PzmiBCfs6+VuBRfgeL B+Pol/Owjv/U6IFTrQEdveceqgu73jhG/tuiaCOQJl120AN4+w+ocil0gCRUEisV dibxfJMZVZ7nbYnPCNXBAhIUd5XAC/ImPz9uNPvgik76Aaul5l4874TuqVilXOn4 A== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 4dk4cm2jjd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 Apr 2026 04:27:58 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 63H8Rv6u010666 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Apr 2026 04:27:57 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.37; Fri, 17 Apr 2026 04:27:57 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.1748.37 via Frontend Transport; Fri, 17 Apr 2026 04:27:57 -0400 Received: from ATORRENO-L02.ad.analog.com ([10.66.6.191]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 63H8RZ9l029843; Fri, 17 Apr 2026 04:27:49 -0400 From: Alexis Czezar Torreno Date: Fri, 17 Apr 2026 16:27:14 +0800 Subject: [PATCH v3 2/2] hwmon: (pmbus/max20830) add driver for max20830 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20260417-dev_max20830-v3-2-0cb8d56067aa@analog.com> References: <20260417-dev_max20830-v3-0-0cb8d56067aa@analog.com> In-Reply-To: <20260417-dev_max20830-v3-0-0cb8d56067aa@analog.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan CC: , , , , Alexis Czezar Torreno X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776414456; l=7505; i=alexisczezar.torreno@analog.com; s=20250213; h=from:subject:message-id; bh=Zu10F1h95T6wrSBA6o0Eq54vnkra5NJj/jxRwsR2vFs=; b=ews21i/rvpEQvJnz4Yf1S/iGxot0fXrl9fCshMauyHSd8nAI4Jeite0nLMiwZXyJW3BElw/Y8 fC9ZybeUH43DkypUzMYr/Tt/X8SlF0thhpf3zt/gerEvqNUSJsWpoDl X-Developer-Key: i=alexisczezar.torreno@analog.com; a=ed25519; pk=XpXmJnRjnsKdDil6YpOlj9+44S+XYXVFnxvkbmaZ+10= X-ADIRuleOP-NewSCL: Rule Triggered X-Authority-Analysis: v=2.4 cv=dpDrzVg4 c=1 sm=1 tr=0 ts=69e1ef0e cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=0sLvza09kfJOxVLZPwjg:22 a=uXIjobp8t2wMuQ0fPvqm:22 a=gAnH3GRIAAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=eOFfa883y_zvaPAmtb4A:9 a=QEXdDO2ut3YA:10 X-Proofpoint-ORIG-GUID: tpdBhnty-2_WC3rpT8eAejXtdyUXBzsM X-Proofpoint-GUID: tpdBhnty-2_WC3rpT8eAejXtdyUXBzsM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE3MDA4NCBTYWx0ZWRfXzlmdKhgbbbG3 U6BHHbW1NJXdyLIDO4xVxoYpPQwbyiCBie8KNOWFdlcjmaDHgcox8s5IKy5F4GhQT4IQtDTvvB7 P5ZQrf1sG78GV92AWeHRXPseEyp5lbTXGvRYEWo2+F1Zhq3+Y+9sMHMqZhiFREFvaduxpSutIjs oyZk464wWLepjlUjGTEYqthVd+GZU2RV+FfiYE5HcYfn3v0qzst5XwW1It/kxows4uzdtUfgXkw 7SsMHu1ja89he/f4t+hjCthzVNyJYVe9i6OleJp4JqOMo+2WbOtaiTxj7vq+ngAw0cBicF1qKEG AXLS99g0ZI5T5IedAWzRGYMUJRMGzaDdH6Kfj/A0JtBvRYFBzLmJvPBSvLRTlsKd+s96DHwY433 x1+32HWOZ7D8luADRw3uuriyduV4ngqYcziLnlwlhICrbR+Kr3B8Rz+zq9vu2qbp7rG5tCOVhXF yss9SV1AaAj75tk3pIg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-16_04,2026-04-16_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 clxscore=1015 bulkscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604170084 Add support for MAX20830 step-down DC-DC switching regulator with PMBus interface. It allows monitoring of input/output voltage, output current and temperature through the PMBus serial interface. Signed-off-by: Alexis Czezar Torreno --- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max20830.rst | 49 ++++++++++++++++++++++ MAINTAINERS | 2 + drivers/hwmon/pmbus/Kconfig | 9 ++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/max20830.c | 88 ++++++++++++++++++++++++++++++++++++= ++++ 6 files changed, 150 insertions(+) diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index 8b655e5d6b68b90c697a52c7bf526e81d370caf7..56f7eb761be76dd627a2f34135a= bad05203b0582 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -158,6 +158,7 @@ Hardware Monitoring Kernel Drivers max197 max20730 max20751 + max20830 max31722 max31730 max31760 diff --git a/Documentation/hwmon/max20830.rst b/Documentation/hwmon/max2083= 0.rst new file mode 100644 index 0000000000000000000000000000000000000000..936e409dcc5c0898dde27d78230= 8d4a7e1357e73 --- /dev/null +++ b/Documentation/hwmon/max20830.rst @@ -0,0 +1,49 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Kernel driver max20830 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Supported chips: + + * Analog Devices MAX20830 + + Prefix: 'max20830' + + Addresses scanned: - + + Datasheet: https://www.analog.com/media/en/technical-documentation/dat= a-sheets/max20830.pdf + +Author: + + - Alexis Czezar Torreno + + +Description +----------- + +This driver supports hardware monitoring for Analog Devices MAX20830 +Step-Down Switching Regulator with PMBus Interface. + +The MAX20830 is a 2.7V to 16V, 30A fully integrated step-down DC-DC switch= ing +regulator. Through the PMBus interface, the device can monitor input/output +voltages, output current and temperature. + +The driver is a client driver to the core PMBus driver. Please see +Documentation/hwmon/pmbus.rst for details on PMBus client drivers. + +Sysfs entries +------------- + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D +in1_label "vin" +in1_input Measured input voltage +in1_alarm Input voltage alarm +in2_label "vout1" +in2_input Measured output voltage +in2_alarm Output voltage alarm +curr1_label "iout1" +curr1_input Measured output current +curr1_alarm Output current alarm +temp1_input Measured temperature +temp1_alarm Chip temperature alarm +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D diff --git a/MAINTAINERS b/MAINTAINERS index 031c743e979521a92ed9ac67915c178ce31727bd..d6a6745e2dae29c3b8f80bbe61c= 54a2f5ecd9f47 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15585,6 +15585,8 @@ L: linux-hwmon@vger.kernel.org S: Supported W: https://ez.analog.com/linux-software-drivers F: Documentation/devicetree/bindings/hwmon/pmbus/adi,max20830.yaml +F: Documentation/hwmon/max20830.rst +F: drivers/hwmon/pmbus/max20830.c =20 MAX2175 SDR TUNER DRIVER M: Ramesh Shanmugasundaram diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 8f4bff375ecbc355f5ed3400855c2852ec2aa5ef..987705bf45b75b7b91ccc469247= 909f3c3f53d77 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -365,6 +365,15 @@ config SENSORS_MAX20751 This driver can also be built as a module. If so, the module will be called max20751. =20 +config SENSORS_MAX20830 + tristate "Analog Devices MAX20830" + help + If you say yes here you get hardware monitoring support for Analog + Devices MAX20830. + + This driver can also be built as a module. If so, the module will + be called max20830. + config SENSORS_MAX31785 tristate "Maxim MAX31785 and compatibles" help diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile index 7129b62bc00f8a2e98de14004997752a856dfda2..bc52f930e0825a902a0dd1c9e2b= 44f2e8d577c35 100644 --- a/drivers/hwmon/pmbus/Makefile +++ b/drivers/hwmon/pmbus/Makefile @@ -36,6 +36,7 @@ obj-$(CONFIG_SENSORS_MAX16601) +=3D max16601.o obj-$(CONFIG_SENSORS_MAX17616) +=3D max17616.o obj-$(CONFIG_SENSORS_MAX20730) +=3D max20730.o obj-$(CONFIG_SENSORS_MAX20751) +=3D max20751.o +obj-$(CONFIG_SENSORS_MAX20830) +=3D max20830.o obj-$(CONFIG_SENSORS_MAX31785) +=3D max31785.o obj-$(CONFIG_SENSORS_MAX34440) +=3D max34440.o obj-$(CONFIG_SENSORS_MAX8688) +=3D max8688.o diff --git a/drivers/hwmon/pmbus/max20830.c b/drivers/hwmon/pmbus/max20830.c new file mode 100644 index 0000000000000000000000000000000000000000..b1c6985067d7c2c8eed1b00f81c= 8622d946acbcd --- /dev/null +++ b/drivers/hwmon/pmbus/max20830.c @@ -0,0 +1,88 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Hardware monitoring driver for Analog Devices MAX20830 + * + * Copyright (C) 2026 Analog Devices, Inc. + */ + +#include +#include +#include +#include "pmbus.h" + +static struct pmbus_driver_info max20830_info =3D { + .pages =3D 1, + .format[PSC_VOLTAGE_IN] =3D linear, + .format[PSC_VOLTAGE_OUT] =3D linear, + .format[PSC_CURRENT_OUT] =3D linear, + .format[PSC_TEMPERATURE] =3D linear, + .func[0] =3D PMBUS_HAVE_VIN | PMBUS_HAVE_VOUT | PMBUS_HAVE_IOUT | + PMBUS_HAVE_TEMP | + PMBUS_HAVE_STATUS_VOUT | PMBUS_HAVE_STATUS_IOUT | + PMBUS_HAVE_STATUS_INPUT | PMBUS_HAVE_STATUS_TEMP, +}; + +static int max20830_probe(struct i2c_client *client) +{ + u8 buf[I2C_SMBUS_BLOCK_MAX + 1] =3D {}; + u8 len; + int ret; + + if (!i2c_check_functionality(client->adapter, + I2C_FUNC_SMBUS_READ_I2C_BLOCK)) + return -ENODEV; + + /* + * Use i2c_smbus_read_i2c_block_data() instead of + * i2c_smbus_read_block_data() to support I2C controllers + * which do not support SMBus block reads. + */ + ret =3D i2c_smbus_read_i2c_block_data(client, PMBUS_IC_DEVICE_ID, + I2C_SMBUS_BLOCK_MAX, buf); + if (ret < 0) + return dev_err_probe(&client->dev, ret, + "Failed to read IC_DEVICE_ID\n"); + + /* First byte is the block length (including itself). */ + len =3D buf[0]; + if (len !=3D 9 || ret < len) + return dev_err_probe(&client->dev, -ENODEV, + "IC_DEVICE_ID length mismatch: reported %u, read %d\n", + len, ret); + + /* Data is at buf[1..8], so null terminator goes at buf[9]. */ + buf[len] =3D '\0'; + if (strncmp(buf + 1, "MAX20830", 8)) + return dev_err_probe(&client->dev, -ENODEV, + "Unsupported device: '%s'\n", buf + 1); + + return pmbus_do_probe(client, &max20830_info); +} + +static const struct i2c_device_id max20830_id[] =3D { + {"max20830"}, + { } +}; +MODULE_DEVICE_TABLE(i2c, max20830_id); + +static const struct of_device_id max20830_of_match[] =3D { + { .compatible =3D "adi,max20830" }, + { } +}; +MODULE_DEVICE_TABLE(of, max20830_of_match); + +static struct i2c_driver max20830_driver =3D { + .driver =3D { + .name =3D "max20830", + .of_match_table =3D max20830_of_match, + }, + .probe =3D max20830_probe, + .id_table =3D max20830_id, +}; + +module_i2c_driver(max20830_driver); + +MODULE_AUTHOR("Alexis Czezar Torreno "); +MODULE_DESCRIPTION("PMBus driver for Analog Devices MAX20830"); +MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("PMBUS"); --=20 2.34.1