Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1936428lql; Wed, 13 Mar 2024 12:20:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCG/6SzGfH+cLa/iv883pEt8gBMG9O1SNyZ56kk2cqV1MznJOwfeGVq6OJqhiAfteGtUi2S7lLJyfoO+8lbi5CNzwGJQDIPgk7mGD3ug== X-Google-Smtp-Source: AGHT+IF5Hlv70hH4CxArZJZ2KiEgNj/jNqNtCYt04beQlgdhHzyc3wF7KR8d3nH78J3MgXSnlVVt X-Received: by 2002:a05:6a00:4f84:b0:6e5:fb97:ed05 with SMTP id ld4-20020a056a004f8400b006e5fb97ed05mr3801553pfb.25.1710357656383; Wed, 13 Mar 2024 12:20:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710357656; cv=pass; d=google.com; s=arc-20160816; b=USpQD8ZYjZKKcyfNd94rr8SWHcBl7v8K9IZHeK5KRxU3fHq6sO0I03ECHQgF/dGAww /Hl5n8senTONo3hog6PNgdcruapbF50lmUf4cGpcG3mDty4GOT+xnWCp4Mxi24a4mK3C 8bRk4aqFKVp6x5jW/ScXh8sVSFeMTC9g9R5kXKHRTFeeCNDiUHSTFC/qt+yuEs+s9CCi qHGw0gXSKHtNcISKZXrQDpatFOZWch2ZZimj0I/LXAbyvO9KnmgDFObkdFHCijkVzBzp T1VvP0OBXH9gNI1xexTK4q2r5RU57R30UNbjd/5Fhxsc1q+u0jGTZE8PjfvptfLLlWEt ocDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=AhNbiGT3dBNYmyMqRR3v/dtfPCNBKZcqWH9p/BqTK+I=; fh=PkbA/YCPP2mI987PcpmO9dBIuK39abD+bQRVrG1stOc=; b=wmu5gX4TKvwqvZGkApe7OQNglHtTiEIjAEpxb9lIyh3AQPRhOqKUN+YeOaSHDbD9OH U6lSngebA06zi5iom51tz/d9k4ZLE1xtIQilsBn8XQ0XWkTxULDVCICyQ8+xT++4eq5i l0uR0NZZRe1Cl4BxqV/YEQOZwrTExHZ/s1ybDQgM0J+r7d4pUH6tCuAHBZr4pPRRGyTa IO/oeaD/kh8Hi3NZDn9Gita650AD8RXR8i3nM46i4/rs2UtWkFNDBHs9R12yUKhVVbLH Zd21IJkfkMMk5NYfOE4Ivn2Y6NxWi1zy2m8E9RqV77XHKsdIe1AplT1Ris71x4MwcTnN oeGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102338-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ka33-20020a056a0093a100b006e6b46bd67csi2528238pfb.285.2024.03.13.12.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102338-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=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102338-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8EAEA291295 for ; Wed, 13 Mar 2024 19:04:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 893C16AFB6; Wed, 13 Mar 2024 18:13:45 +0000 (UTC) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 ED055605D2; Wed, 13 Mar 2024 18:13:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710353624; cv=none; b=BTI0yEydDZIlv3jYFkRz9DaB+Pb1kJY8WCybRHo9R135rOUug5mlZQe4VFyTXHv6G5GvCS8BJx7j+Rby+zA6mus1O4E8XG9v49cOkzGx8w/fVYmJAnTF4uPrTiD2ggJ3sxtt7sIWw1IYObdLB4yqsRQwMCcxN6VEeSzjvQnEaxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710353624; c=relaxed/simple; bh=XBZxd3/8sCA+mi0OAIV0bPCc+jlbGDc9ebO1Ccnfgsc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FkOCZMmJk5u/rdUTfCU4Ssc7IAtQVgZ1qyYVZFnZ3TR9eOwgRxNl5A25+HBmb9iy5l1wXGvfI96RQb3jFKhuriPayrKiPdy7Xoo2nQe4UmxEturFrJRO1BwvkMj/bmfsIy0SX+OUPVfpUjIKkxm2Ivy2Z5sXiZa8QseAZARipfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6e6c8823519so45366b3a.0; Wed, 13 Mar 2024 11:13:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710353622; x=1710958422; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AhNbiGT3dBNYmyMqRR3v/dtfPCNBKZcqWH9p/BqTK+I=; b=CgUE4E2mCdRsTNba2m0nytc7ejXmuUspdpOei20LUT/VNZsPZC12fH3jgQiUPSRY82 dvlnXCNp2xX1RXDjhpnvfiDCT4pYlX9phxsOKhKhfe53UjHrzqdperMTe8hzKp9ys4iA wTAzzHrD3zhX4whypLxDw8sU4Q4sXomXhuU6/v+n8kHg9JsU/42F6W13KaiVErtJid+r nxLuzps60BTC1HhfaOhnyb3Xrr/O9j/iFFb60Ao2URdTx5yPS3jFAdnoukyeFcY9wDao SBBIeK0ZxbWpNLUY3w3RtdqiQdM2b3TZB+/e3scyiDm+hfNVHmT3yrCq47Fxzd8N4B+T lZNg== X-Forwarded-Encrypted: i=1; AJvYcCVw4ZjlQt2PGWMlPYuu+FYHI3LXcJ004S86LDNN+nqD0f2j47hTQkvnPM7D6aa1LEJ9cto7OvNybC5ov2a0wFpUoYmNFiF4SngLaLmoqsddb9bWckP+cc+/IIdWOe9zf09AGml1eiQV9w== X-Gm-Message-State: AOJu0YwhfnE5fsRCnKo/fcvoI9jL4c34nOuDs5Z0vJmrtFj7fHaMxTk6 rF/h4moOlz91kPaC5Rxf+0MGnRRpw8UNpSNt21ZEyACHN4AVS75AQJ9TpnA4pt0= X-Received: by 2002:a62:d45b:0:b0:6e6:c61d:114c with SMTP id u27-20020a62d45b000000b006e6c61d114cmr597254pfl.0.1710353621740; Wed, 13 Mar 2024 11:13:41 -0700 (PDT) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com. [209.85.215.174]) by smtp.gmail.com with ESMTPSA id c13-20020a63350d000000b0059b2316be86sm8045119pga.46.2024.03.13.11.13.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Mar 2024 11:13:41 -0700 (PDT) Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-5d4d15ec7c5so94822a12.1; Wed, 13 Mar 2024 11:13:41 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXAZC0Mtbe+USFdxyTR1a5fxX67AoBFUT5Rz2oZyp8r09qUNEufhHAm1UVvXdpn0QS0vm+qaspXBaomIQPamPi8nEqtukQvBPcOu7pltkCX0pc/mRi43JeyUIxxilPiBV+aqlV5mgFjrw== X-Received: by 2002:a17:90a:9084:b0:29b:b854:db with SMTP id j4-20020a17090a908400b0029bb85400dbmr11208175pjo.27.1710353621055; Wed, 13 Mar 2024 11:13:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240310010211.28653-1-andre.przywara@arm.com> <20240310010211.28653-3-andre.przywara@arm.com> <20240313173529.1f816404@donnerap.manchester.arm.com> In-Reply-To: <20240313173529.1f816404@donnerap.manchester.arm.com> Reply-To: wens@csie.org From: Chen-Yu Tsai Date: Thu, 14 Mar 2024 02:13:29 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] dt-bindings: mfd: x-powers,axp152: document AXP717 To: Andre Przywara Cc: Samuel Holland , devicetree@vger.kernel.org, Jernej Skrabec , Chris Morgan , linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Liam Girdwood , Mark Brown , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 14, 2024 at 1:35=E2=80=AFAM Andre Przywara wrote: > > 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 frequen= cy > > > control register, that rate is fixed here as well. > > > > > > Add the new compatible string, and add that to the list of PMICs with= out > > > 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.ya= ml 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. I don't think there was such a boost regulator on previous PMICs. It was just a passthrough, which is why on some boards such as the Cubietruck there is an external boost converter to put out 5V when just the battery is used. ChenYu