Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp961436lqm; Thu, 2 May 2024 00:31:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJ+/jvezO7Sjc9Fb443hY1o1wOeiakS63U7+xyk6KeSLqRyhS1Ds+6EuZuQFfUik6hIVtWH32GvtRkBLulXn61lq+mm8HX55ZJ6CHIaA== X-Google-Smtp-Source: AGHT+IF8qTFOm1k/oOdevUtbIu2mq1IPXYJx7GLfQbNW9sciulLAXhvEwC7ju7OQqZVCAY51wY50 X-Received: by 2002:a05:622a:60f:b0:43a:c27b:df34 with SMTP id z15-20020a05622a060f00b0043ac27bdf34mr4396078qta.31.1714635062710; Thu, 02 May 2024 00:31:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714635062; cv=pass; d=google.com; s=arc-20160816; b=n6XGVjJ+plk/pQYtMqZnds9Muyi69Q1RATn2R6KPptXmf4slVCEOLpT6aHzIngmMNy BmCM7nJsavd0L4g7UEDkdJA/TuzzNkJ9HIG/bGVC0LhqIhnhotTqMT+eXqaYt6br+FD8 l0NzNub7rmeqMyzRWfzVT/UTfwaGuCGe6Ops2NCkbwTHClNghXFu4qC5Lt/BLVikENX3 1vL25VOVduCZRmiAvguApBOD/Y51527EXaEm7ZPLvswlaype9hQcZCaQnKoHuW3LuykO +fYj8iFx9JzHrchyaLcDh2CyX9WRltI3JiZhJVU4BzyL1ABlLymFj3XMgrbNL2J86ciq 1KZw== 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=Ae3vOuRXye/09E2mkcOywr4uwpPCmFB5YMFdwyqExes=; fh=4BpfHvGCXcuHf0ZM3OC2QifmOKbxkUSFf2USw2qsbAM=; b=ILIwpxgBYYyITphyXy6SxgVS67qjKD903DhLLuRwLpRztSNUm/12dr9RBDH447SN0s ZGyvbipXeIVGXYTm/aZoHjQ9QCPpCFRko250KrQ4wwhpBFnLP/g6GBantALSm856pREo w9D1zMXyCuP9LVV9ZyLUOPwmqp7ncgxQ9EI2MIPka/TLB3hthDZqzqjCdROMij0JaWdN m61fRtGYTB18nXf0uVqU/+ItAuFI8mvzf+g09vhXRZvY7yU2OWk2BCMSjROS5KJABKRt By7LWPo03jrPEVYG7iD6bzwOx0LiR7Qzyfe0sbCfwPdnPkwF+CNGNi4vVdBQB23sRffM nAUA==; 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-166055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166055-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w19-20020a05622a135300b0043b0a915fc3si398609qtk.651.2024.05.02.00.31.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:31:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=richtek.com); spf=pass (google.com: domain of linux-kernel+bounces-166055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166055-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6E7B41C20DEF for ; Thu, 2 May 2024 07:31:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49C67224F6; Thu, 2 May 2024 07:30:56 +0000 (UTC) Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F04521A04 for ; Thu, 2 May 2024 07:30: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=1714635055; cv=none; b=ULRVAkPzTsiG63+fLs1R47Q0hbLoLl6Xc+raW6Uugh7/sLPCeGNibDwNkK7/+dk9j940Xh42PTXmisHwohqYXDViYSdRjog3TPOs++7xGfpmRFIT/1gfkhNNNUFw3eyC8tpnwf9O/Z4jrLlrlIABB8r6q1PqGJfI1iQbawZMgBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714635055; c=relaxed/simple; bh=1M8PYJnBXnW/oj67wWmDLahjkn2KzyAvAS1go61CQVk=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O9BREs4K49BTM34GMUGlC5nemx+GR6JzT7ctWSRknMiFykSv9JX7P1sC+dTctyo7cawZ066Hqo+TyOwCkqVMgPHlrVdvroG4rbXSd9fB8FUXieHadcpPH7/7cnLY3OKmTWe3XG0jw3kGR4qEFcGsmdrTFfBgwj6aO5tU2dmBWG0= 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(3367342:0:AUTH_RELAY) (envelope-from ) (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256/256); Thu, 02 May 2024 15:30:29 +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; Thu, 2 May 2024 15:30:29 +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; Thu, 2 May 2024 15:30:29 +0800 Date: Thu, 2 May 2024 15:30:29 +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: <20240502073029.GA4055@linuxcarl2.richtek.com> 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; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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. Thanks, Alina