Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1406450rwo; Wed, 2 Aug 2023 13:35:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlFnM73+G0+5HfjZHxFFIMuXOPouRmAKiz924VEG7FFZbhQtGZWiMKH+rAr7uY8P9BlvuZbU X-Received: by 2002:a05:6a21:3b45:b0:11d:4c79:90ee with SMTP id zy5-20020a056a213b4500b0011d4c7990eemr17251602pzb.25.1691008554707; Wed, 02 Aug 2023 13:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691008554; cv=none; d=google.com; s=arc-20160816; b=EwwraDNc4cFlhqnP9TSTt+rfgMUqkQdCSuMaA+E6r8tgy1BqKZn9F3fxV1L10FkjbK t8tOu34q7XGUOZmXumSjsGk+2/Hc2iLGarwox1yZtLszCCsbqLdw+UlEgRh0dDF5jwjM kYrZrTlURbHHUeVT3W5hy2mNsHLQGUYQMem7kOPWDOc73JCAMiIbg/gE0qD2/JQaZtuk Be7TMSRgSTPKlLjusiRXHkzoq2rDm7KdgFkvxfUujd+pSkli2flP4g8FnBeEQDUR4EVC BqsdHl41V6cJQZrwngRViKUBx6h6POH9h2ak307tbUqauzPplYkH5wgkf3vCIof8XXr3 dIHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FG/HvA/ZhPB46DVPJ1FluHZ8X/9xTIstvJa8fWyAL7s=; fh=mFuvIzLWteCW3m+PeZ45FPs/58IIfculf7XGiSFPuc0=; b=ECX9m1k7Lh1rOZWX87hA6ZwUQhMlm8OQqN+aI1t1DK7lUwOOCnQLeo1zz5/kNpv9Fb 5oVBSnDOZCZ7JHFA5ADhMNP8tdeKfZkitFc3Cv1I6Zw183dLDjmJDeJU7ajMRiV47jI5 HDLgRh4Cjfyvf9a7tkyd2wx83ZBal7LyJ6Kp1DrHjPy0908D5RxpkL2rax54t39UH/ev CqNnMfbS9RP6eP8BubPXZ/r8eC09Pq1/ChfSXoGDCXL5ZV5Cr1fAnB7oMdV+XNASlcKr RUIk5nsvsWNt1fEMX6CEza86eHujeMei1TjGo60SqsEpNnsxYTNhlVdq1oPzpMnfj/JU IFyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=aTsL5G7m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a63d611000000b00563e1d63c07si11172147pgg.695.2023.08.02.13.35.41; Wed, 02 Aug 2023 13:35:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=aTsL5G7m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbjHBTcP (ORCPT + 99 others); Wed, 2 Aug 2023 15:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbjHBTcM (ORCPT ); Wed, 2 Aug 2023 15:32:12 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86FF01996 for ; Wed, 2 Aug 2023 12:32:09 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so2094925e9.1 for ; Wed, 02 Aug 2023 12:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1691004728; x=1691609528; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FG/HvA/ZhPB46DVPJ1FluHZ8X/9xTIstvJa8fWyAL7s=; b=aTsL5G7mheOUz7tnXWywhC8ziDCKBSxTb575FaYpQBIM/DZkYwPjCr3TUqQo/D7KjM 681xxo/H2QmzJKKL2zBfZCINoUgHqhhTCuRi/Zn4T2JRCMWoLAJnSSvdCo7qZByXp9S9 ImGdJOfmB2l0dDlVv3aXGZI1ZROQ9TmrkRo/ioe1zJOBuRqKl8cqpwvNQ/ENKNEEptWz X54bIgMBjzQrAdCgDO3MSdlefWZFAzTPfrpqopcUk/fEiQ+AYQ9ka2t+G7h3P+XFqLZT kHE/yTqcMa4lIR1zDqn7JGJc9+G7+ReIXoyDBXgAW9tmPt4ybhXsCOyFsHO/FqOjW65u FWzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691004728; x=1691609528; 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=FG/HvA/ZhPB46DVPJ1FluHZ8X/9xTIstvJa8fWyAL7s=; b=khrdkJvdI9Sz6PAAxg2X9kVYFYFHKjFOml13AHd7+/lVtU+k1kwwOKF1slZQ1k8O9f VdTUHOJG5/aj4PvyxruTqx8XJ2ijxw4Q+edVjmAeAfp+OCRWlWEEGdecoln9qJ2jpGxk UcNi/pWIom2e2+kpIUPuIyixv+bGmAUEDvqeDZwNSxrflhUDIeBTXvs9SsGIsMpkwDyg MUbj1q0XUg6atHOp6s25Z0sE0SgEgylKYL+1KG+5eQDMu0mWNCzluQhebBiKH5fl+A05 Va5mfAuWp6NiJOBscXT/z7OfMGdJlmRDd67hsDX6qleCXXiYsxz8wOplHssn7yJpsMub dIgA== X-Gm-Message-State: ABy/qLbSmBxBEuvc3QgtoCN8gmeKHEB9685Q0T2Lh9bklhFX+X+1oWfq mvmBqIFxyKxeVomvp0N0cGk7vA== X-Received: by 2002:a05:6000:152:b0:314:5376:f0d6 with SMTP id r18-20020a056000015200b003145376f0d6mr5372863wrx.52.1691004727865; Wed, 02 Aug 2023 12:32:07 -0700 (PDT) Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id v18-20020a5d43d2000000b003177074f830sm19666773wrr.59.2023.08.02.12.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 12:32:07 -0700 (PDT) From: Naresh Solanki X-Google-Original-From: Naresh Solanki To: Guenter Roeck , Jean Delvare , krzysztof.kozlowski+dt@linaro.org, Rob Herring , Conor Dooley , Naresh Solanki Cc: linux-hwmon@vger.kernel.org, Patrick Rudolph , Naresh Solanki , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: hwmon: Add Infineon TDA38640 Date: Wed, 2 Aug 2023 21:31:51 +0200 Message-ID: <20230802193155.2170935-1-Naresh.Solanki@9elements.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrick Rudolph The TDA38640 chip has different output control mechanisms depending on its mode of operation. When the chip is in SVID mode, only hardware-based output control is supported via ENABLE pin. However, when it operates in PMBus mode, software control works perfectly. To enable software control as a workaround in SVID mode, add the DT property 'infineon,en-svid-control'. This property will enable the workaround, which utilizes ENABLE pin polarity flipping for output when the chip is in SVID mode. Signed-off-by: Patrick Rudolph Signed-off-by: Naresh Solanki --- .../hwmon/pmbus/infineon,tda38640.yaml | 51 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml new file mode 100644 index 000000000000..c5924ddf1b47 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/pmbus/infineon,tda38640.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/hwmon/pmbus/infineon,tda38640.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Infineon TDA38640 Synchronous Buck Regulator with SVID and I2C + +maintainers: + - Naresh Solanki + +description: | + The Infineon TDA38640 is a 40A Single-voltage Synchronous Buck + Regulator with SVID and I2C designed for Industrial use. + + Datasheet: https://www.infineon.com/dgdl/Infineon-TDA38640-0000-DataSheet-v02_04-EN.pdf?fileId=8ac78c8c80027ecd018042f2337f00c9 + +properties: + compatible: + enum: + - infineon,tda38640 + + reg: + maxItems: 1 + + infineon,en-svid-control: + description: | + When enabled, it allows the chip to utilize workaround for + software control of output when operating in SVID mode where + hardware-based output control is the default behavior. + type: boolean + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tda38640@40 { + compatible = "infineon,tda38640"; + reg = <0x40>; + }; + }; + diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 40bc475ee7e1..86c7d34f63bf 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -151,8 +151,6 @@ properties: - infineon,slb9645tt # Infineon SLB9673 I2C TPM 2.0 - infineon,slb9673 - # Infineon TDA38640 Voltage Regulator - - infineon,tda38640 # Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor - infineon,tlv493d-a1b6 # Infineon Multi-phase Digital VR Controller xdpe11280 base-commit: cb7022b8976e3c4d12cea2e7bb820a2944e2fd7b -- 2.41.0