Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1533307lqe; Mon, 8 Apr 2024 11:36:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpnGjr1UBH1aOQl/qKboOz+eoduiMxbHOlmOWLKuBfzd5LGYp4b7fJbLT/vtv2M/sHSkqJS0Cwb4eXz0Ugn2VZFy653VcQh2yuG8B4qA== X-Google-Smtp-Source: AGHT+IEaiGJkZ18Ziy9QKs8zn9tzIyJGn40vPNxUibU36nb9z9CGEicM/C2Dvjujge7AuTFwOH4i X-Received: by 2002:a05:622a:286:b0:434:8bc3:e1d8 with SMTP id z6-20020a05622a028600b004348bc3e1d8mr5001430qtw.56.1712601381423; Mon, 08 Apr 2024 11:36:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712601381; cv=pass; d=google.com; s=arc-20160816; b=U/cOcjAU0jdVhG/Jl4rqqgm7S5IpWY+jF1xRWtfXa9sqI4KTpCOnfplSvC79VvwqLv 93MsObRT4vQKzjWGB8wYqTOQXj9EkyrB7cOYd2zlDicphi5vXy1AqAgD8zQ1BU1Bkbfy EXg9nPaMICe3mtSuS/rz3GJ3R30S4ZDbccFRg0KEbcjhv1OkXF6FeSAlMKeQranCkYEX kd/Yg6SRUGxiQRFexfc+OGTlBElUWzk74UE1gbUIskNay6KKqFnjQzP//8s5e0gsCzp1 wq890ynS/p8aWzfzULAbhxFAq5tmJ6PhtJ9vAx6l467DuSKaAmpNnywReRtyOVQlT/w5 tJdA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/PTOZWo/eqRi515v/c8/yyw3mlowne9zDnTnnaneIa0=; fh=8tXhmv8tA9Pc1SfBsf9kxnIKI/an9rmxYDUWy79T9LA=; b=GMoml0O6xzNEqtv2sw4gyKf949SSi+Z3WkU4NDAdH9F/5rGq5KmApgsiGZf6omwo0I sW8Pm8w9GYYOi+yzpZGqQT7mY0rvZrX91C35/1kAhAhv5MiZAZj+vTIj4YesWh5RLqLW GWGSpzQhyq6bAY7RMdVug6NBOBfcZOT7BKs7nhBxN2oziHgkqkiqNovBXLczaSrmXV+t QYjOnS6TSxnfh4oTnq4SK3JxNNzVliaRgubQtlKmOs5dBcUw1EpJ4DfHc5fjB/Pg+UuN qUumhOgEQcGBWmYEWXE/IjXRTmEIMK+/vSTicWy66TMBhcKxGC6Iq8zCKU5NJs1tcZ0V vrLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b="KWaMjJX/"; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-135818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135818-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z3-20020a05622a028300b004347d1eef58si4942735qtw.619.2024.04.08.11.36.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 11:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135818-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; dkim=pass header.i=@z3ntu.xyz header.s=s1 header.b="KWaMjJX/"; arc=pass (i=1 spf=pass spfdomain=z3ntu.xyz dkim=pass dkdomain=z3ntu.xyz dmarc=pass fromdomain=z3ntu.xyz); spf=pass (google.com: domain of linux-kernel+bounces-135818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135818-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz 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 2B19A1C21C1C for ; Mon, 8 Apr 2024 18:36:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89FB71272BF; Mon, 8 Apr 2024 18:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b="KWaMjJX/" Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (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 86C401119A; Mon, 8 Apr 2024 18:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712601370; cv=none; b=jNH3S32uEEvGd5xPiclZdJOotJcXatX/uKd1qF0EDI4uybVXVEz3PKk00CaE3kJcBG/ycAQeMRduLYUDtWTggKs339HXrA2rDtruF0XpofmVkVYQS/mgpCv/ggnijPEw0aBqVJ/RDVFVm6n0gfRHrumoMCnhLw4uLsyhomL/IMU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712601370; c=relaxed/simple; bh=PG1o3L91lYgh8vv/DGFGkaxqiPASzURvCwbdexZwJXE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RyJbz6HS+wvRRsMYkFPXVgNs5eEytnY0Byv4/YIEdYxHqeu2cvhZohZxqu3LbYBA18iFUp9bvvcYmN2RrYTq0BNTobEqg4TKBUCy4IHn7fpDFAsa2xfjaLiX8AqORQO44p8Klx0XfQZQabrDKohqHwGBAyd4rboQ9fCKRl7ktfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz; spf=pass smtp.mailfrom=z3ntu.xyz; dkim=pass (1024-bit key) header.d=z3ntu.xyz header.i=@z3ntu.xyz header.b=KWaMjJX/; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=z3ntu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=z3ntu.xyz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=s1; t=1712601366; bh=PG1o3L91lYgh8vv/DGFGkaxqiPASzURvCwbdexZwJXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KWaMjJX/Twh+ifm5VlUNa7OhDTmR63O5NKwhUeqQtZjpgsa6nLTLsrRYu6fRTW00k p7EWYmG0idPNOAmLcUVWDoC7xVrBu6GZWbeTlEmhEiYl8Vkwq5ASEh9yf+tE+mhf/x j2PrTUkC/MbaKy5GPwTo/yPtm9VHepbf+5ZClz/g= From: Luca Weiss To: ~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 Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: qcom,pmic-gpio: Allow gpio-hog nodes Date: Mon, 08 Apr 2024 20:36:04 +0200 Message-ID: <5894182.DvuYhMxLoT@g550jk> In-Reply-To: <794f7e3c-6467-4da1-bc9f-3853459bbd78@linaro.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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" 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. > > Konrad >