Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp547520lqp; Wed, 22 May 2024 11:54:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVa3xIlDahdpvGtkAzMtWYpf9JybmP1I5XvdhAPi1BSxI2XM/gJ3f/rfxl1BMxBJvb4idu/S2KGb59VVX0R2e8dhfGkQJWg9AjnKZMd2g== X-Google-Smtp-Source: AGHT+IE1fSGEb7HkbITW9eqHRahfexnkK1hG/uTsSca8tYZD7eJDYERG1HS3f9PM+VgadmkmAZ1u X-Received: by 2002:a17:90b:3ecd:b0:2bd:7935:a14e with SMTP id 98e67ed59e1d1-2bd9f5a26edmr2534951a91.30.1716404074935; Wed, 22 May 2024 11:54:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716404074; cv=pass; d=google.com; s=arc-20160816; b=eQWOHnEVzipact41j2/KDmdxoQBsEBljoX9l8XXWIFEkCa0wBMumg9VWIVfzxKdRac MTAbQreCp0PfXi0V4Hz9gvfZcvqaV1fOADjATVwGbRK7IvHNUYgkaxdGrn9sqOIWlsqA nG1IpTDJrehBqRtv8FISeiIuPtsARZuunaxJzYwg/Yce+4VZuKUr/USe61Wc1iM1/Y69 fNoMCzzHT49L/jGtWtLnNGjHchVuuUyh4goKAP9NBJR/CgJ5l+lQrBAxv1MmMB6ZcEpZ abhOSX5A1IREx++48UX1a7jsSC7DIEfDAui6MDyMGx09Rybl0n12l0rIkHIf6uheQenj kb4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:subject:cc:to:from :date:message-id:dkim-signature; bh=tA1Sbti/zXxCiItQT/p43hpVbiyvW9x3fEN/x9VummA=; fh=HOp93J+UIdZCh3Z512w4a+czkyVIMK3b5jFDqQwrISo=; b=MRm4yi3C29QxhlCyt6mXehw2kPWWjt6HDUyzU5K9gZjzqQ7xCP0lH5qH3uBITHudoj F0cJQ7dyyJxVfGXxe4c88VjSzdF06Sf/PUsYp6zhQwoTJOOn1hE/SrMExhKBooEEjyU7 4Yw/DNRV+Svudg3yZ8oy1Dt3vwWWSQSDfRcfKFJUSvskWhSrQ15d1Rbm4HOAkParsxz7 JgGXeu/sIpTUz8SwagaRRKDwTp2vfTv8XtxzG/UpCJ/VEeAy+0EG95uwLolgu1Im52IY 1/luUbSd1PQJI02G/M63C1JP+Z/hBXTyMKoC1PfMOpg1GE9r/sZ0BVNBN/t7fXYdvxCY RS5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZqZcOV9F; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-186628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9eeb96asi145636a91.28.2024.05.22.11.54.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:54:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ZqZcOV9F; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-186628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 55D20282D26 for ; Wed, 22 May 2024 18:54:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 268E5146586; Wed, 22 May 2024 18:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZqZcOV9F" Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01B0E1420C6; Wed, 22 May 2024 18:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716404067; cv=none; b=YKeCTJLPOjMIF7B6GM85n3/QcjmGMvbwL+d/S+B+FAJBj/nYf1zN9TAJcD75kX50xD51Qxf5bwq23i+BsFeLFuJeGWwPyieGdSDm7PLQy2RyiryspFXMsAwz18CnFwcjmncM33mlMj3Zn72IlyRyWBhso1DgTHob49a9hG0muPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716404067; c=relaxed/simple; bh=zG6DmFSvOlwxNqFRYCCoNVfO0/oFcnar3wPos47WTUg=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LNWw73OFeXQXwVN6zIGk4IibDcuzuj9Dqe6CXdfY+VE/gYW+K/83bP8/sTAgftV6qEM+yUNeYuh2uVOgwmw8283iTrBfjlLBSAph3Uh8ehcUTjXayb/z/oC93X4uAt5LdbWQJ64PRXvoMOR46w+EChrMrJOYyApm2vZDU+LjeEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZqZcOV9F; arc=none smtp.client-ip=209.85.160.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-23dd94111cfso3230736fac.2; Wed, 22 May 2024 11:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716404065; x=1717008865; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=tA1Sbti/zXxCiItQT/p43hpVbiyvW9x3fEN/x9VummA=; b=ZqZcOV9FE0wb6bhtVBX1cDPvHGQ9ySQsdSOV6Tn0g5t0M+8LGN2tCiY4Sq9TIf6Xfj rdV1k6B8Xdvac4ffNB2lQQjMqr63HSIoa1xyG+4DzNWf+rfVOTgzZCudEpetvaCpqOb5 RvXfXj+Y6MOnHe4tC5BXGC7y/g6wSzcyCeCNyPp1LODSQ7hvrll+8FVHOK2JUviwbfx1 yIzmsbLfOqncwdeIqOClG3TPu9u27FH7+i9OicSwnekBiqKYyTanWnpy3tFCO+rcXESf fP1nx+CcG6Tf+qf0Q9XQeuAGDydMrxTyZMClHu2srXWns7bgzV+uOZRCCkWC01z6g4fD mvxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716404065; x=1717008865; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tA1Sbti/zXxCiItQT/p43hpVbiyvW9x3fEN/x9VummA=; b=D9Lytqp5VQLEju34Bb5QcbYI9ZCtZfsfJFQg/VCHT9VLUEoCydaU4jCD8xv9CzihJ+ Gc4MojzS0JgyawUD2ewDR058uf8rCtXoghFTEZv179zAwWX3EGO74lpaULcwLkXekI+S SA9x1eTFH3wcrBGy6loHt2adA697GLW64MQOHexEPMXrvAaw7JIo9RtvO0rtXyD8Nfvx FaDYn8xDDa8lfcGj4LdWNpZVvFKf1SjgAh1LjJ3RKlSbViZ6yH/GXz1R54rhdL16TmgT hwVcvp9yM+Xt1LVwSXr3Ud5+tzgDv7EqNc9XVMjEwGLKdJZhpHP4Y5ejAVfr6ZlpACyS 6y2A== X-Forwarded-Encrypted: i=1; AJvYcCXfKaaJEpKNUYJwkaFlMQaaSIJ+sQ9G1RkDqfMtzjUAbSM3iHA4OBHewrTIXfWvVeftfWsOXxO18sDGpOgt3BoC/kCmk0a4NMsDWdqa5TvU9APMmwqzpphXtPi6ghV5EjcMlagncqTHug== X-Gm-Message-State: AOJu0YzGiTONGuzDmGon/luJhYN69ZObbqSeEEijyQ/izbTkRDYu9Oi4 aLpb9gkNKh9i1EZT/4ArekIgfaH6Bhd4gX0ZPKnXNO/hRQBU7TsV X-Received: by 2002:a05:6871:581e:b0:23c:2cf7:9ff9 with SMTP id 586e51a60fabf-24c68aeeeb5mr3242325fac.7.1716404063187; Wed, 22 May 2024 11:54:23 -0700 (PDT) Received: from neuromancer. ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-24c8227e303sm44531fac.30.2024.05.22.11.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:54:22 -0700 (PDT) Message-ID: <664e3f5e.050a0220.ae493.07d7@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 22 May 2024 13:54:21 -0500 From: Chris Morgan To: Andre Przywara Cc: Chen-Yu Tsai , Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Jernej Skrabec , Samuel Holland , Ryan Walklin Subject: Re: [PATCH v2 4/5] mfd: axp20x: AXP717: Add support for boost regulator References: <20240418000736.24338-1-andre.przywara@arm.com> <20240418000736.24338-5-andre.przywara@arm.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: <20240418000736.24338-5-andre.przywara@arm.com> On Thu, Apr 18, 2024 at 01:07:35AM +0100, Andre Przywara wrote: > The AXP717 also contains a boost regulator, to provide the 5V USB VBUS > rail when running on battery. > > Add the registers to the MFD description to be able to use them from the > regulator driver. > > Signed-off-by: Andre Przywara > Reviewed-by: John Watts > --- > drivers/mfd/axp20x.c | 2 ++ > include/linux/mfd/axp20x.h | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index d8ad4e120d379..02513b1eff2e8 100644 > --- a/drivers/mfd/axp20x.c > +++ b/drivers/mfd/axp20x.c > @@ -209,6 +209,8 @@ static const struct regmap_access_table axp313a_volatile_table = { > }; > > static const struct regmap_range axp717_writeable_ranges[] = { > + regmap_reg_range(AXP717_MODULE_EN_CONTROL, AXP717_MODULE_EN_CONTROL), > + regmap_reg_range(AXP717_BOOST_CONTROL, AXP717_BOOST_CONTROL), > regmap_reg_range(AXP717_IRQ0_EN, AXP717_IRQ4_EN), > regmap_reg_range(AXP717_IRQ0_STATE, AXP717_IRQ4_STATE), > regmap_reg_range(AXP717_DCDC_OUTPUT_CONTROL, AXP717_CPUSLDO_CONTROL), > diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h > index 8c0a33a2e9ce2..4dad54fdf67ee 100644 > --- a/include/linux/mfd/axp20x.h > +++ b/include/linux/mfd/axp20x.h > @@ -115,6 +115,8 @@ enum axp20x_variants { > #define AXP313A_IRQ_STATE 0x21 > > #define AXP717_ON_INDICATE 0x00 > +#define AXP717_MODULE_EN_CONTROL 0x19 Could we name this register something like "AXP717_MODULE_EN_CONTROL_2"? We're going to need register 0x0b later for usb and battery, and that's also marked as a control register (control_1 per the datasheet). Thank you, Chris > +#define AXP717_BOOST_CONTROL 0x1e > #define AXP717_IRQ0_EN 0x40 > #define AXP717_IRQ1_EN 0x41 > #define AXP717_IRQ2_EN 0x42 > -- > 2.35.8 >