From patchwork Fri Nov 18 16:21:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 22388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp288117wrr; Fri, 18 Nov 2022 08:24:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf71Edi2FcFgLmXWwJYav5KPZMTgY8146exl5WGygPS4AmYhcPfJkVSXzxVxvK4p+Yjy94Wh X-Received: by 2002:a17:906:448d:b0:7ae:37aa:6bf with SMTP id y13-20020a170906448d00b007ae37aa06bfmr6614248ejo.481.1668788681034; Fri, 18 Nov 2022 08:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668788681; cv=none; d=google.com; s=arc-20160816; b=P51AJNVJr8IpNXCuBadWmweU3U15EKgpamJQi7KFC1idorGbjK7IdaEsitCnz87+AQ GT2d7rmfEVYk2PteLZYNyw/UivEP00w4Q6n7BonMHXTA03crtHjKcqKKVducFZYcMZ7u 5c6gDTTi07FWwMNgYgKSU6M/O4BWPVhLWVlCnspyelX9tQIzgkMgXrqEtGCThV/yPqUg E52vqtMpk6S6+nMKrq82Pf5RCBPu6SwJkaHFUb0aqwkRT4AJAugj6PnYm6XZaQjgo/x0 43Ed+K2D1R+NusFR7wwqYrNv4BR7rstLwLe4ZRqXVqhyUWuX8+1MzQhmqY0EoVF53BB2 NAcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mjnqvZvoLJRruPXTecNFKm0hhbTgEsvXWGcm3Dhr9+E=; b=CewjKOED0vXslph+Kl8suZEFfGEYErqucvyEnjLAyDdtiO+zDmzpsr/S64b0sGAIIQ dQTJkx+YmmUuVbeErUI0f2+Epv8s6/DKWh2Erzru3sfYRJJL3l77j4rLlInobzanLQyY Cdt74I5kCwp9pa88FPZyaKWLPExaj0Yt6xKV4pCPfIQ1PTCYaAWjUGZVOpP/Z7mJqi7m cgIKAItb0LgcUbGhOvHyBLQ5y2shlzNGNzasxiIZtpMd2uIeiWHPttHtUDSU/VdpGXlz zgcEBfapUuBclvF4XjE7JwatPZQ6I43o4efqReaxgXxbV9BmXPYWAnvd5BV8yr063Rha v0lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YRZudXVe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a056402525300b00462e628189asi3741405edd.304.2022.11.18.08.24.15; Fri, 18 Nov 2022 08:24:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YRZudXVe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235319AbiKRQVL (ORCPT + 99 others); Fri, 18 Nov 2022 11:21:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbiKRQVI (ORCPT ); Fri, 18 Nov 2022 11:21:08 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EE528EB54 for ; Fri, 18 Nov 2022 08:21:07 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id u2so7391680ljl.3 for ; Fri, 18 Nov 2022 08:21:07 -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=mjnqvZvoLJRruPXTecNFKm0hhbTgEsvXWGcm3Dhr9+E=; b=YRZudXVeLLu3eAEiGezFVHFfMIQpdfUYU3iAHhHAUaaJLNdqrIPuAkTEuw3TgRPkXR mEtU4mUyleui4ZNj7xU5UOMasba2WiEYDcCxTF0iB6lhZ+ZyiZCBByW8iB7zIU6aAdwv 8J7HK2jSXilyScrjTQFThZhYQs97oiUyEQCeKLTEDdDEPdwnTQKKtGIUB5OY1p9lRnKQ 4tEgx5hSj0X7923zaCsxz/Fz7DPwq/oPjlSorKlEOMq0f894jTFayEzwOJunSMlH0WMq JJ+fJT+90GKdAlU6GLIEF8k6/+9b5eraYjDLDLdaG6ilU8YQ9vuzPg6VeuNnsArvKLbh 9uwQ== 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=mjnqvZvoLJRruPXTecNFKm0hhbTgEsvXWGcm3Dhr9+E=; b=BftkhcXfGK41M22dN8VgvSZcBk1jMfmCReq6JYZff4LAslE2djwxIru75KvQJ6cOyq AH1kpySjZ+eXZA4+37wXztzUkWIhtkDYf7ZsitqLLPBFa9uB59XOdBI0BDAzpuzrgJ9V //H9OQDbvGOLIeZz4RMIH6VRXKNdVOg0ZwI7qvLBkG3Y2KIPgip/lAPur3FlAy8zU3MH GcY+6CYhhAMP4s2Z46VXnLcjaXXzIXvWEYhRqmru434gVuOH1MZhXQ3uPIZ4QuCkjc6v yd9Ivtn/bynOfnhsH3qS6FAkUN2+Qf+LKmLQz6pKUGupCv+bTrRr3QO3mg/+JkcGHW08 IuaA== X-Gm-Message-State: ANoB5pm3pZs5CEo77tb1xxsZDB8cp2e8QN1RD3XGsnnE8LQ6GNp1eE8T 4vVhd2ulb0eYrWJcOvbWkNH6uw== X-Received: by 2002:a2e:b5d4:0:b0:279:5fa:8e7c with SMTP id g20-20020a2eb5d4000000b0027905fa8e7cmr2654551ljn.62.1668788465509; Fri, 18 Nov 2022 08:21:05 -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 u10-20020ac258ca000000b00499bf7605afsm718252lfo.143.2022.11.18.08.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 08:21:04 -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: Abel Vesa , Krzysztof Kozlowski Subject: [PATCH] dt-bindings: pinctrl: qcom,sdm845-pinctrl: add GPIO hogs Date: Fri, 18 Nov 2022 17:21:01 +0100 Message-Id: <20221118162101.145267-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=ham 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749851760129411301?= X-GMAIL-MSGID: =?utf-8?q?1749851760129411301?= Allow GPIO hogs in pin controller node. qcom/sdm845-cheza.dtsi already uses it. Signed-off-by: Krzysztof Kozlowski --- .../bindings/pinctrl/qcom,sdm845-pinctrl.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml index c9627777ceb3..57bac7f7a4fc 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml @@ -48,6 +48,11 @@ patternProperties: $ref: "#/$defs/qcom-sdm845-tlmm-state" additionalProperties: false + "-hog(-[0-9]+)?$": + $ref: /schemas/gpio/gpio-hog.yaml + type: object + unevaluatedProperties: false + $defs: qcom-sdm845-tlmm-state: type: object @@ -117,6 +122,7 @@ additionalProperties: false examples: - | + #include #include pinctrl@3400000 { @@ -130,6 +136,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";