Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1795982lqe; Mon, 8 Apr 2024 23:44:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsdg8CKgVqhFiqd5QeEtjwSIUJPRVMt7Ra7ycjXfTj5SycWqOrn/26kPtR/TPAsRZAed+72oXPMtfOaxqTSeZj4aWxl0XmC6fGVJTTTA== X-Google-Smtp-Source: AGHT+IHsKbqmCvg9KM9zPQ0zQ012JsaywHRynOQIjazJVRCUWYWMf9D1TWXyDcBXAmZR56sLulVv X-Received: by 2002:a05:6808:238a:b0:3c5:fc78:3a66 with SMTP id bp10-20020a056808238a00b003c5fc783a66mr2328558oib.57.1712645056770; Mon, 08 Apr 2024 23:44:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712645056; cv=pass; d=google.com; s=arc-20160816; b=kplVFwnZumEzaYmckv5K/KFY3JrcClyHxEEyB/ELLyyRGrAYOTvl+3iih8AgJsRqrs 6bK5KGlfP6hj2EJ3b3you5J612F2RB4N1xMENSySAmvf6pn2ziS5c3nArYwV56VeYpMr irU0PIh9qlgdnKPl796rlgJmFCnH7+aTx0h4ePaeQThBQDdReTMJVqsGVAJDVr/LW1OE PCNFM72Nr/GscwJNyUpgeFZuC3BqYhW690oGVvqR7nuD2fkmekwkemrhwXDW9ZPgAYx2 Y7R6nsRFzv9oKESDXJEiBK06rUMWxGzM5cMZRW6A539sr4QdyjmBvvjCggmseZlGXgQn 32Ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=R2Btlux+guQ/lqdHobcUY3gC6gZAwlnKlRHDWuWFfME=; fh=55XEaB79YMlcJca4f177mODU1q2lmmRFW3VjDtZgVdE=; b=oy6rftxzPxtbj3nNdQq1h3bMx1l8gykVuAod2uMeOP1O7lhUN9A5Gv2odu9vpTdWOf UGJTRCOzMhkxi2c4XANSXc54TuK+VXOygx0uzPgUm+vtD87puBqKyF6WOKHe2EaJpq2i ApI1UthvQBLTuD/GHsEiY5n7OmdJNAGZyVqC4bQxdSoPrxEtfrFHw3I0osoCuUp7wgjV yGObsOdy92NC5OzSCHdFe1SBhr1n7i3Pdhh9uPC47FGsnUJva9k97OJCOaYAin9ZJf7J yf9+YGrp6horSBoUAjJWf37CIszavQH7K3jq+i3cv14uR7EcvcVdlItQJACdU5quN6yY Yt8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uUJnkWE6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-136313-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 17-20020a631651000000b005f0a5131be5si7835916pgw.293.2024.04.08.23.44.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 23:44:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136313-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uUJnkWE6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-136313-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 71B18B2256B for ; Tue, 9 Apr 2024 06:41:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BC8C74435; Tue, 9 Apr 2024 06:41:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uUJnkWE6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 660E85467C; Tue, 9 Apr 2024 06:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712644867; cv=none; b=tl1SXUw+5C2rhsUwraxcpT+Bftp3eKzJppeaO/QXdLergNj0p61QvlbrxGiOKRV4qwCymkyqK28hBDeG+e3HQujLYZxywJq8ZwDDDLeRgSpaAmerOWfQP3gqKOQ4bEUxO5kdLPLiZLIc3/88qlRxV9suBxn9fQuF8iQqoZ/YwqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712644867; c=relaxed/simple; bh=d65AmGX59i71IhZrkPa3/UJrG6aD8myPdpey3N5BOLQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Mg5H072KnN60AMsQ8+xAnz+RQURjAQkCmeHXDVLxIJRA8LxOU1DLvDfF7q5i58OoY+RQH+53wvjCbNNwzYt8S+vmaPsNPQexayMKX0DoITwJQe7D5kqglvwJxORL/8+bTQ7LcA7QoOc9NFtB2LLfCXK4QG1pEaDU4VXvJubUNBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uUJnkWE6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88C37C433C7; Tue, 9 Apr 2024 06:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712644866; bh=d65AmGX59i71IhZrkPa3/UJrG6aD8myPdpey3N5BOLQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uUJnkWE6SYfum++CbYV0cKJt96Rjstdet2nkgpustOc0tj9jMAAgK2MF+Ubkd2h09 G8Ed2dYAcZpZzy+mKtx3kn8Q58PPCmqPYKs9WkLe3iNEQSWGonlW+7KH0hvgYeUD72 TXhmauD06msKedUJ4wBl7ihhLwDRoyhes9MKSWwkKkQqQ8LobNkEMPqjPOGBAzt98l q3LoBl/B/Jr+QmWGwxGMJYYIMSiDiscS8IZIThfZVq8UC9zIAJ5RM/7lYbg8kNLblv yXR8KoDWXc/ks2nSOieQgaVSf8K4BIGTHVh2vzsLfVeAEnmdYz9BVhxSm1vt9xhsaf 20H6Gs32/jvdQ== Message-ID: <2da981c5-9023-4d7b-a1f3-a3520fd40a0c@kernel.org> Date: Tue, 9 Apr 2024 08:41:00 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: qcom,pmic-gpio: Allow gpio-hog nodes To: Luca Weiss , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240408-qcom-pmic-gpio-hog-v1-0-f61fc5323110@z3ntu.xyz> <20240408-qcom-pmic-gpio-hog-v1-1-f61fc5323110@z3ntu.xyz> <794f7e3c-6467-4da1-bc9f-3853459bbd78@linaro.org> <5894182.DvuYhMxLoT@g550jk> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3V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5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <5894182.DvuYhMxLoT@g550jk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/04/2024 20:36, Luca Weiss wrote: > On Montag, 8. April 2024 19:26:49 CEST Konrad Dybcio wrote: >> >> On 4/8/24 18:39, Luca Weiss wrote: >>> Allow specifying a GPIO hog, as already used on >>> qcom-msm8974-lge-nexus5-hammerhead.dts. >>> >>> Signed-off-by: Luca Weiss >>> --- >>> .../devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml >>> index a786357ed1af..510a05369dbb 100644 >>> --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml >>> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml >>> @@ -424,6 +424,10 @@ patternProperties: >>> $ref: "#/$defs/qcom-pmic-gpio-state" >>> additionalProperties: false >>> >>> + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": >> >> I see a couple bindings do this, but I'm not sure if we want two >> allow two styles for no reason.. Rob? > > This regex is actually from the gpio-hog.yaml base > https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/gpio/gpio-hog.yaml#L23 > > Why it's made this way I cannot tell you, but I didn't want to 'artifically' > restrict the pattern for qcom,pmic-gpio. Use the same as in tlmm: https://lore.kernel.org/linux-devicetree/20221121081221.30745-1-krzysztof.kozlowski@linaro.org/ Best regards, Krzysztof