From patchwork Mon Nov 21 08:12:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1707061 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Xa7n46nK; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4NG0Vn39Z9z23nP for ; Mon, 21 Nov 2022 19:12:33 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbiKUIMa (ORCPT ); Mon, 21 Nov 2022 03:12:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiKUIMa (ORCPT ); Mon, 21 Nov 2022 03:12:30 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DC62122 for ; Mon, 21 Nov 2022 00:12:25 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id d3so13670068ljl.1 for ; Mon, 21 Nov 2022 00:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MLJ+mqhSoVxvZcQr13CYq9oTt9J8Yi5NK8dAxceTyHA=; b=Xa7n46nKuZWvbD9Pd81p20qqLQknysyjNA+DZbnjPZ1H10PWLsOTM4Jg1YxIkeiBlu R9tYyuEw+5J8PdFKWP/6Kspj0m+zHxUhoL3a148BCnZwmDZGtvPACD5AibPIV7D8I5ea gPZ4/X21gHmqgz4kSDtOM5aNsBHHU8SwGA+P2WfO0HuXHVSmqkMQFV/RXVjC/X7RLgIq o6aErc33oYWu5UQgSW/f5p1gM/7kQ79cK/V9Hnw5jS+T0nY7nQqFIjniyJ5Rl/EnZmxk iSsa03A/GfdqvDnHKvDwd9DyJqadFkObb+GIjw7Glle91kMUbwH+NZX5gu6q+ut5suTW PEGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MLJ+mqhSoVxvZcQr13CYq9oTt9J8Yi5NK8dAxceTyHA=; b=NuYG1JWetwsEPF522/sB8GYUu0L+V3NMBHsb2R64sossUCVwSb5XNMIq3W97mQed4M 9Gc3sOaM6OiBYPX2P4l3Uayf6BBcmyJFrJ9qBM5rOb1WGXwS0c6D6h8TgGwoS0Wzwlk2 nO0Rxec3fdw40DgQg/m4fRrlzSUuQ6m3iHYL9OhSlmlP4H7nBpwwBRXHue6ZYEWXWzv/ +nVnWiHl/z3SOhl5f5cK3pw6AuS0nkG2b+i3UFNqxF+g9p1APacPMndQ0GSbjjuiGjCQ nSaaFACRXKvB49YWpTLnSFNJV7nFjewGeOw1/feq5Ot/OAxuF9cwP2s1Ei37XmqzTEBi GUUg== X-Gm-Message-State: ANoB5pm8QgnSxLmU6O6bfl74L/FJoDJavakafjMx9vSOoBtdHre45JTP +fFMXA2xN/ZVPbURAc76hxXpzA== X-Google-Smtp-Source: AA0mqf7xMqWAMsA9zCfj7rdpS0o8a/tHL3Qg2btPPSL2Xm4kn5/kFOAYCHdWr2NSX1PpCg0Al5O5ZA== X-Received: by 2002:a2e:9d0b:0:b0:279:f7d:15cf with SMTP id t11-20020a2e9d0b000000b002790f7d15cfmr1890826lji.468.1669018343694; Mon, 21 Nov 2022 00:12:23 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id z10-20020ac25dea000000b0048b003c4bf7sm1910919lfq.169.2022.11.21.00.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 00:12:23 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2] dt-bindings: pinctrl: qcom,sdm845-pinctrl: add GPIO hogs Date: Mon, 21 Nov 2022 09:12:21 +0100 Message-Id: <20221121081221.30745-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Allow GPIO hogs in pin controller node. qcom/sdm845-cheza.dtsi already uses it. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v1: 1. Use different syntax (Rob). --- .../bindings/pinctrl/qcom,sdm845-pinctrl.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml index c9627777ceb3..18ddcfe2e088 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml @@ -48,6 +48,10 @@ patternProperties: $ref: "#/$defs/qcom-sdm845-tlmm-state" additionalProperties: false + "-hog(-[0-9]+)?$": + required: + - gpio-hog + $defs: qcom-sdm845-tlmm-state: type: object @@ -117,6 +121,7 @@ additionalProperties: false examples: - | + #include #include pinctrl@3400000 { @@ -130,6 +135,12 @@ examples: gpio-ranges = <&tlmm 0 0 151>; wakeup-parent = <&pdc_intc>; + ap-suspend-l-hog { + gpio-hog; + gpios = <126 GPIO_ACTIVE_LOW>; + output-low; + }; + cci0-default-state { pins = "gpio17", "gpio18"; function = "cci_i2c";