From nobody Wed Dec 17 15:35:20 2025 Received: from mx0b-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 AEF9221578B; Mon, 17 Mar 2025 05:03:41 +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=1742187824; cv=none; b=KU/93Vepvos6mpT/y2XLvUJIz/ScFKwVoaaCHBp5nOr0YjS1TusgTK4Eoejkpsl83Wvjr9bM46LZd2QaANX1+YK7wnJLjzM/1VcpFDfuE9ByudH60x3jNuBLp7khjYovSQGOmlQ+Gs4qZFN6FzrpruAgnX/54jPzB57hurdGIa0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742187824; c=relaxed/simple; bh=n5/MwKB1/KHtYPfGeYeG0MxOi4B2fNrzPsOxMlXkkog=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=SJBmQBPlalUZ44YGKT05AFLPj6F2nzB97DX8QaDkz611Wio+I2w94+K9+2/1mdU07dxVH2ZCng4Nty3xznAaZFUujxCRXc3BAMLDFbZHnSYo5Xfut7KDWecpVHDtgXqsJdF4UbHvqlBENdOL71T7PCVqvZPhS4GW2UhjjyMqCbA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=l/SZ0XLZ; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="l/SZ0XLZ" Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52H4jZO0006339; Mon, 17 Mar 2025 01:03:09 -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=dZIPe hUdY0kRx3Jk6AQmPomn2HwpWSYoQbHsUQRqvm4=; b=l/SZ0XLZAHl3MpQxBg7D1 VckUSGKRRRWeGEzbUvtg3m/L1Lo9gi+INU7DsNxZUbJTvej7dLKsTPh1LOqrH5vZ dRtQ9FeaAWprZfazkX9CurhBJCMoECrn0Q/AildDTB+nY9SK2UprupCx74Ns1rz9 8TZZ8rfuJJC2R2Tfym+Dpl9L47k3ZDPJKQy9U3dFVSQpyjMJLrlkNqCgJdMfQegW E+QmAWr0RGJWol8Z9h14ikv2ffdYDeFlR06w8qBsG/Ao4aCMDGBHzzeBvtnTe8Tn JcDTc9SbKTrhAWXbreYqRMFNrfhyk8TBM8zXRCTUgJkyyD4lpf4ZHeFlEiE2Y1v5 A== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 45ed0ag1vd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Mar 2025 01:03:08 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 52H537WP044478 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Mar 2025 01:03:07 -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.986.14; Mon, 17 Mar 2025 01:03:07 -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.986.14 via Frontend Transport; Mon, 17 Mar 2025 01:03:07 -0400 Received: from analog.ad.analog.com (KPALLER2-L03.ad.analog.com [10.117.223.28]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 52H52jZD026775; Mon, 17 Mar 2025 01:02:58 -0400 From: Kim Seer Paller Date: Mon, 17 Mar 2025 13:02:25 +0800 Subject: [PATCH 1/3] hwmon: (pmbus/ltc7841) add support for LT717x - docs 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: <20250317-hwmon-next-v1-1-da0218c38197@analog.com> References: <20250317-hwmon-next-v1-0-da0218c38197@analog.com> In-Reply-To: <20250317-hwmon-next-v1-0-da0218c38197@analog.com> To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Delphine CC Chiu CC: , , , , , Kim Seer Paller , Cherrence Sarip X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742187765; l=2729; i=kimseer.paller@analog.com; s=20250213; h=from:subject:message-id; bh=n5/MwKB1/KHtYPfGeYeG0MxOi4B2fNrzPsOxMlXkkog=; b=TJNkDqi6YpZELxbxGZCMyN3kdd5PWQWRcaEY2QBjnUzvPONWL7fi0uCRcxq9msJ4ykHfQ7l+i sTYcyYMy0PIB44cNKPsjeH2pqHTGOU3kgp3sHXuA+cU9kek5SC6Cb+C X-Developer-Key: i=kimseer.paller@analog.com; a=ed25519; pk=SPXIwGLg4GFKUNfuAavY+YhSDsx+Q+NwGLceiKwm8Ac= X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: NaHpzcDUQaHqB-X5tbfY7XtJDV3EccDw X-Proofpoint-GUID: NaHpzcDUQaHqB-X5tbfY7XtJDV3EccDw X-Authority-Analysis: v=2.4 cv=A4NsP7WG c=1 sm=1 tr=0 ts=67d7ad0c cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=gAnH3GRIAAAA:8 a=_jlGtV7tAAAA:8 a=op1cdvfMgwh8lD2rSv0A:9 a=QEXdDO2ut3YA:10 a=4AZt5i30kjcA:10 a=BQTpVySARZYA:10 a=jmTavHqNhv8A:10 a=t1hRRgMb2TAA:10 a=nlm17XC03S6CtCLSeiRr:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-17_01,2025-03-14_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 impostorscore=0 adultscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2503170034 Add LT7170 and LT7171 to compatible devices of LTC2978. Co-developed-by: Cherrence Sarip Signed-off-by: Cherrence Sarip Signed-off-by: Kim Seer Paller --- Documentation/hwmon/ltc2978.rst | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Documentation/hwmon/ltc2978.rst b/Documentation/hwmon/ltc2978.= rst index feae53eb9fbf5cff8f7a484c163acad011315d8d..0b72d566cac709aeafe53d08680= ad65221bfa33f 100644 --- a/Documentation/hwmon/ltc2978.rst +++ b/Documentation/hwmon/ltc2978.rst @@ -5,6 +5,22 @@ Kernel driver ltc2978 =20 Supported chips: =20 + * Analog Devices LT7170 + + Prefix: 'lt7170' + + Addresses scanned: - + + Datasheet: https://www.analog.com/en/products/lt7170.html + + * Analog Devices LT7171 + + Prefix: 'lt7171' + + Addresses scanned: - + + Datasheet: https://www.analog.com/en/products/lt7171.html + * Linear Technology LTC2972 =20 Prefix: 'ltc2972' @@ -223,6 +239,8 @@ Author: Guenter Roeck Description ----------- =20 +- LT7170 and LT7171 are 20 A, 16 V, single- or dual-phase Silent Switcher +- step-down regulators with Digital Power System Management. - LTC2974 and LTC2975 are quad digital power supply managers. - LTC2978 is an octal power supply monitor. - LTC2977 is a pin compatible replacement for LTC2978. @@ -300,6 +318,7 @@ in1_reset_history Reset input voltage history. =20 in[N]_label "vout[1-8]". =20 + - LT7170, LT7171: N=3D2 - LTC2972: N=3D2-3 - LTC2974, LTC2975: N=3D2-5 - LTC2977, LTC2979, LTC2980, LTM2987: N=3D2-9 @@ -338,6 +357,8 @@ in[N]_reset_history Reset output voltage history. =20 temp[N]_input Measured temperature. =20 + - On LT7170 and LT7171, temp1 reports the chip + temperature. - On LTC2972, temp[1-2] report external temperatures, and temp 3 reports the chip temperature. - On LTC2974 and LTC2975, temp[1-4] report external @@ -411,9 +432,9 @@ power[N]_input Measured output power. =20 curr1_label "iin". =20 - LTC3880, LTC3883, LTC3884, LTC3886, LTC3887, LTC3889, - LTM4644, LTM4675, LTM4676, LTM4677, LTM4678, LTM4680, - and LTM4700 only. + LT7170, LT7171, LTC3880, LTC3883, LTC3884, LTC3886, + LTC3887, LTC3889, LTM4644, LTM4675, LTM4676, LTM4677, + LTM4678, LTM4680, and LTM4700 only. =20 curr1_input Measured input current. =20 @@ -431,6 +452,7 @@ curr1_reset_history Reset input current history. =20 curr[N]_label "iout[1-4]". =20 + - LT7170, LT7171: N=3D1 - LTC2972: N-1-2 - LTC2974, LTC2975: N=3D1-4 - LTC2977, LTC2979, LTC2980, LTM2987: not supported --=20 2.34.1 From nobody Wed Dec 17 15:35:20 2025 Received: from mx0b-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 DB076EEA9; Mon, 17 Mar 2025 05:03:37 +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=1742187820; cv=none; b=Lm4/YXKkaWUCxkFgZxGXbq0elG5pfoE3s9ACXBRGJDLOuvDH0edZ5wcWz7yJMI15xw2fKvyi41QEJ+QlLCBac9YiFDUGUU0DPKfHX/21Fk+QJR2Ecql4ZRjWcYrYQfF/6Chm67CnagoLmzOotTo8M1ign1zrb46YPnOZZwJACW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742187820; c=relaxed/simple; bh=YfuuxdkGLDGPsdea1H9tgT+439h+TBstXkGRKZ/wx6k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=NBLVRqg73+pN6GLvpdHMQbc6q5mGVi8bkI2fdXJswMA3LrUVj8SoKacnCyhfuNLH4ewdOeNgkMXnFVWJNfVVKeKZW5uzXwS151tD5rPcrk2Tjq70Yz4oudfybAHxhUbDFR2Y0eH3v6FisTfED7lTbghUTGS8/gfdl4jJNHxQndg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=OgOdDqzX; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="OgOdDqzX" Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52H4jZLC006334; Mon, 17 Mar 2025 01:03:13 -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=pL0k1 pZJOH7b99W+EdOHRCHyoIN04moWTtxvOjJlBGk=; b=OgOdDqzXYu69pBxy7a93+ 6AffOyCm8IVR55czLy9V2CAenshEee9uu5XV9omgzTBOO8NC7grw5LzD/tmEvhSk reGl2lqQFhWwNhFRtsCGHviALErRLxF9crxxH7mqoFvmIsAbqpwUDSAnc6rPzT4Q +B2jGej++zdFbRuNMVnMYLo31GesRpt5UPkmFVTKdufR/lDHcBkGiA3PLjA3rjrs 5GiPFeY04abfJ+XIERg/JF9ayUTu9+owKnocRmVcxaGZ0KW8NcKMTiRQ1esU6j9L Sfgc9NP+F7DdR3BoxdQWuOnFV8btPYGqSXstBIpHa8u/JFS42Qf9fpZSSyGv/bpV w== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 45ed0ag1vk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Mar 2025 01:03:12 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 52H53Bli044487 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Mar 2025 01:03:11 -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.986.14; Mon, 17 Mar 2025 01:03:11 -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.986.14 via Frontend Transport; Mon, 17 Mar 2025 01:03:11 -0400 Received: from analog.ad.analog.com (KPALLER2-L03.ad.analog.com [10.117.223.28]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 52H52jZE026775; Mon, 17 Mar 2025 01:03:03 -0400 From: Kim Seer Paller Date: Mon, 17 Mar 2025 13:02:26 +0800 Subject: [PATCH 2/3] dt-bindings: hwmon: ltc2978: add support for LT717x 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: <20250317-hwmon-next-v1-2-da0218c38197@analog.com> References: <20250317-hwmon-next-v1-0-da0218c38197@analog.com> In-Reply-To: <20250317-hwmon-next-v1-0-da0218c38197@analog.com> To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Delphine CC Chiu CC: , , , , , Kim Seer Paller , Cherrence Sarip X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742187765; l=1401; i=kimseer.paller@analog.com; s=20250213; h=from:subject:message-id; bh=YfuuxdkGLDGPsdea1H9tgT+439h+TBstXkGRKZ/wx6k=; b=CFyft7EcMfijFg8fBr5XbvCC9KtVGk19vek0GBTcBrssLEzWIp3d9xfPDGpcd6r9jjh2lis3/ OfBrOjDcAjQA7oUDLrqF6tGjEDBeqT/EPaA6TJ5+QaBVL7VxdByPQbJ X-Developer-Key: i=kimseer.paller@analog.com; a=ed25519; pk=SPXIwGLg4GFKUNfuAavY+YhSDsx+Q+NwGLceiKwm8Ac= X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: kWwFueAPbadhn0n-OY8ywVCD1QboKn1y X-Proofpoint-GUID: kWwFueAPbadhn0n-OY8ywVCD1QboKn1y X-Authority-Analysis: v=2.4 cv=A4NsP7WG c=1 sm=1 tr=0 ts=67d7ad10 cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=gAnH3GRIAAAA:8 a=l4fRWFUdoYX3NKTZvhEA:9 a=QEXdDO2ut3YA:10 a=MbOaIhJwtJxSSQ9TBknk:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-17_01,2025-03-14_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 impostorscore=0 adultscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2503170034 Add LTC7170 and LT7171 to supported devices of LTC2978. It has similar set of registers to LTC3887, differing only in number of channels and some PMBUS status and functionalities. Co-developed-by: Cherrence Sarip Signed-off-by: Cherrence Sarip Signed-off-by: Kim Seer Paller Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml b/Do= cumentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml index eeb6a4fe80b265ee364188f7b507425cbf34a48e..aa801ef1640b177ee55181c724b= 024b4857e0252 100644 --- a/Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc2978.yaml @@ -12,6 +12,8 @@ maintainers: properties: compatible: enum: + - lltc,lt7170 + - lltc,lt7171 - lltc,ltc2972 - lltc,ltc2974 - lltc,ltc2975 @@ -47,6 +49,7 @@ properties: description: | list of regulators provided by this controller. Valid names of regulators depend on number of supplies supported per= device: + * lt7170, lt7171 : vout0 * ltc2972 vout0 - vout1 * ltc2974, ltc2975 : vout0 - vout3 * ltc2977, ltc2979, ltc2980, ltm2987 : vout0 - vout7 --=20 2.34.1 From nobody Wed Dec 17 15:35:20 2025 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 E3A66286A1; Mon, 17 Mar 2025 05:03:37 +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=1742187819; cv=none; b=u0Qsd3ZQXtvNnFjY5RP6BRlkwih/M1ex3ShIO07Ao98Me1SQ44B5WH2BOFq1HSQ/8RlEMb+4uFOjfG3zjrHJREJZj+T+QCoT141urzbJq75WDuGtvGfFLdvHOqgLCfxzwMDu+FwrtsHrUsHzzIqsFrcXWLlYAsfNrcNDCqI7UMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742187819; c=relaxed/simple; bh=2vD/39xrIeY47JBB4mgWEUPE7E+CTz3iO47JJcNKFIo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=jgbOui8Bbp6cAtasvW5gSa4wYmXoqmA2I7Iokl5iBStDeasee+rupG/NGlC/jMlkoJSu6nRxXgDMfRwKTu4vz2u1E8VVEfdDbM3YuOwD5sqZtohivLgu09fgvRM6YRNCSdIydwrznWGEkaKmnw4oFBZAq52wsiY3eSPFyZkCHZE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=zP72LJ55; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="zP72LJ55" Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52H4jvUK031114; Mon, 17 Mar 2025 01:03:19 -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=r2bCI kLhw/rZksWEHKvCBsvGqUq/8+BhI3MfmB5oaQU=; b=zP72LJ55H5+PMkBWBI8kM wgrGwqGATyYvekz2Nvf5fVyumAFd5rqcVR/chcz3xSD7hxzm+FZLAMceFsN7OMo6 gtf4C82SFng+/lhFaa4/TwFH9exf7u4Nvi58Y44+cr0dMIts7GMaHTeoozPZsIZ5 iLLs/tuYUgys+wOC76Oo+Mw7IyvOsFmRwHVD7DWZxUWbye9tVe7mCXuAsA0NSUYT cjzsT4s1UHFzVpjm0qD2mGDcZ9B96/EkunmlulJQ0audp10PVCkQcCtzyCy7mDvv ikB7RBGJeCz7tucDaAk1SvqxbuR5Zcan5RNmGwQ0HoLtmFqqdDnJnJ7Ge7Be9dKp g== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 45d3d6g0mv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Mar 2025 01:03:19 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 52H53ItO044495 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Mar 2025 01:03:18 -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.986.14; Mon, 17 Mar 2025 01:03:18 -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.986.14 via Frontend Transport; Mon, 17 Mar 2025 01:03:18 -0400 Received: from analog.ad.analog.com (KPALLER2-L03.ad.analog.com [10.117.223.28]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 52H52jZF026775; Mon, 17 Mar 2025 01:03:07 -0400 From: Kim Seer Paller Date: Mon, 17 Mar 2025 13:02:27 +0800 Subject: [PATCH 3/3] hwmon: (pmbus/ltc2978) add support for lt717x 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: <20250317-hwmon-next-v1-3-da0218c38197@analog.com> References: <20250317-hwmon-next-v1-0-da0218c38197@analog.com> In-Reply-To: <20250317-hwmon-next-v1-0-da0218c38197@analog.com> To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Li , Delphine CC Chiu CC: , , , , , Kim Seer Paller , Cherrence Sarip X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742187765; l=5152; i=kimseer.paller@analog.com; s=20250213; h=from:subject:message-id; bh=2vD/39xrIeY47JBB4mgWEUPE7E+CTz3iO47JJcNKFIo=; b=wCpAEGlpdIyjd2x8FP5UhX7oBOfoAK4VxCdSpwXz4t7htJYIhXfrdZl6EN2YQkbhIiKtz754r wuGTRQOUSLfBNsTEABHSlwceTOi/5vVvJxvGWnxEbOz2bGFCYnSZaM7 X-Developer-Key: i=kimseer.paller@analog.com; a=ed25519; pk=SPXIwGLg4GFKUNfuAavY+YhSDsx+Q+NwGLceiKwm8Ac= X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: v8vYl_4d_NoVSvChkQsceWIoyRiiywce X-Authority-Analysis: v=2.4 cv=MsRS63ae c=1 sm=1 tr=0 ts=67d7ad17 cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=gAnH3GRIAAAA:8 a=05dnua3z-gnXFUcAZTMA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-GUID: v8vYl_4d_NoVSvChkQsceWIoyRiiywce X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-17_01,2025-03-14_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 phishscore=0 clxscore=1011 mlxlogscore=999 suspectscore=0 spamscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2503170034 Add support for LT7170 and LT7171. The LT7170 and LT7171 are 20 A, 16 V, Single- or Dual-Phase, Silent Switcher Step-Down Regulators with Digital Power System Management. The relevant registers in the LT7170 and LT7171 are similar to those in the LTC3887, but with fewer channels. This adds the chip ID and identification of ASCII to differentiate between the LT7170 and LT7171. These devices support polling for status updates and clearing peak values. The data format for voltage, current, and temperature is set to IEEE754 for precision and compatibility. Co-developed-by: Cherrence Sarip Signed-off-by: Cherrence Sarip Signed-off-by: Kim Seer Paller --- drivers/hwmon/pmbus/Kconfig | 6 +++--- drivers/hwmon/pmbus/ltc2978.c | 44 +++++++++++++++++++++++++++++++++++++++= +--- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 675b0d4703d87c9d5654489d0d770661ff0dba11..6ce68dd333690c407311e256db3= f3284bbb48861 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -233,9 +233,9 @@ config SENSORS_LTC2978_REGULATOR depends on SENSORS_LTC2978 && REGULATOR help If you say yes here you get regulator support for Linear Technology - LTC3880, LTC3883, LTC3884, LTC3886, LTC3887, LTC3889, LTC7841, - LTC7880, LTM4644, LTM4673, LTM4675, LTM4676, LTM4677, LTM4678, - LTM4680, LTM4686, and LTM4700. + LT7170, LT7171, LTC3880, LTC3883, LTC3884, LTC3886, LTC3887, LTC3889, + LTC7841, LTC7880, LTM4644, LTM4673, LTM4675, LTM4676, LTM4677, + LTM4678, LTM4680, LTM4686, and LTM4700. =20 config SENSORS_LTC3815 tristate "Linear Technologies LTC3815" diff --git a/drivers/hwmon/pmbus/ltc2978.c b/drivers/hwmon/pmbus/ltc2978.c index 658cb1173291006d83033a6363ac52d24635abaf..8f5be520a15db3d61dcd6df38ec= e6c74b232f85b 100644 --- a/drivers/hwmon/pmbus/ltc2978.c +++ b/drivers/hwmon/pmbus/ltc2978.c @@ -23,8 +23,8 @@ enum chips { /* Managers */ ltc2972, ltc2974, ltc2975, ltc2977, ltc2978, ltc2979, ltc2980, /* Controllers */ - ltc3880, ltc3882, ltc3883, ltc3884, ltc3886, ltc3887, ltc3889, ltc7132, - ltc7841, ltc7880, + lt7170, lt7171, ltc3880, ltc3882, ltc3883, ltc3884, ltc3886, ltc3887, + ltc3889, ltc7132, ltc7841, ltc7880, /* Modules */ ltm2987, ltm4664, ltm4673, ltm4675, ltm4676, ltm4677, ltm4678, ltm4680, ltm4686, ltm4700, @@ -62,6 +62,7 @@ enum chips { =20 #define LTC2978_ID_MASK 0xfff0 =20 +#define LT7170_ID 0x1C10 #define LTC2972_ID 0x0310 #define LTC2974_ID 0x0210 #define LTC2975_ID 0x0220 @@ -537,6 +538,8 @@ static int ltc2978_write_word_data(struct i2c_client *c= lient, int page, } =20 static const struct i2c_device_id ltc2978_id[] =3D { + {"lt7170", lt7170}, + {"lt7171", lt7171}, {"ltc2972", ltc2972}, {"ltc2974", ltc2974}, {"ltc2975", ltc2975}, @@ -615,7 +618,7 @@ static int ltc2978_get_id(struct i2c_client *client) ret =3D i2c_smbus_read_block_data(client, PMBUS_MFR_ID, buf); if (ret < 0) return ret; - if (ret < 3 || strncmp(buf, "LTC", 3)) + if (ret < 3 || (strncmp(buf, "LTC", 3) && strncmp(buf, "ADI", 3))) return -ENODEV; =20 ret =3D i2c_smbus_read_block_data(client, PMBUS_MFR_MODEL, buf); @@ -630,6 +633,25 @@ static int ltc2978_get_id(struct i2c_client *client) =20 chip_id &=3D LTC2978_ID_MASK; =20 + if (chip_id =3D=3D LT7170_ID) { + u8 buf[I2C_SMBUS_BLOCK_MAX]; + int ret; + + ret =3D i2c_smbus_read_i2c_block_data(client, PMBUS_IC_DEVICE_ID, + sizeof(buf), buf); + if (ret < 0) + return ret; + + if (!strncmp(buf + 1, "LT7170", 6) || + !strncmp(buf + 1, "LT7170-1", 8)) + return lt7170; + if (!strncmp(buf + 1, "LT7171", 6) || + !strncmp(buf + 1, "LT7171-1", 8)) + return lt7171; + + return -ENODEV; + } + if (chip_id =3D=3D LTC2972_ID) return ltc2972; else if (chip_id =3D=3D LTC2974_ID) @@ -741,6 +763,20 @@ static int ltc2978_probe(struct i2c_client *client) data->temp2_max =3D 0x7c00; =20 switch (data->id) { + case lt7170: + case lt7171: + data->features |=3D FEAT_CLEAR_PEAKS | FEAT_NEEDS_POLLING; + info->read_word_data =3D ltc3883_read_word_data; + info->pages =3D LTC3883_NUM_PAGES; + info->format[PSC_VOLTAGE_IN] =3D ieee754; + info->format[PSC_VOLTAGE_OUT] =3D ieee754; + info->format[PSC_CURRENT_OUT] =3D ieee754; + info->format[PSC_TEMPERATURE] =3D ieee754; + info->func[0] =3D 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; + break; case ltc2972: info->read_word_data =3D ltc2975_read_word_data; info->pages =3D LTC2972_NUM_PAGES; @@ -927,6 +963,8 @@ static int ltc2978_probe(struct i2c_client *client) =20 #ifdef CONFIG_OF static const struct of_device_id ltc2978_of_match[] =3D { + { .compatible =3D "lltc,lt7170" }, + { .compatible =3D "lltc,lt7171" }, { .compatible =3D "lltc,ltc2972" }, { .compatible =3D "lltc,ltc2974" }, { .compatible =3D "lltc,ltc2975" }, --=20 2.34.1