Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1919395lql; Wed, 13 Mar 2024 11:50:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2cEeQIdySt2PZQyka+dXfw+mIzPDWfmL6FmSRLiLiqEiUmm7cih42QxOQnZUcLAcoBlcWsM2Cmmf5dka8Z1WEKrXH6IWjpDWP4xhAkA== X-Google-Smtp-Source: AGHT+IHo6b2TdW1G4WHODeIrfk4BPDpBf8d6uCQhiqO07dilSg7OF724bZBfkWnY7uFOSHbuNUNY X-Received: by 2002:a05:6a21:a585:b0:1a1:667c:eece with SMTP id gd5-20020a056a21a58500b001a1667ceecemr18925851pzc.2.1710355839301; Wed, 13 Mar 2024 11:50:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710355839; cv=pass; d=google.com; s=arc-20160816; b=wYNtqTIRxBS5TlpfRICoEjMVxX2xL8giibQN2mwS90TCEJvVeICLzurUnamE45hiUR uMWlgC6nk2pr7coXBdkT274qy+6ks96aQmikEHmSVT/DwGczq/Z9S/sydMK62b1GgM9F sqHMagb53yfRhaN93ioL5OeQGpFxJRYH5Q55o4HH6G6W9Oql9Sc4uTt6hCpGQfpSzdNt wgONq6iaGFx4DV09a4CYv6rXZ9CHiFGnlgmkdhwuiP2UpXKD7R5YCD0/olJ6eJt5EQkZ s01CzavQCLOPZukpSzciD/jxWLcq2vMVJDEOLwQiliz4DshGe8FGbALX6WSRiNVYVSV7 tswA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=0n5udd+WQ4oIQrSZo5NQtpKnj456G+0Wzq4kz8wh0F8=; fh=oPrG1iqIDJE8oIfWsM6T7lEl6Pjebu0vcBvn8crFCXk=; b=RDHt41Rvc0Cq49OORyfbMpWedaosE6Kx71Z/F0pDZAZacHECRC3ykty0BsqbbFjq0H IfajTwI4VIpuHPa75jOtgR8fu0ie5zU2Xbj8RnDykZVxPsJF+hQQbsJH+cItZ4F+wTE/ rzU7RyIx6Fjd9i/0jAJXddlXTFZWIXDN5N5WBIdHjCt3Uizw4DHYp11++sAaw7Qbx39F KPmIeDGXbA9vF1s/qegJ+p1N9cK7wjerjGp7SwRBmJewSfVMRpbUNIEsZ1zyCehle55L 9b8FSCWW6EWBbxfLLlJfnbJoL0DwG/FwVGA7Bf1vajxZqg2diqOlPKxMsNX0ac0xqjqc 1ZGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-102276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 4-20020a630b04000000b005ceb19326e3si9584120pgl.251.2024.03.13.11.50.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102276-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-102276-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102276-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 201302882D2 for ; Wed, 13 Mar 2024 18:43:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B28512D207; Wed, 13 Mar 2024 17:35:37 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAE9B64AB3; Wed, 13 Mar 2024 17:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710351337; cv=none; b=HmQjR5mEynTxrXXwjtZVGTYwMI9bx1lIqknLpsNH3ALV6j40ZrX0I1+Obykr4EZ8iCyfNqlEocUonjwwJnUZJRom0UvtV8TGgXhjbetqkQnTBWvgcawofzebC2SStq9eLX3FUlmY/u7hJeyvZ5vY5QZHR17tWCpHuc5/2rcnZM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710351337; c=relaxed/simple; bh=MWwfH0Ds/guaynuWl2ku83J+KR2G68Bd0doIQxAEm0w=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=R6N6pmt/IGYuYvH3+9IWw9Iz+CzMAr2jOyJOde41c4WjRZNRhuTsTffawZFHzzRoBWKbiOKPorhqPbvf2Ci9FOv3G1YK+OJ2LsbY4OGh2jJ4Jb7PLpGoGkIrilBLoSpoRD/TsXR4WTjTwqmHPmo2sEepjMb0hZ+ub3XO3KegCdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DF58C1007; Wed, 13 Mar 2024 10:36:09 -0700 (PDT) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 886BE3F73F; Wed, 13 Mar 2024 10:35:31 -0700 (PDT) Date: Wed, 13 Mar 2024 17:35:29 +0000 From: Andre Przywara To: Samuel Holland Cc: devicetree@vger.kernel.org, Jernej Skrabec , Chris Morgan , linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Liam Girdwood , Mark Brown , Chen-Yu Tsai , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Subject: Re: [PATCH 2/4] dt-bindings: mfd: x-powers,axp152: document AXP717 Message-ID: <20240313173529.1f816404@donnerap.manchester.arm.com> In-Reply-To: References: <20240310010211.28653-1-andre.przywara@arm.com> <20240310010211.28653-3-andre.przywara@arm.com> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) 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-Transfer-Encoding: 7bit On Mon, 11 Mar 2024 17:20:50 -0500 Samuel Holland wrote: Hi Samuel, thanks for having a look! > On 3/9/24 19:02, Andre Przywara wrote: > > The X-Powers AXP717 is a PMIC used on some newer Allwinner devices. > > Among quite some regulators it features the usual ADC/IRQ/power key > > parts, plus a battery charger circuit, and some newly introduced USB > > type-C circuitry. > > Do you plan to put the Type-C logic under a subnode, or should the > Type-C connector node go directly under the PMIC node? Either way, the > binding probably needs to be updated for that. I haven't looked into this yet, so cannot say which way to go. I definitely consider this some non-trivial task, so indeed wanted to push this off to later. For now there is a device (Anbernic RG35XX) with that PMIC, so we need at least the regulators to unblock this. USB support is not critical for now. > > Like two other recent PMICs, it lacks the DC/DC converter PWM frequency > > control register, that rate is fixed here as well. > > > > Add the new compatible string, and add that to the list of PMICs without > > the PWM frequency property. > > > > Signed-off-by: Andre Przywara > > --- > > Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > index 06f1779835a1e..b8e8db0d58e9c 100644 > > --- a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > +++ b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > @@ -83,6 +83,7 @@ allOf: > > enum: > > - x-powers,axp313a > > - x-powers,axp15060 > > + - x-powers,axp717 > > > > then: > > properties: > > @@ -99,6 +100,7 @@ properties: > > - x-powers,axp221 > > - x-powers,axp223 > > - x-powers,axp313a > > + - x-powers,axp717 > > - x-powers,axp803 > > - x-powers,axp806 > > - x-powers,axp809 > > The regulators patternProperties needs to be updated for the new boost > regulator. Ah, I indeed missed this one. I think the former PMICs had this batter->VBUS boost regulator hidden, controlled entirely by the PMIC? I will need to check if exposing this will present any surprises. I guess this goes together with the USB-C support, to have role switching, unless this appears on some device with just USB-A or micro-B. I will check what it takes to add this one, the regulator itself looks easy. Thanks! Andre.