From nobody Fri Sep 25 02:45:03 2026 Received: from BN1PR04CU002.outbound.protection.outlook.com (mail-eastus2azon11010048.outbound.protection.outlook.com [52.101.56.48]) (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 AAFB84DA9BE; Thu, 17 Sep 2026 11:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.56.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789644848; cv=fail; b=D84MofctwcfOSv1y5eibM1O/XJyoxiod5VFrk4lZyNkgsPS7PXbi1nTx/vfhGtv5j2MswEyM58ckDno7umH2cuHO3y9yXzwmBfWRbnNN99ylvWkU0S0vltIhudcktUpySEYepGd5kzvo/DTaA1W6Eyl622eajdFkFZ6+0ZQafgI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789644848; c=relaxed/simple; bh=F06lQM0+A05PDbXETSgghul3irV3xuWxNG03dJmHXbk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=jRelh8gcN/GWnpi7lGt+z4v2C8r18/Hc1i/VdL+7ak2qxTbt/2OPXQN2AqeUdLWBJMTp63chW6MUJ4+ItDyVTvPDET5DvtIcEQMSTuJDxsdIgxf5tZ1298lSBuU9ktGJQSMII9t1WPB6hnhPmiFwgzmhjRlQLWFvgTzxdh5HwdM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=t8/s/xYt; arc=fail smtp.client-ip=52.101.56.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="t8/s/xYt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kG7mX0Kz4oo4LO3d5HJ7OVt5EmBhO/DpA6w0rEBIWQ5J6ZXuQ9WYIhWlpCFyHaiMXP+RrRd6NKhDfjYSQIyUZx4JUOIumFNpsDnF+3cMgWnXbAGnHq8mHYY3iagmn/8R1nu786YcE5s0hPbDd8Z+cgOVqCoUJK7/4MJSpq+KFWZDNvVTycEf18N7b8EMYBVO60UePbzznHRGO5qvh36kF5V0dqTZwwFB/OrGrSB+Q0yUk/Pk+NvSxik/WNx6nGZMn7cYTBAtb0ynj/oq9ayaRLX+a+npnjrcYOyh04glebJ6hRW7+7sfGWf2WmsXs8NXnSQrkfhlrz4FGhvQN7ewuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=w1HHsCQJgjZgjU/XVOkQrVU9VRB87xolGHTD+JyTric=; b=gYpFtYjj4+U5+9R+T0KbOEA09/kunBl0S4/aF8KTCECD9fF0TvUxvuKWtgm0kroiHo5daZXkLfffERrbrmnq8SP40S59Cez4nKpo+4TIJRi20DFxAOiGK+YHW4FIj88rjc9MThJo3ydLnTNoROZWaOKZgfD7rJ7skHHVe00hn7LFaa6Civ46bborHm4mbh39ATCJkNm1SBz2X7SorPQdgJy7bNDB0LIXzMNoc7Parsa7NbDQk1S8W85Ga2uX9bjcJKReK2Y/Z1YVFEH+M4Bjqa90nd8in6quDb5yKoBs7ioPM/oosLb4HtcpWB9aYnqcd1Gcew0ibsJHRsE1ooIhSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w1HHsCQJgjZgjU/XVOkQrVU9VRB87xolGHTD+JyTric=; b=t8/s/xYtzqLdWoXc/t0xQne3j7ppQYRuN5z8cowhWX83OO8Z8M+R/3ebmhlRduJiAlQ2XG5G8iTojc34tVrlCCNrgFAZZ3LAyym/UqnOy+zwblY3X8RIUz+dzmfvu+eacZysUhWgP894NotAKhhOW9sq1QZTHyJjyPzDMwVNGxo= Received: from BY3PR03CA0030.namprd03.prod.outlook.com (2603:10b6:a03:39a::35) by CH3PR12MB8258.namprd12.prod.outlook.com (2603:10b6:610:128::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.428.12; Thu, 17 Sep 2026 11:33:58 +0000 Received: from SJ1PEPF000026C7.namprd04.prod.outlook.com (2603:10b6:a03:39a:cafe::29) by BY3PR03CA0030.outlook.office365.com (2603:10b6:a03:39a::35) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.428.12 via Frontend Transport; Thu, 17 Sep 2026 11:33:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by SJ1PEPF000026C7.mail.protection.outlook.com (10.167.244.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.451.8 via Frontend Transport; Thu, 17 Sep 2026 11:33:58 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Thu, 17 Sep 2026 06:33:52 -0500 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Thu, 17 Sep 2026 06:33:52 -0500 Received: from [127.0.1.1] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.49 via Frontend Transport; Thu, 17 Sep 2026 06:33:50 -0500 From: Colin Huang Date: Thu, 17 Sep 2026 19:33:39 +0800 Subject: [PATCH v5 1/2] dt-bindings: hwmon: pmbus: Add Infineon tda38740 and tda38725 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: <20260917-add-tda38740-and-tda38725-v5-1-7fc19668ada4@gmail.com> References: <20260917-add-tda38740-and-tda38725-v5-0-7fc19668ada4@gmail.com> In-Reply-To: <20260917-add-tda38740-and-tda38725-v5-0-7fc19668ada4@gmail.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Randy Dunlap CC: , , , , , Colin Huang X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789644825; l=2005; i=u8813345@gmail.com; s=20260202; h=from:subject:message-id; bh=R1ssmBrpneOOcBVWD/5uiubeCA6eoLBzB89Okx1mSic=; b=wiqJC+cqJH5XTrlGh5RSXvYL5pROfuuTYpth1vMhautAm9m/AdUPMTpYKbNxjU7ckSUrQF2lr T4zOV2CDmFQAO7dajzl2t486zUBr08Wa7m6D8Qj7otxpoZxCLtTVTx0 X-Developer-Key: i=u8813345@gmail.com; a=ed25519; pk=Zlg0WqpCw4qbswOqamTBTXIchwR/3SnYZpy7rjaGMdQ= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF000026C7:EE_|CH3PR12MB8258:EE_ X-MS-Office365-Filtering-Correlation-Id: fefa3543-c79d-411f-522b-08df14af9059 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|1800799024|23010399003|82310400026|36860700016|18002099003|22082099003|13003099007|10067099003|11063799006|56012099006|3023799007; X-Microsoft-Antispam-Message-Info: sScGTBqBQ44Io15zRerNLa/yki+UtquZemxzRiAuw83XfSfVxazaBRVadZFGCLHzHLLI6oTEr+PGIyGFokXS06Ilc6RFcS6FGcto21TUKhNTBXSnXaZHvgWynFx8UGLFZi8Xmk7CGCagthghdXfobYgVV8G9CdwObWpkSbzMHDRo8rAw23wppQb6C+PRMVfi+h66/luPi87C3AtCcmUc5GWnn/66ELTh9QU3ujyEQSCJozrdCQX11vFK3RSM+bDRdjhp3eTm6V7dtLK6nYDi65h5l090hcK6tjtPKweenPWcriPkSJAYlMYuEqt3fIibomSMEDTVCpyC8JGz3urIH6+LtkIEZZCBEnaJB9l5EAJyS5zTyzcvHxhEdbl6ILQr5xU+yzStbzHMr4WhVLhpkwuPE8uG//PcSlGpVoijzRMkBE+FU6omtPckHjNsfEbrLpWhR8EPUuJL/JxJz8zwg8RdmZetBOgRjbPe4GQD2Ny23brdLb/8HXtDqltyUxPGwmGGN9w6Atgy40MwtOzXwSyxZEJf8+Zq7klnmhUBssUZRXS/kz3YK6+9x2aiXitqZIGGZqCBDN6Afka52yOrdixvmDLcWnqinLk/zczXGhKtoLO7fr7F3S9UTjPBt4fT4Y3Pe0g8yfhJ5lVxEcxN8Q== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(23010399003)(82310400026)(36860700016)(18002099003)(22082099003)(13003099007)(10067099003)(11063799006)(56012099006)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sWwlsvwh+x7dcPyPXoBO4NgWK258wvEjGWR8TzsPUVpBSuaEezmDnvme+X17FKO36XmCyhkRBzJ2wzm601rCti336lt7u3qBPltiF45lzWcEawOrRc8Y/ee5dmmuzHAdsIiRnNeBIicquuTgbbS6/zNGtlssKrVURgI8RI7GTfUeR8miXD38IwuQX6oklx2QPOVbk+vWGAYQlsI4shEzJjC9zXfn6YzSRGJmige034y1LXGmgVKXr9f11xrbF5R07oNxO3Z/hsaA+zFHv3lPia48a9js6P9LvEb4kOUMBh3EpvxLhWZ+Nrz4CU3ojerBLsrQ6m+cFhk+O75q1481lCmRHDKstubGcB3wld9PmM0DvxPbV0cl+72iWIfblPHq6Em4FlutpPkjqeX4oO2uXXbfPk0GUqE9x73QfirABnddTY4HtLmJHE/bNmulxFNv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2026 11:33:58.2475 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fefa3543-c79d-411f-522b-08df14af9059 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF000026C7.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8258 From: Colin Huang Add devicetree bindings for the Infineon TDA38740 and TDA38725 single-voltage synchronous buck regulators with PMBus interface. Signed-off-by: Colin Huang --- .../bindings/hwmon/pmbus/infineon,tda38740.yaml | 55 ++++++++++++++++++= ++++ 1 file changed, 55 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda3874= 0.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38740.ya= ml new file mode 100644 index 000000000000..6733e44c37f6 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38740.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/pmbus/infineon,tda38740.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Infineon TDA38740 and TDA38725 PMBus Synchronous Buck Regulator + +maintainers: + - Colin Huang + +description: | + The Infineon TDA38740/TDA38725 is a 40A/25A single-voltage synchronous + buck regulator with a PMBus interface designed for industrial use. + + Datasheet: + https://www.infineon.com/row/public/documents/24/49/infineon-tda38740-td= a38725-datasheet-en.pdf + +properties: + compatible: + oneOf: + - const: infineon,tda38740 + - items: + - const: infineon,tda38725 + - const: infineon,tda38740 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + regulator@40 { + compatible =3D "infineon,tda38725", + "infineon,tda38740"; + reg =3D <0x40>; + + interrupt-parent =3D <&sgpiom0>; + interrupts =3D <10 IRQ_TYPE_LEVEL_LOW>; + }; + }; + --=20 2.34.1 From nobody Fri Sep 25 02:45:03 2026 Received: from SN4PR0501CU005.outbound.protection.outlook.com (mail-southcentralusazon11011046.outbound.protection.outlook.com [40.93.194.46]) (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 3FB143264D8; Thu, 17 Sep 2026 11:34:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.194.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789644844; cv=fail; b=bjtLbw8fdAICJjBSzwZdZqsVnlME8hXvSpphHbikZbmxMo9t9Kic4TTvApriyM6PT2MnWG1X/r5h+89PlIbggCReyeFj7mVc156Cb0ZVWT2JOEQaoo/uk9oZTfeX7xCWyNaqwfj5gi55OIjkTBPxnzYKSXIHCBYRsM1nGA1D0+k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789644844; c=relaxed/simple; bh=1Pw2/crpJXi+MRWRSSogjOkA8fwSJ5TzhGwBAfmCkaU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=cSHZBGFypxLg0kwpTaMoSRgUoM8taRVbq2afZzBAi2gXCWZqI4Jmf9TRWYNYt/rxLRIkxrcM9unJM5bD7gsmgQhCXlrs7f4Ik9u8io3adwVJI2v35KmcY2RInfxpC0DaA+VzUp+VsdYcBgsR6IPoO3dTkZQ91/XUwAg6IjGRiAQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=LwgU+72O; arc=fail smtp.client-ip=40.93.194.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="LwgU+72O" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=i8rzhrU1h1gRhuIF9xcHCCkowGASPDr6hWYbAeez7QotHCaxqke1C3GhgMSay868Qock96lOdiKReoEGgzdUwVOW0c9wDo9aaOSV1FrzpXr+PY7HlnnKcdMjR68W/smscWifeEQ3zHHKoI3sgHbboFmpJT36D5oNqiDLZju00bG46ZoGz60mhOfa5G4iu4Em3m9geYyvLX1colo+wJu0+3F1qvbPJshTYz8GLBkI0dOFS4s9kMU8qIbxPT6txJoG/ity02taKwiMp+rFdOg4/eUn8EUMUmbROSEi/HarEate7K3+J+aUg5ffYL4nQTGgZVg3VQhqxXE1H94QOx6Meg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aI4RovsK2Dixb4YXjxJQVVAgUntFieT/TR+75tB/pO4=; b=ViJveymoi0aoTvx9zoDbSlqOUjWkUdefVuDi2mw6MtkQXNp7QT62iZAhSrc1wWkw+pvi7IStfCnlShLxg2jBrAMm77k2F9m8MvyULKzwMiRiUnKhYRwqM3kjHeyPpzD5PSXORICpjnz4yuD9fp5xuRd6o9uJLyhmJIANpx2+udY4aY9a1sGztawJwWDHJsP4Wy+GIGoGXT5l2a6tGVkgtq9fjVGR3sqQ+AZHfak/4aqp8+cQpCVe1hRvRvkdfxsVxTAWeOJrEALJrEIVOOHkJbDNJSFqot3o0l9oBiu1+Qt30WCiPSUR0YpVFGfYEyJFKfKCp9NkEeB+E5FXRR2d6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aI4RovsK2Dixb4YXjxJQVVAgUntFieT/TR+75tB/pO4=; b=LwgU+72OPnVBdqEgEmQkE6EGUy+HjwTaSx4Km1hGFJRSBKpIGrTaGEFTD6rycXWiKqSvwo5T/IQiIF7ate1LIaUQCm0rh4i1kxY1MEEw6Nse6nxUOFpbQJT8uFW1TzHvK9zfmOGm2iXUA4dZ0uLOQXBFcYjCDynBNb75Pnspcr4= Received: from MW4PR03CA0214.namprd03.prod.outlook.com (2603:10b6:303:b9::9) by PH7PR12MB6761.namprd12.prod.outlook.com (2603:10b6:510:1ab::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.428.12; Thu, 17 Sep 2026 11:33:58 +0000 Received: from BN3PEPF00022BC5.namprd05.prod.outlook.com (2603:10b6:303:b9:cafe::8c) by MW4PR03CA0214.outlook.office365.com (2603:10b6:303:b9::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.428.11 via Frontend Transport; Thu, 17 Sep 2026 11:33:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by BN3PEPF00022BC5.mail.protection.outlook.com (10.167.248.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.451.8 via Frontend Transport; Thu, 17 Sep 2026 11:33:56 +0000 Received: from satlexmb10.amd.com (10.181.42.219) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Thu, 17 Sep 2026 06:33:55 -0500 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb10.amd.com (10.181.42.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Thu, 17 Sep 2026 06:33:55 -0500 Received: from [127.0.1.1] (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.49 via Frontend Transport; Thu, 17 Sep 2026 06:33:53 -0500 From: Colin Huang Date: Thu, 17 Sep 2026 19:33:40 +0800 Subject: [PATCH v5 2/2] hwmon: (pmbus/tda38740) Add driver for Infineon TDA38740/TDA38725 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: <20260917-add-tda38740-and-tda38725-v5-2-7fc19668ada4@gmail.com> References: <20260917-add-tda38740-and-tda38725-v5-0-7fc19668ada4@gmail.com> In-Reply-To: <20260917-add-tda38740-and-tda38725-v5-0-7fc19668ada4@gmail.com> To: Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Shuah Khan , Randy Dunlap CC: , , , , , Colin Huang X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789644825; l=6206; i=u8813345@gmail.com; s=20260202; h=from:subject:message-id; bh=rxlnB87G3pqUtceMBMzYvNHqeXA1vzQwDUv+8M+hzgw=; b=59Xm0xdLNmA3h9IVqNtz4zWnRcJ+4gTbDN5dS7e2pGbvbc37xFifoU5nJVC9IwX30ZPOCzpyc FX18fNRU0wZBt+Hbz5i0V9SXb/y7BWObAc56aR0hzB8Ux/imMJxtBAZ X-Developer-Key: i=u8813345@gmail.com; a=ed25519; pk=Zlg0WqpCw4qbswOqamTBTXIchwR/3SnYZpy7rjaGMdQ= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BC5:EE_|PH7PR12MB6761:EE_ X-MS-Office365-Filtering-Correlation-Id: 999eb8d1-db5b-42d6-14a2-08df14af8f75 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|376014|23010399003|82310400026|36860700016|13003099007|3023799007|6133799003|10067099003|11063799006|56012099006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: DMSZYJAuL8DZ28sGjWRT/7me6uqB3FXTb0S9mVpSsDjzkukauoWjlHD+kQ3TFXRj7jaYO8uPBENuv3o29xmq8SzLKdnoCSkPV+g5fZiunemLqCFmqCP39Z7BT892bG7YrPqXWS7Pwj00UbzJEmY8sQoAfzHZkxRhqSf9Zc89tmZrUU5ehsmzBHXHtIUAtxo5XiNrYpTSwjNfrniV5M6JqfGBmOIWEvNRQOHkNkK5QIUSBMzi5cBopIUlRXx/ag7tx6dvF1jDNC7ZetVpyOyFf98lUkrkuDfwB2GeSEvbPgIAGLqkpF7BsEYAuEwrWRFE9SzJrejpAz2bbZdmC849mW1kL+Yufw+YQwcKEBFJx0FPjN1CQdSHBKZrxlqVbcj5buepYc+MKYC4S8wizjCbSix/+ONP6W7i5w5BR6B897C7fnDx16BTjc8Acnm8msoah+82s0eXsO1wTujaaotgvD+IiZYxd+3A5ebPtG9WjPpgu3Lb4lTeND8N9adSThISy/r5SAhAbGnD3n32RNvRflH3SQYATDzi9vw48BX7fDVRG7Ud2ZGjI/QzsxqkLpnuWtfI8syKl7no4G2FV9wUttmMxDaXLtpjVcbtmfGVB99DqZPhT5zm5rEKxPYfcGy+Mi7XzPUfrr7vGoOEA+SVng== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(7416014)(1800799024)(376014)(23010399003)(82310400026)(36860700016)(13003099007)(3023799007)(6133799003)(10067099003)(11063799006)(56012099006)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DJPJWn7fwCRNXz1awc2NMJKDWAyvPDs8Muc54qGTaAOg0xo2D+lXcTqU9xLqSdBZtFIEhqVWq7wiqZM/aR6eLGqUa/fyO0jh6h0ctGsS1PL5Wuvsfocq0uB9jPh1awNGBleVUdyCOWflbdw/i8BpO0PVEFCHunqedyd54e6y5f+idF155ATZ2oz+Kn/tb/htJIe4oTZZs1B3tSAXFAF5W5ekg+pr0/A9NFhYA9w90s2hEi8Kl+sOfJZqpDNEwXPqExVWH2x8U7Gsc7K/RsYftacAXHIU6xe0abvEEXutmy6+4JVnntm9XnX4AcX4JBBgHFn4Z5lfDOdzZFiDJiTaVNfO0DoWbTP9kApAV4BmIGwOJktPherDCT+P+TPHiuuPaWfjsURU+m7/mJZai6pGhFJUqcwVdlu/GPVKC74clbMlPq2Ya7pUegIdyoa/Fo8O X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2026 11:33:56.8151 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 999eb8d1-db5b-42d6-14a2-08df14af8f75 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF00022BC5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6761 From: Colin Huang Add a PMBus driver for Infineon TDA38740 and TDA38725 single-voltage synchronous buck regulators. Signed-off-by: Colin Huang --- Documentation/hwmon/index.rst | 1 + Documentation/hwmon/tda38740.rst | 65 ++++++++++++++++++++++++++++++++++++= ++++ drivers/hwmon/pmbus/Kconfig | 9 ++++++ drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/tda38740.c | 64 ++++++++++++++++++++++++++++++++++++= +++ 5 files changed, 140 insertions(+) diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index f07977a20271..aeff87b3d46d 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -265,6 +265,7 @@ Hardware Monitoring Kernel Drivers sy7636a-hwmon tc654 tc74 + tda38740 thmc50 tmp102 tmp103 diff --git a/Documentation/hwmon/tda38740.rst b/Documentation/hwmon/tda3874= 0.rst new file mode 100644 index 000000000000..55ce12f14914 --- /dev/null +++ b/Documentation/hwmon/tda38740.rst @@ -0,0 +1,65 @@ +.. SPDX-License-Identifier: GPL-2.0-only + +=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 +Kernel driver tda38740 +=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 + +Supported chips: + * Infineon TDA38740 + * Infineon TDA38725 + + Prefix: 'tda38740' + + Addresses scanned: - + + Datasheet: + https://www.infineon.com/row/public/documents/24/49/infineon-tda3874= 0-tda38725-datasheet-en.pdf + +Author: Colin Huang + +Description +----------- + +The TDA38740 and TDA38725 are single-output synchronous buck regulators wi= th a +PMBus interface. They expose basic voltage, current, power and temperature +telemetry through the standard PMBus hwmon interfaces. + +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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D +curr1_alarm Input current alarm +curr1_input Measured input current +curr1_label "iin" + +curr2_crit Critical maximum output current +curr2_crit_alarm Output current critical high alarm +curr2_input Measured output current +curr2_label "iout" + +in1_crit Critical maximum input voltage +in1_crit_alarm Input voltage critical high alarm +in1_input Measured input voltage +in1_label "vin" + +in2_crit Critical maximum output voltage +in2_crit_alarm Output voltage critical high alarm +in2_input Measured output voltage +in2_label "vout" +in2_lcrit Critical minimum output voltage +in2_lcrit_alarm Output voltage critical low alarm + +power1_alarm Input power alarm +power1_input Measured input power +power1_label "pin" + +power2_input Measured output power +power2_label "pout" + +temp1_crit Critical high temperature +temp1_crit_alarm Chip temperature critical high alarm +temp1_input Measured temperature +temp1_max Maximum temperature +temp1_max_alarm Chip temperature high 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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D + diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index bcfdc4ce4c10..e4ca80dd0574 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -763,6 +763,15 @@ config SENSORS_TDA38640_REGULATOR If you say yes here you get regulator support for Infineon TDA38640 as regulator. =20 +config SENSORS_TDA38740 + tristate "Infineon TDA38725/TDA38740" + help + If you say yes here you get hardware monitoring support for Infineon + TDA38725 and TDA38740. + + This driver can also be built as a module. If so, the module will + be called tda38740. + config SENSORS_TPS25990 tristate "TI TPS25990" help diff --git a/drivers/hwmon/pmbus/Makefile b/drivers/hwmon/pmbus/Makefile index e288fe72a437..eb06d47816fd 100644 --- a/drivers/hwmon/pmbus/Makefile +++ b/drivers/hwmon/pmbus/Makefile @@ -70,6 +70,7 @@ obj-$(CONFIG_SENSORS_STEF48H28) +=3D stef48h28.o obj-$(CONFIG_SENSORS_SQ24860) +=3D sq24860.o obj-$(CONFIG_SENSORS_STPDDC60) +=3D stpddc60.o obj-$(CONFIG_SENSORS_TDA38640) +=3D tda38640.o +obj-$(CONFIG_SENSORS_TDA38740) +=3D tda38740.o obj-$(CONFIG_SENSORS_TPS25990) +=3D tps25990.o obj-$(CONFIG_SENSORS_TPS40422) +=3D tps40422.o obj-$(CONFIG_SENSORS_TPS53679) +=3D tps53679.o diff --git a/drivers/hwmon/pmbus/tda38740.c b/drivers/hwmon/pmbus/tda38740.c new file mode 100644 index 000000000000..1b981c768645 --- /dev/null +++ b/drivers/hwmon/pmbus/tda38740.c @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Hardware monitoring driver for Infineon TDA38725/TDA38740 + * + * Copyright (c) 2023 9elements GmbH + * + */ + +#include +#include +#include +#include +#include +#include "pmbus.h" + +static struct pmbus_driver_info tda38740_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_CURRENT_IN] =3D linear, + .format[PSC_POWER] =3D linear, + .format[PSC_TEMPERATURE] =3D linear, + .func[0] =3D PMBUS_HAVE_VIN | PMBUS_HAVE_STATUS_INPUT + | PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP + | PMBUS_HAVE_IIN + | PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT + | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT + | PMBUS_HAVE_POUT | PMBUS_HAVE_PIN, +}; + +static int tda38740_probe(struct i2c_client *client) +{ + return pmbus_do_probe(client, &tda38740_info); +} + +static const struct i2c_device_id tda38740_id[] =3D { + { .name =3D "tda38725"}, + { .name =3D "tda38740"}, + {} +}; +MODULE_DEVICE_TABLE(i2c, tda38740_id); + +static const struct of_device_id __maybe_unused tda38740_of_match[] =3D { + { .compatible =3D "infineon,tda38725"}, + { .compatible =3D "infineon,tda38740"}, + {} +}; +MODULE_DEVICE_TABLE(of, tda38740_of_match); + +static struct i2c_driver tda38740_driver =3D { + .driver =3D { + .name =3D "tda38740", + .of_match_table =3D of_match_ptr(tda38740_of_match), + }, + .probe =3D tda38740_probe, + .id_table =3D tda38740_id, +}; + +module_i2c_driver(tda38740_driver); + +MODULE_DESCRIPTION("PMBus driver for Infineon TDA38725/TDA38740"); +MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS("PMBUS"); --=20 2.34.1