Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp448386lqo; Fri, 10 May 2024 05:09:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWawrrg5KGvM1UJ6PjS9fRj4U4v2HzwQZii2iEXhfS3W0zTzj7sgH5yfmcy6WqeLUyUh3oJ78RaGHjy6gOzObJYf8WM8U2Yj4AbaKHrsw== X-Google-Smtp-Source: AGHT+IEn1BU6jizivUeZiJrwiiE2VgZkGOYsCes/wKiVuwk0dokclrz38lOfbyMhWWkwgYytUQJL X-Received: by 2002:a05:620a:4607:b0:792:c2ce:2980 with SMTP id af79cd13be357-792c7577920mr295074185a.16.1715342946529; Fri, 10 May 2024 05:09:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715342946; cv=pass; d=google.com; s=arc-20160816; b=Fg2t2HrpexB+lU/jOZ6Ov+4t9+mO8xpCL6JVMulNdgSO7wXRFv3+/85wL0ByKgTyZP 6moAYjzk0UITB3ef7RkyPxUoe0cre5Cqvfmh6/Z6aZuxaDRtevXkhvWqRmt+2BSpbOeq xO9qsDDBZ7lpD8fN1BcbCB0kaIp0H4VE7TCvToEdukKST1b8fvnwKmmpShKaX0F7OPDP GBZFhls4uRdApUByAgOUJBvRugG0Jd1C9hvXtiPkoxwIWBtocJZCqXOri0tdZFS4ZyJ3 /aqL48ymCoiuQrJqvaB6pI5h4JJyCVobMRYCfQqVycK5roE0ryKgtiX1KZypJXvbtWGx VBNQ== 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 :dkim-signature; bh=CyjaSK4ROBhTrLFjC+OEFF7KNjcR72P0QQWCODQsyf8=; fh=qPRq5XK4fWV0/iYtozG4A3WG6T1iyjVlgVQyi05onrM=; b=VtQ2ECELffhe7S4krNJBVwbG1sRvMZXxmPjm9yBhkZLJZ1dAe/rGZ1axipRj2TkaP8 foldJhJqNoVyY8G9OA6NVJXwdD0AgdrBUBJVVQlPI++t+Uj0ik4j42VrWp7YK1lnr3uA hqnPxf6NBfhhbJLSs2akiyxrW9DfJdqS01dLV1cEmyQ+IiDVaAM3AB+cwn0MIbJrw02L inN0mzwameVbCJ2sUptbkeu0W12g90EpJwu5t1mkPiuT3vharO9657fVkMuSmfIrS43Y qyxaWdpPy0+do8rQN/gH6Aw+Po1e8TMq0ZGpv10H1Xi6NrBjnCkFj4KDV0ZsNLrjszob M2dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@richtek.com header.s=richtek header.b=rSp4xsks; arc=pass (i=1 spf=pass spfdomain=richtek.com dkim=pass dkdomain=richtek.com dmarc=pass fromdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-175762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=richtek.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf30a3f1si334086985a.351.2024.05.10.05.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:09:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@richtek.com header.s=richtek header.b=rSp4xsks; arc=pass (i=1 spf=pass spfdomain=richtek.com dkim=pass dkdomain=richtek.com dmarc=pass fromdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-175762-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175762-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=richtek.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BE601C24837 for ; Fri, 10 May 2024 12:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C352171094; Fri, 10 May 2024 12:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=richtek.com header.i=@richtek.com header.b="rSp4xsks" Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 132D116F82A; Fri, 10 May 2024 12:06:52 +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=1715342817; cv=none; b=WNbQjN/Pc3pFUdROP6/jNRIMb8+Vl0BvDjqpz1djcbXgrICaojtPc81JNHmIalupBDez039zQhEWSJryqOv3fSaXs8WF5XLl2rvlT7BilJ5L/oNYrk/jV4X0orKp95JeoIzklRHw+2dniQOc4Y544nrlRAlKmkSi5e4smZW+zOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342817; c=relaxed/simple; bh=alAAcYWNGVr0LO9THbHu1S/9Bb/OIKBbEuXmlziafj0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dWCVELJdEwvTA02xYpdqU9rYZjRDkc6vnlGWLbWKEW6wyCvkutH+uQb0pJ/ifSr9GKZKZlfvKfQslOlZM5ZISwg4NtqYv44lEaVsNUVwTz2pfOCfF5vNe7O/eu7D/MeNPZ8uaGDupPWJVmu2aCdkYJXC7EMmZgVVWRSF3e8Sy5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=richtek.com; spf=pass smtp.mailfrom=richtek.com; dkim=pass (2048-bit key) header.d=richtek.com header.i=@richtek.com header.b=rSp4xsks; arc=none smtp.client-ip=220.130.44.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=richtek.com; s=richtek; t=1715342805; bh=CyjaSK4ROBhTrLFjC+OEFF7KNjcR72P0QQWCODQsyf8=; l=1305; h=From:To:Subject:Date:Message-ID:MIME-Version; b=rSp4xskspn2afF4ottBCrarrQXdhxnmclugK41/q/gjJgBdQCorKnXU+BuHguOTKz V7UtFt/ejnBpoBsrMRgFA/18tI711qXDKgqpb8cWZGevo/8Fa80ogU3ZyWW+aMsWFk jEakmFi2bl9LUm7jaEE9iT3CikLpq7GyNWJY9KpWjI6JTCOPh0zE40rCatk4KXlNT/ 47un43UgvPhFkIhjPEHFaI6YD10+Opmtdkut6FkYq6qnGVqvVRTuJmqvRX8GEHF6pY U/tbxeuqFElEZxDq4Bo4jo5X+XSd73FsdDHXf7c6WIEFePW9w3/I73DhD8L2Y6FKHx tsWncPCDKGzqg== Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTPS Server V6.0(3213196:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Fri, 10 May 2024 20:06:32 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Fri, 10 May 2024 20:06:32 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex3.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Fri, 10 May 2024 20:06:32 +0800 From: Alina Yu To: , , , , CC: , , , , Subject: [PATCH v3 4/6] regulator: rtq2208: Fix the BUCK ramp_delay range to maximum of 16mVstep/us Date: Fri, 10 May 2024 20:06:23 +0800 Message-ID: <77fc604a10f4a3055c2c29ff6aa7a253a8b9bc7f.1715340537.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 cea8e77..2e9387f 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