From patchwork Wed Feb 9 09:36:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinthu Raja X-Patchwork-Id: 1590265 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.a=rsa-sha256 header.s=google header.b=awcqDih+; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jtvts71tdz9sCD for ; Wed, 9 Feb 2022 20:37:57 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84DC383E2D; Wed, 9 Feb 2022 10:37:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=mistralsolutions.com header.i=@mistralsolutions.com header.b="awcqDih+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D195683D1B; Wed, 9 Feb 2022 10:37:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: 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_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from egress-ip33a.ess.de.barracuda.com (egress-ip33a.ess.de.barracuda.com [18.185.115.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 07D2C83D1B for ; Wed, 9 Feb 2022 10:37:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sinthu.raja@mistralsolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx-outbound13-236.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 09 Feb 2022 09:37:18 +0000 Received: by mail-pj1-f71.google.com with SMTP id mz22-20020a17090b379600b001b863f7a846so1396337pjb.9 for ; Wed, 09 Feb 2022 01:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I4oCHgmIzFP1tdWG/CXqKvu+3V4RNhMabOAkKACpfyQ=; b=awcqDih+guebeTYaVjG8ZmgdGdgjRJFA5um5DBUZjzELvHnlYuOZe4apTKRmDCBTaZ 0yMxkfvKblDE0EYdTcjfCWviUVoCwwf6l9pRs6VTYN9qqlBq7cf6GEi/Njl6d+r2S+6l hWMvHyhUX6LOHtJC86n2yQrENRnmy5VBpQMLQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I4oCHgmIzFP1tdWG/CXqKvu+3V4RNhMabOAkKACpfyQ=; b=Ponk66BjU8ZxEcMwKEB0mkf96FVF1pJdoEgieW8ra9WfNyWm3mfQg9qSRaA2RvYkYf +LxK5OfuoVnggtA2NBQ/DOWaQ3PuyoeRsSkBJy0D8HjaVgazmEhQ0yRNKHIhPwh9FxIq l5MWZb2i5VYwANSFGzREVkCeRsHGOJgGdQXH4+xYyrMt/2lOIesOfF3E2eSu50Ccv5k+ 9Si2zSlOb8ArgXsf1l2dysMoWZLnGbwvVzKBsRkH8QW1qmdFtOpCIyOh4YZ7Q1jc0Jfu A4ghslST/LsV0sWGCGdKVRV/JLsVlFBEMgaco9JA5AUJclbQ8HTHuHCR5OaGkb3NRfU2 Jzjg== X-Gm-Message-State: AOAM532kWtA6L0ARYSl0lpzGKw6/2VVQG5u01/NBV/yyRy2STtpVz1vN GHsbySl7UgFzBuBNSEyrDO+Ql16paZ9b//K4MzkfOFh6pJtePHV/BDgFzlNAEXg6uGvJZdzKZer MO1aNiZ4VpUl3BtY+9FBnZbz2Gnf+PQuqbsmIOb0cCSMrHccZlw== X-Received: by 2002:a17:902:f64c:: with SMTP id m12mr1270047plg.107.1644399437249; Wed, 09 Feb 2022 01:37:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJImaHr7QFUPhoqRbxz88/19R5h6tCPLWveKS+O5x9cfRqqfDZ0L1M5wIAe7eXaYiWxOI/qw== X-Received: by 2002:a17:902:f64c:: with SMTP id m12mr1270029plg.107.1644399436978; Wed, 09 Feb 2022 01:37:16 -0800 (PST) Received: from LAP568U.mistral.in ([106.51.69.35]) by smtp.gmail.com with ESMTPSA id g4sm18964255pfv.63.2022.02.09.01.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 01:37:16 -0800 (PST) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: u-boot@lists.denx.de Cc: Praneeth Bajjuri , Sinthu Raja , Jaehoon Chung Subject: [PATCH V3 02/16] drivers: power: regulator: tps65941_regulator: Add support for 3Phase buck Date: Wed, 9 Feb 2022 15:06:47 +0530 Message-Id: <20220209093701.16693-3-sinthu.raja@ti.com> X-Mailer: git-send-email 2.35.0 In-Reply-To: <20220209093701.16693-1-sinthu.raja@ti.com> References: <20220209093701.16693-1-sinthu.raja@ti.com> MIME-Version: 1.0 X-BESS-ID: 1644399438-303564-5481-8222-1 X-BESS-VER: 2019.1_20220208.1721 X-BESS-Apparent-Source-IP: 209.85.216.71 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.237841 [from cloudscan9-144.eu-central-1a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Sinthu Raja Buck regulator 1, 2 and 3 of TPS6594132 on j721e-sk is in 3 Phase confguration, in-order to support this, add configuring 3 Phase buck in tps65941 while driver probing. Signed-off-by: Sinthu Raja Acked-by: Jaehoon Chung --- drivers/power/regulator/tps65941_regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/regulator/tps65941_regulator.c b/drivers/power/regulator/tps65941_regulator.c index d73f832483..89918c38fa 100644 --- a/drivers/power/regulator/tps65941_regulator.c +++ b/drivers/power/regulator/tps65941_regulator.c @@ -299,6 +299,8 @@ static int tps65941_buck_probe(struct udevice *dev) idx = 1; } else if (idx == 34) { idx = 3; + } else if (idx == 123) { + idx = 1; } else if (idx == 1234) { idx = 1; } else {