Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1013428lqm; Thu, 2 May 2024 02:37:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUluECRhfR7D6gmxDuoopz2aYsysn+wlNvMwHK8SiuSs6aPtuzNyKCdjw8tT1RnoQkKCwo/sTi2Icu6oliAIpCgcD6Hw/EnDi01pYTNLw== X-Google-Smtp-Source: AGHT+IFo08vN7/EM/x0uo184ZQimGAkWwMRhtDwmhcTN90mtuTp9GeSw9703Vue31Uu6Z0bFz5g1 X-Received: by 2002:a17:906:c7c5:b0:a59:21d9:df3e with SMTP id dc5-20020a170906c7c500b00a5921d9df3emr1908154ejb.5.1714642650727; Thu, 02 May 2024 02:37:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714642650; cv=pass; d=google.com; s=arc-20160816; b=uOuOq+5Z5rh8T9iSRwV+esYVctc8PxzKl9mHDoJso2Tfdn185XKvK+xHlZYssu2hc3 BqIfsUD9RT+qebbfcTh/uESf623/pDVTue5IBoUJZYY/rqUh6gD3HQNchT9ZlyMTg3T8 1jLM96iC75AUVljebHZdEpqUVTngEDBvL4yqd/9aeno7rMTjZqz+7vo/AmS+Urv1gpCe 8yRrmWUkrcq3uzTmXtsNxYFHMopNVB+GXRX38gyIsjTWIo71h2BBbnIMVos8c8+pew16 ck8j2RDc3L9zaNx3e4UV4EvHaZYuUP/U8fLBGU6mSNRhEUw2IE+bMVl1MEeer+HhKHoO W1Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=CctlOKJPWPHxWDC7FNhGS4deUSNUyBlzDKcIB8bsTn4=; fh=4BpfHvGCXcuHf0ZM3OC2QifmOKbxkUSFf2USw2qsbAM=; b=oUdEK7pqSlJKf1o6M5+jtt6fQb/MdXnjD0uGIIak1UPv1SOvRweLvSSoTzlpCgBC+p yhudT56D7tlLVu3CEM2RDUNl1dLlKjGgEW7CFXnSCyXaadtFqPL0N/AMdN/JAMA4LuIH T0fGQdvMA7MHxSgPWEZL8LeHtNaigTLvo14/xxVtwB+cEGcLF+M6cfehq4/v9HVnfuAU F8AmNVFg2wHI0TQSXh/CjX26DyYqgLs0bTRx4BG1RpIEb4xKvTcL1watnX9BM8hF+XT2 flzExTupqWXv+EPnhY8kVIg9CD+pvxqdtG+eP5U5DcMScKsGOYqSZUyZbz+IK6l7yz76 DmZA==; 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-166220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166220-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id nc31-20020a1709071c1f00b00a55ba05eae0si356649ejc.382.2024.05.02.02.37.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 02:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-166220-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166220-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 928D11F272BE for ; Thu, 2 May 2024 09:27:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C9B45578A; Thu, 2 May 2024 09:26:30 +0000 (UTC) Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9728854750 for ; Thu, 2 May 2024 09:26:26 +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=1714641989; cv=none; b=aK/tVrrOsXPBQalgLV+39J02+sQ03Tqygl1OZ2v3nVbn7XvErrOnlP72OQa5OBOn1X+w76/6z/mh/jGP3cfmIwJnWSBDTh1M0wbOC4nSBVCmhvA5ZbVJ3sd5+N2rNmO0QDHBsPp+O7v7kvFnDsGglyXM5153HZqi823ODVkw/+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714641989; c=relaxed/simple; bh=zAcc9H0zBpdAD5nv9mhTCmb+aHc9FHHAqMpk3o3+kzM=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KRxv1fwB62qtRVTrgGgjkvaJkhw7rVyHUUnjWbkZ8vMGLZPIh+l2+mWti7svczc+POk1OhCatcAGToGhIztxUw3PBzFd5c5Cdg2xI+j7+apcqmKvbEhxvpuPm2JbVJmdl/PGUYbvFZ1caTisqV8qTi0FDFE3bRrIZeEW59HBGhk= 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(3367350:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Thu, 02 May 2024 17:26:15 +0800 (CST) Received: from ex3.rt.l (192.168.10.46) 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; Thu, 2 May 2024 17:26:14 +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; Thu, 2 May 2024 17:26:14 +0800 Date: Thu, 2 May 2024 17:26:14 +0800 From: Alina Yu To: Mark Brown CC: , , , Subject: Re: [PATCH v2 2/4] regulator: rtq2208: Fix LDO to be compatible with both fixed and adjustable vout Message-ID: <20240502092614.GA31518@linuxcarl2.richtek.com> References: <20240502073029.GA4055@linuxcarl2.richtek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240502073029.GA4055@linuxcarl2.richtek.com> User-Agent: Mutt/1.5.21 (2010-09-15) On Thu, May 02, 2024 at 03:30:29PM +0800, Alina Yu wrote: > On Wed, May 01, 2024 at 11:19:05AM +0900, Mark Brown wrote: > > On Tue, Apr 30, 2024 at 05:58:25PM +0800, Alina Yu wrote: > > > > > In this patch, LDO's adjustable and fixed Vout settings are compatible. > > > The LDO Vout ability depends on the init_data->constraints. > > > If adjustable, the Vout can be set to either 1800mV or 3300mV. > > > > > + if (init_data->constraints.min_uV == init_data->constraints.max_uV) { > > > + desc->n_voltages = 1; > > > + desc->fixed_uV = init_data->constraints.min_uV; > > > + desc->ops = &rtq2208_regulator_ldo_fix_ops; > > > + } else { > > > + desc->n_voltages = ARRAY_SIZE(rtq2208_ldo_volt_table); > > > + desc->volt_table = rtq2208_ldo_volt_table; > > > + desc->ops = &rtq2208_regulator_ldo_adj_ops; > > > + } > > > > Why are you making this change? The operations supported by the > > regulator don't change depending on if the system is going to chnage the > > voltage. > > The change is necessary due to the requirement of the SD card for high/default and ultra-high-speed modes. The system needs to adjust the LDO Vout accordingly. > In ultra-high-speed mode, the LDO Vout needs to be adjusted to 1.8V; otherwise, it will remain at 1.8V. > > Apologies for the misunderstanding. Let me provide further clarification regarding the LDO Vout. For the fixed LDO Vout, it will be set to either 0.9V or 1.2V, which are outside the range of 1.8V to 3.3V. The determination of whether it is fixed or adjustable lies solely with the user. This modification aims to ensure compatibility with the user's application. Thanks, Alina > >