From patchwork Thu Oct 5 02:58:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 13409724 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5F4C4E936F8 for ; Thu, 5 Oct 2023 03:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=scgTZLbjuPrjp5FDMa9P+6iyCvO4N+RgXdLd9v6y7gY=; b=aCikspAx9LuMgi Kh+nAzytNzLws1N9PeIi1xGgTtE/RTHGkaA04S13ncSmrfra6TI9D1x0Oc6uy2L1ik47eab77KQEU yJIzqkpIDz00lOsOD0XzReMWnfMxXWuF5jbFOI3xD2L6zsB7fmUVzOTwswMVoCSJRursYWmwq2Ojh Z1yC/g18V/XcPEjbNnQojswudUUveQ+t8qAqciqFIcZ/8bXFHHKMOTWcHRAtKcf5NOzIPzPCWl71K XlUrVuzIa9zxLZyj0HdhOOsmjvnac2fLMYZ88Lso2AgTSZj2cATIUBnnbKwf+7TKu7jpTShQHnGP4 CGsn/0Fg0M0wc3NMo8og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoEaY-001Gvi-0D; Thu, 05 Oct 2023 02:59:46 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoEaV-001GsQ-0a for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 02:59:44 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6c7a4735a30so92760a34.1 for ; Wed, 04 Oct 2023 19:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696474777; x=1697079577; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sRZiziU1GNu5avPXv2QF3oc3h3U4ax78pgVXLevlQ+c=; b=TDyPpiFTQppZWspmSu3WXAxRJK4f+r7Mp8rbxJds9KYj6dJJscmDkMqv57H4LcZFZ1 Nzv/G2t80JWHRQ036iuHvJkdDgwb8fuSn80po/OEbwty9PIALq/JZVM4WFyw1arFdZ5R nWK368Dspt8VvIbzmLdwPFpaoAhsI0RJzsm/WHe+VrLRTdt5LPG8+0+uIVoGNbc7PRRA Sew351OnuNBOmOLyW7jOO4acd6PirfXQ8ldjV25iFpwk5da3pJ/VNa+IAux34/kJ+XlW J8YTNSlxGZK1hjLBIKa2J6O+JS8DypiXix7HPm4xbWR7udpiRiEvFodCeOuBE+FDp6GR 3iYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696474777; x=1697079577; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sRZiziU1GNu5avPXv2QF3oc3h3U4ax78pgVXLevlQ+c=; b=QJo+wcgdIC+UFeWWOpdnvOzEGXl56BhdlxcruG1NUKW/KHoXwitdOhbgrMiWApETFX K7aOdG6UgyPxfI1+KbFIK/4P8NRvqdPlcg5ybcR4LYSNWC4igle4rInebAnmLWNwb2k4 oACdkjYQ7vzkmCPrxkoo3jpqQ3jj71NBgXmr/fk6L2w1fGTkcFmdvcBLDmQwnySUBlV4 cZhNQfeAUAfrtcK9ml4vVhig0W0YK+506HTI8Hn9JtSyYp/vmTZm97wDmGAmQvTvlwno 6SnrsJ2erWxXaSKcCJ9pPYoo6/BosmWGF+naK/ZKwjujAX0DRAdJO8aFQY7fYoE7ozHt cl2Q== X-Gm-Message-State: AOJu0YxE1AvlN2FYZpeWp53zf8Ax7/JEuIWzgn75BRp4mArbbwXlSHCW ZC0hANhe9rspjornBa6QhOKauA== X-Google-Smtp-Source: AGHT+IGuF37bJRXm/rwj6uHFmdz4QeyGcUcT5VR8YemY6FCQGga77AWz0oRvrMhJuov669/ftxBMyw== X-Received: by 2002:a05:6808:138b:b0:3ad:aadd:6cbf with SMTP id c11-20020a056808138b00b003adaadd6cbfmr4953939oiw.0.1696474776920; Wed, 04 Oct 2023 19:59:36 -0700 (PDT) Received: from octopus.. ([2400:4050:c3e1:100:a16d:fce2:497:afb7]) by smtp.gmail.com with ESMTPSA id b18-20020a637152000000b005782ad723casm269265pgn.27.2023.10.04.19.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 19:59:36 -0700 (PDT) From: AKASHI Takahiro To: sudeep.holla@arm.com, cristian.marussi@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linus.walleij@linaro.org Cc: Oleksii_Moisieiev@epam.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, AKASHI Takahiro Subject: [RFC v2 5/5] dt-bindings: gpio: Add bindings for pinctrl based generic gpio driver Date: Thu, 5 Oct 2023 11:58:43 +0900 Message-Id: <20231005025843.508689-6-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231005025843.508689-1-takahiro.akashi@linaro.org> References: <20231005025843.508689-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231004_195943_219561_5E2ECFB8 X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org A dt binding for pin controller based generic gpio driver is defined in this commit. One usable device is Arm's SCMI. Signed-off-by: AKASHI Takahiro --- RFC v2 (Oct 5, 2023) * rename the binding to pin-control-gpio * add the "description" * remove nodename, hog properties, and a consumer example RFC (Oct 2, 2023) --- .../bindings/gpio/pin-control-gpio.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml b/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml new file mode 100644 index 000000000000..bc935dbd7edb --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/pin-control-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Pin control based generic GPIO controller + +description: + The pin control-based GPIO will facilitate a pin controller's ability + to drive electric lines high/low and other generic properties of a + pin controller to perform general-purpose one-bit binary I/O. + +maintainers: + - AKASHI Takahiro + +properties: + compatible: + const: pin-control-gpio + + gpio-controller: true + + "#gpio-cells": + const: 2 + + gpio-ranges: true + + gpio-ranges-group-names: true + +patternProperties: + "^.+-hog(-[0-9]+)?$": + type: object + + required: + - gpio-hog + +required: + - compatible + - gpio-controller + - "#gpio-cells" + - gpio-ranges + +additionalProperties: false + +examples: + - | + gpio0: gpio@0 { + compatible = "pin-control-gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&scmi_pinctrl 0 10 5>, + <&scmi_pinctrl 5 0 0>; + gpio-ranges-group-names = "", + "pinmux_gpio"; + };