Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1908906lqa; Tue, 30 Apr 2024 03:00:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqq1YQG30fsOJuNr6fEsFBOIcNumrBXas6B/PKg8n262DwroGODQOj9zWgsOUjub5ZaGGiwfnk4X3TVysnc4zwiv3+kTVFAtpVtlVRqw== X-Google-Smtp-Source: AGHT+IHjpmWGGdrYfJwR3OCwcE+ULSjbazOTMzeWPxnchPb1tTlBOKx5ZDKlPZhuglmVSJHHq9LU X-Received: by 2002:a05:6a21:33a2:b0:1aa:a6cc:39c5 with SMTP id yy34-20020a056a2133a200b001aaa6cc39c5mr19052399pzb.7.1714471226190; Tue, 30 Apr 2024 03:00:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714471226; cv=pass; d=google.com; s=arc-20160816; b=Z/SG0dfoIjA7Ogt0SeIcqlteos/+8Rjx/Smq7riGxiqjHRxEmlT/2gg+0EYCZgBFtc lba5E2K4l0JGbgV3tD1fKxROgUg6hbzI5B/Hz6SLSDc7X48+TdYiLx6PTIB8v8S9u43a vcHSedTZ/2pRYecD/fZ/DnR9gU2mZNEiMcxGQn1ZwEuGnfNOgR0QE7XgPfvu/M5Js++s M8kPgjR+rnZohvz9dNYH3CrjSal3difBkhfWU0v9Ge+u+O7yCHkL00wRmfsPtWcPWcxy nDq3vk4THphihXVRV+6eBS7PTVl4WHkPZv3YZPHDUUEgYwr5UCEw5r6zNSZ/fZheJeo2 yxqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6VlQaVdxtw0HmwugANUaC1Iqp56suq2RFYiiFlRXUtQ=; fh=tnqHSLcNjGPJ99BdeEeSs5RnuwjnVS1kZmtKFj0LaU0=; b=PZsm0U9CSgK5xmhe5+N78ssfMGu0Yowl0tyVEa2KvTTqD4BJkjSwJur+3ElI9D6v1f qsbwAxem6FWWczOOqL6fWFfTj43haVBaA5Ute+JIxkoJNhjG+rC7iHNTALhbjsERAF99 IX6zFz/9Aq9Q+QAxChIcXWfIpe5lKqr0+qo/sEU3xjpdDDCtZfx3U5jxMxvad4yMcvZu J+gTA8q+6pyl1YB8j/mqMVzl3PV+26Y/lmNsc3CEf6e7BX7HUchedRrWdpf39CMHN6Fu LvaYSDP4Z2O9y4XUkU6kmMJXLV0fLcMqbCgfRCw7x87oEQXnuQ+S86DtjwoFhsQz5k81 7UpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-163733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163733-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p7-20020a170902e74700b001e4919ed359si21757645plf.642.2024.04.30.03.00.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 03:00:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-163733-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163733-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DE306B20E74 for ; Tue, 30 Apr 2024 09:59:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 531B41419BC; Tue, 30 Apr 2024 09:58:54 +0000 (UTC) Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9BA5127B70 for ; Tue, 30 Apr 2024 09:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.130.44.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714471133; cv=none; b=SQGVkTWNYabFSs73ugFrBDeXcnlfW/Z8IfJDNPneZrEtkqkwGr9FFbRbAx8zvmUAWzVYggfNxJYHLPkDGFyhfVDnj37vRSt/RkHyMvxeU2SORIORka7vzJOxVtLTOiMA5Pu9Jj2Exg7bsGOLkERGCw35/qh/gxBfqKfOwO2+IF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714471133; c=relaxed/simple; bh=wYJBsZ1Psy2XQjY+LZVkvy93Tzfa/JKnhg4Y7abcKlY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q8QhsL/2g3+qMmya0bXGSBDj8TnJI/oxI4K5Y0rptTY2Ot7C94kYjtHsiLmJHwge8u3+4ZrlJKqXQ4BddLQDkabrz0vWVQ5s0egVDLBKa1UH3NlfFKLRDVFmJFGp+Dn+E4bVgiWrxAPazvP+WAQG3ErGyrOKTMy/RD62nHyoB2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=richtek.com; spf=pass smtp.mailfrom=richtek.com; arc=none smtp.client-ip=220.130.44.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=richtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=richtek.com X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTPS Server V6.0(3367343:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Tue, 30 Apr 2024 17:58:31 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 30 Apr 2024 17:58:31 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Tue, 30 Apr 2024 17:58:31 +0800 From: Alina Yu To: , CC: , , , Subject: [PATCH v2 4/4] regulator: rtq2208: Fix the BUCK ramp_delay range to maximum of 16mVstep/us Date: Tue, 30 Apr 2024 17:58:27 +0800 Message-ID: <1777b18c0faa1f6b7196630e679a03362686c301.1714467553.git.alina_yu@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain The maximum ramp up and down range of BUCK are shorten from 64mVstep/us to 16mVstep/us. Therefore, the RTQ2208_RAMP_VALUE_MAX_uV is modified to 16000uV in this version. Signed-off-by: Alina Yu --- drivers/regulator/rtq2208-regulator.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/rtq2208-regulator.c b/drivers/regulator/rtq2208-regulator.c index 97a97a4..39dde4e 100644 --- a/drivers/regulator/rtq2208-regulator.c +++ b/drivers/regulator/rtq2208-regulator.c @@ -53,7 +53,7 @@ /* Value */ #define RTQ2208_RAMP_VALUE_MIN_uV 500 -#define RTQ2208_RAMP_VALUE_MAX_uV 64000 +#define RTQ2208_RAMP_VALUE_MAX_uV 16000 #define RTQ2208_BUCK_MASK(uv_irq, ov_irq) (1 << ((uv_irq) % 8) | 1 << ((ov_irq) % 8)) @@ -147,12 +147,11 @@ static int rtq2208_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay) * Because the relation of seleltion and value is like that * * seletion: value - * 000: 64mv - * 001: 32mv + * 010: 16mv * ... * 111: 0.5mv * - * For example, if I would like to select 64mv, the fls(ramp_delay) - 1 will be 0b111, + * For example, if I would like to select 16mv, the fls(ramp_delay) - 1 will be 0b010, * and I need to use 0b111 - sel to do the shifting */ -- 2.7.4