From nobody Tue Apr 7 01:03:24 2026 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 864483E8687 for ; Tue, 17 Mar 2026 14:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773758465; cv=none; b=IY60ySYQ9NuJ0SsYoy3UfYnUL78Kpg9/LteZBu9pfrTvgCYYKIz+Vw4B6g/kg/yBKkTPFkwoH2ugW3WHBwY/08AEziyVsNJuPkFcBCYNC8W7H1KNSUGFvMbHKN6JAdbMUWnNrdfoyMfb+xSTyrFppLKg/CQ5MbprXs65vk855eo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773758465; c=relaxed/simple; bh=GMT8bTgDIjJDF46JG6O8XRCgeg5BVovJQymAp45TyZU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BtC1EAo2aISFqQ1DTOKOYylYqHzp1ykrQAkoRWrA9N2TQs3wxuFxCfiPyyJWzVJ6FEvt86U0dkJmQRxw2i1mfUOOyj8pZbvPIXI2ZCg+mu5tBlSS5FzFVIcgDrXmlbgfLZy/EAwLWvhkXD05Sii0lcpgjkTU1T6yTLVvbLF6wm0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LO2QpLJZ; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LO2QpLJZ" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4852f8ac7e9so69353575e9.1 for ; Tue, 17 Mar 2026 07:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773758461; x=1774363261; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/JpADn0pgDNaR7zn0h6AJtxmeCv4G+34r7jTfB3aNb8=; b=LO2QpLJZyhYRHj8tiqXMmqpvoeD+Rmpko2OY7Ao2/E9AH+whEO8QKDdQIQJN9l/gHD AUVxQR+BZVivit1aRqwz/XDQXpe36MJfyXpZysxDbDSBfHEw6mDEa0cg4wrpSycx+4hK 3UUf3PySSXGwp1IitjLDotDke3Ni5rt3ksi3gf4x9uiVtJ/BZTbkQiatSMv4bRTo6zUu 2xh27xPoK9A0DLSMirU9iBNJr1p/vLFDc4DVV0VaZ6Rq2VMq7cQWyhuuIdswqyvK5K9p 1yeNe0DI2Z7XQwKINb6rolDPTwqYZrRCebOUl0nAUKF9WCZEYitg+JcTAAiKMcYI5/s4 hjkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773758461; x=1774363261; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/JpADn0pgDNaR7zn0h6AJtxmeCv4G+34r7jTfB3aNb8=; b=DS5mYSHTIuegNliTaBVNEN6Zm8E64me42JEqcaEA/No8WvWvE2+GywSF3gmAVsY382 D8XWcgeiMnECXxk6jAdL4yiu1k0nFJSvXv/3jPDbmlpxxEIpCs5xKrwx4KtVekxF+raP RwosVBVaag0ivW46a4jnabQGImFzmlQrZ/WjWFswp/Zfxiz8OWD3uzuy/zCuRRU+zth8 YRpeEQQHIBCFOKGQe8qXrD7cnuQ+0n+xrRIPX5UPImawsmJ6vMXXTQhtKn2kmvEE8RHV v7oqKm2h7uU5e1ngNiUiGNU5kOA6S83oxtDlzrV08UX1yY8c9jjEYZSJi+z9a+6uw4nD gE2w== X-Forwarded-Encrypted: i=1; AJvYcCVu6qdI8vJo/wttZhLUNkQqMk+OBmjFvqNEz96a+0816smw5EPv6M0IZqBs/TSCHee7I7gAS7P+CY/Qndk=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9qZJp1SrfwwwdXd/yqZaubjtNNoDHeaccsDNiHQbVxObQu6ms Hdcoptpm1aF3IOaWYajn0rKfwR8xGuItnL6TidHTShDZLwzV4UUcOHhpWSL9ldK94Q0= X-Gm-Gg: ATEYQzxHj6xons1aIj/2iZ0ZpE1cboHiXeIyuSdRQA59lA4DM5iXxD6OLiOvVjuFyNl MAC4MkuMqziso2pz4xwX4JIa47aKhtxiCgPDiKsaCbGa94hWQDf2n1K+No4yROCiYJUvtNVkfIF wzEEmf48of63sF65FtpootxptJP8aRmWzxBvem6d79SetQff4Xbbmkfkv5+5ANWBQWtykWz2AYr ztcyPJPRm0qVd0T9I7fmGURMVZ8Ek++8ByaRufPYgv5iRB594CKVhByjIr1YUGB2KV3ps86o3XO exQA2zt4R0RuBC+JOJWXESS5MbS/PEnPli1pAkE2C5ZBRPYKAJ8yvAXKNq1ZAJ+EGgDg+LshaGh ybFdpQ6mO0Eg79fDg/YznjU7oI3/zO26gB8pymRatqfhLVXQwZFrlIWanEIR9SAF6L/7BEdzTfL aZfZrGgZyuzh26MBGKRxX3j0LorgApjwDtx1iUdO8= X-Received: by 2002:a05:600c:1f96:b0:485:40db:d40c with SMTP id 5b1f17b1804b1-485566cf8f0mr312078655e9.3.1773758460765; Tue, 17 Mar 2026 07:41:00 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48557c6ce2fsm116998425e9.25.2026.03.17.07.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2026 07:41:00 -0700 (PDT) Date: Tue, 17 Mar 2026 17:40:57 +0300 From: Dan Carpenter To: Linus Walleij , AKASHI Takahiro Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dan Carpenter , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , arm-scmi@vger.kernel.org, Vincent Guittot , Khaled Ali Ahmed , Michal Simek Subject: [PATCH v4 6/7] dt-bindings: gpio: Add bindings for pinctrl based generic gpio driver Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: AKASHI Takahiro Add a dt binding for the gpio-by-pinctrl driver. The driver is used for doing GPIO over the SCMI pinctrl protocol. There are a few mandatory properties such as gpio-ranges and ngpios, but it's not mandatory to specify the pin-mux. Signed-off-by: AKASHI Takahiro Signed-off-by: Dan Carpenter Reviewed-by: Linus Walleij --- v4: Changed additionalProperties: true to false. My concern here was that there might be a lot of gpio properties which I wasn't familiar with. To check I did: grep :$ Documentation/devicetree/bindings/gpio/* | \ cut -d : -f 2- | perl -ne 's/[\ ]*//g; print "$_\n"' | \ sort | uniq -c The only property that I decided to add was gpio-line-names. Deleted the extra bonus example. .../bindings/gpio/pin-control-gpio.yaml | 59 +++++++++++++++++++ 1 file changed, 59 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..ebc3fdd039fd --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml @@ -0,0 +1,59 @@ +# 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: + - Dan Carpenter + +properties: + compatible: + const: scmi-pinctrl-gpio + + gpio-controller: true + + "#gpio-cells": + const: 2 + + gpio-line-names: true + + gpio-ranges: true + + ngpios: true + +patternProperties: + "^.+-hog(-[0-9]+)?$": + type: object + + required: + - gpio-hog + +required: + - compatible + - gpio-controller + - "#gpio-cells" + - gpio-ranges + - ngpios + +additionalProperties: false + +examples: + - | + gpio { + compatible =3D "scmi-pinctrl-gpio"; + gpio-controller; + #gpio-cells =3D <2>; + ngpios =3D <3>; + gpio-line-names =3D "gpio_5_17", "gpio_5_20", "gpio_5_22", "gpio_2= _1"; + gpio-ranges =3D <&scmi_pinctrl 0 30 4>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&keys_pins>; + }; --=20 2.51.0