Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp687849lqz; Sat, 30 Mar 2024 14:40:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9D1zrfV4e2hkPC8pkswhzgDxnN1UIcH1e1sNFcKNWRSsYZSd0xD1B7ICStpyWl+EC57oZSJMDSLP35wylLN8rwNk0jAZ0LKzwU7r38g== X-Google-Smtp-Source: AGHT+IGWWM9u5yV+qniU0UgAzszG/qjrfXc+kLITJiBYc3t9pNrDqJqE+x6R2e/XaxJ3T+wtkH5z X-Received: by 2002:a05:620a:3911:b0:78a:7431:757 with SMTP id qr17-20020a05620a391100b0078a74310757mr7541872qkn.35.1711834851322; Sat, 30 Mar 2024 14:40:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711834851; cv=pass; d=google.com; s=arc-20160816; b=nYhW3NfLaPpCsFD7g34IB+Xzw5oG4a9mflEY82geXznTLKIvNUju2YynK1S7VCPUZU yxwc/wRAgA1oQ6f2ZnuS7RTRp2a3bxNgvE9pXGebLpxAuH5VOymaaye1TiS49hm+d5Ff 9dGPfHD9y2iO0SdLwPEpHX/g5v3t9YZY0kxiZRWseroB+QYiMwFOyoWOQuXpLjflhNme 0Pu3HPAzQlQR8BSxqddsKLpHTgxCtxV4nrT1VFCaQe9O8H+lzWBzFSTgkED7ERN/7e12 g2S4RDsLlcLVrNFMQzAxtHXbCKTouvlvRuSzbRLP8lH2Ezgr8V6Ta1vn96oP0i6FguBp Z81Q== 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=P/shOQ22BywOt6LXZ2YgPdn9Ue1Y54FVTF6gDMkIenQ=; fh=vQ0hKf2jMpyjNi5n9WAedY0/OzPYxGyEyXT5cZLAlcw=; b=xGMs4JVfKj7LqcTgDEtOBMu0x8QhbqBfYCh/37qmMmZd1M24Uuav1JF6PY78VbSlGE awPMepNQg9bMEJpfP6PYjfqqAtY/2ev0D8qI6MMaeeNetmyu/vMZi71KLtNwmZffBLO8 LvvH8qfWg6B6jTOO0uBw2PHj95NhhY2dS0T6ab4lmboCOmIepqeDPOqXq3FgbwKrdckl wLkAd9Bn7ffinEUCIZSTIJIo3x9FgtJP9DJauyYKF6wRLhxEgqw6Y6R59WQSUPhGO6rl fWBRYDIGuLbhppz3pkoc++3MzhPriM+Dmm+TZqWphEO1NPXEAHkxxXuXfy+PPtXcIBkR p/uA==; 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-125898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a11-20020a05620a066b00b0078a3a38a52csi6332476qkh.218.2024.03.30.14.40.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 14:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125898-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=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-125898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125898-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 124141C218CF for ; Sat, 30 Mar 2024 21:40:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DC5C4AEF8; Sat, 30 Mar 2024 21:40:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD40822093; Sat, 30 Mar 2024 21:40:40 +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=1711834844; cv=none; b=T16REM/JeJLpoXc7ElgL45TTWtiTMgynPrFBf46tlGF8vXCCm43+k5UkrSBfltzvdOj6XZjQGnnl38I8eOJmUER9LEmKMlrOcJ5UtCFoT2G2GqfSJEMd1AQnU2cmd+F/xgql5JQa5/FsWa14+2Xmv9mwG03Jta4Uudu6R246STw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711834844; c=relaxed/simple; bh=Sfv61GuqN9EjrEx8j81lakykRn8nhWIo5beb5aUP+Mk=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eWiqO4Ji2EjrulhkN2iHrQdRuXu/yWIUA6mtsi+f+X6Ke/TUpqBVJ58ftB0LVu0Xd1QNYulCWla19cKKMW8iJ+xEhB3K/hdVeD0yV3Bd0Bhs+HPKulDrlxDl5gS5Yztast1Bs9ZVDRIUg8SD/Zahm92liwU2qYbZOMQJltrxgJ0= 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 D0D29106F; Sat, 30 Mar 2024 14:41:12 -0700 (PDT) Received: from minigeek.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 114B33F64C; Sat, 30 Mar 2024 14:40:37 -0700 (PDT) Date: Sat, 30 Mar 2024 21:40:22 +0000 From: Andre Przywara To: Krzysztof Kozlowski 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 , Chris Morgan Subject: Re: [PATCH 2/4] dt-bindings: mfd: x-powers,axp152: add boost regulator Message-ID: <20240330213331.68a2c145@minigeek.lan> In-Reply-To: <0b53cf44-b5ca-4ccc-9912-777b85f1bcbd@linaro.org> References: <20240329235033.25309-1-andre.przywara@arm.com> <20240329235033.25309-3-andre.przywara@arm.com> <0b53cf44-b5ca-4ccc-9912-777b85f1bcbd@linaro.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.2.0 (GTK 3.24.31; x86_64-slackware-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 Sat, 30 Mar 2024 10:30:05 +0100 Krzysztof Kozlowski wrote: Hi, > On 30/03/2024 00:50, Andre Przywara wrote: > > The X-Powers AXP717 contains a boost regulator, that it meant to provide > > the 5V USB VBUS voltage when the devices operates on battery. > > > > Add the name "boost" to the regexp describing the allowed node names, > > to allow the regulator to be described in the devicetree. > > > > Signed-off-by: Andre Przywara > > --- > > Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > index b8e8db0d58e9c..14ab367fc8871 100644 > > --- a/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > +++ b/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml > > @@ -274,7 +274,7 @@ properties: > > Defines the work frequency of DC-DC in kHz. > > > > patternProperties: > > - "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|cpusldo|drivevbus|dc5ldo)$": > > + "^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|cpusldo|drivevbus|dc5ldo|boost)$": > > That's not an easy to read regex... TBH regexps are the least of my problems when reading bindings ;-) > Acked-by: Krzysztof Kozlowski Thanks! > If driver does not depend on _, please consider dropping (_|-). The drivers (checked both Linux and FreeBSD) do look for a specific string, but it's the real old regulators that used ldo_io[01] and rtc_ldo, all the "newer" ones use a dash. Since this binding covers all of them, we can't drop this from this regexp, but rest assured we only go with dashes for new and upcoming devices. Thanks, Andre