Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 255A6C433FE for ; Tue, 2 Nov 2021 14:22:40 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A0275610E5 for ; Tue, 2 Nov 2021 14:22:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A0275610E5 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=mistralsolutions.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 436ED832C4; Tue, 2 Nov 2021 15:22:12 +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="j3qfI10j"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75A878314A; Tue, 2 Nov 2021 15:10:28 +0100 (CET) Received: from egress-ip4a.ess.de.barracuda.com (egress-ip4a.ess.de.barracuda.com [18.184.203.227]) (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 E8542815A8 for ; Tue, 2 Nov 2021 15:10:24 +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-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx-outbound10-171.eu-central-1a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 02 Nov 2021 14:10:23 +0000 Received: by mail-pl1-f198.google.com with SMTP id e10-20020a17090301ca00b00141fbe2569dso2920865plh.14 for ; Tue, 02 Nov 2021 07:10:23 -0700 (PDT) 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=roD6DMnRPnYIXmhibI3UhRxrtap8ljmPzSXvACNFDUA=; b=j3qfI10jz9bDHvRs12Sd7bN8i2ENCy8q8C6Q4K3IzAHQRVuXnE24arAnTIs3n7A8jk C6uXgzjmCtsUso5arhxsM0E5bp6/+2DixDdlpJFZa80+pRBJWzk9eXO3tn5YnCY9Eg1p gotvn3NVg9ylQUogapmQUaJI/hIFmFy1cmDQY= 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=roD6DMnRPnYIXmhibI3UhRxrtap8ljmPzSXvACNFDUA=; b=3snKCKBNyvy0ti09LjvwZa0OA8f//gTKIe8bSeZzdK1FDConAl3NeKxMTxw5qSL8oS HJI3OhNPLEJiJnf9/ibxXJ1R+lasAlplOlNZ26ghE5EMZVrbMEtPmmDZJe+4GBiOIGhU vQJ/Xg8aiyevmqpVUw/PdEElRHQ3lwiUsMywLEWMWa6I8SOyxd51c8hZPSJ4oPZg/Fyt qc4bRWm6zX+4n1+CJUM+yEj+eyWRsQUTntOZH7aAFuX9/Xr2J6ZSf+6/s6gI2T4iGxnA utLSgRZDNiZ4ZMbtQZILLV8H2WETOiDkdsbA4E07FP2cHLo6ygQ2mUFWMI4JIVUegAKG HFrA== X-Gm-Message-State: AOAM533cYQd9HpOUdvZDKdJGn/mYdjr0trP72SDIP7xYA42+gea5fVYb yVXVMJ0wLMb2WXuFYBKoWDDgnn8YSB7pIHhStDb4B53wL2PHLuu/SH/DV1agZW8D9s/K5rCbdM7 P94R5U5/fsgBUJITF4ZroliVCXXJxcoSH7iz+9vvCBcnT0UCo6A== X-Received: by 2002:a63:e755:: with SMTP id j21mr26939909pgk.235.1635862221160; Tue, 02 Nov 2021 07:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk5trknP+SX6riWlKFq+5N6/oCtwaxFJ83f5RAUS//zbBfF2Q2By064j2YC2s5aciQl6FEfw== X-Received: by 2002:a63:e755:: with SMTP id j21mr26939879pgk.235.1635862220839; Tue, 02 Nov 2021 07:10:20 -0700 (PDT) Received: from LAP568U.mistral.in ([106.51.227.150]) by smtp.gmail.com with ESMTPSA id z22sm17985689pfa.214.2021.11.02.07.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 07:10:20 -0700 (PDT) From: Sinthu Raja X-Google-Original-From: Sinthu Raja To: u-boot@lists.denx.de Cc: Praneeth Bajjuri , Sinthu Raja , Jaehoon Chung Subject: [PATCH V2 03/17] drivers: power: regulator: tps65941_regulator: Add support for 3Phase buck Date: Tue, 2 Nov 2021 19:35:44 +0530 Message-Id: <20211102140558.32460-4-sinthu.raja@ti.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211102140558.32460-1-sinthu.raja@ti.com> References: <20211102140558.32460-1-sinthu.raja@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1635862222-302731-5378-11890-1 X-BESS-VER: 2019.1_20211101.1855 X-BESS-Apparent-Source-IP: 209.85.214.198 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.235584 [from cloudscan22-177.eu-central-1b.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-Mailman-Approved-At: Tue, 02 Nov 2021 15:22:01 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 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 --- No changes in V2. 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 { -- 2.31.1