Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2486179rbb; Wed, 28 Feb 2024 03:29:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWp3ybDDQMvFPe0CzFXKLDQEPm7mX1+IQ5+7Opdq1y/ZDtR7wDDn7RupvJEFK1pORh95MYrfQtm8B3C3k/EclZcdudjui9jJRExm1+Alw== X-Google-Smtp-Source: AGHT+IFDIOyNEcE1lvA18VzfeFxjPNeUa9oB5Z/+21SxgzyJQFmX0d0NdA86N0r9GorEDe2+k6md X-Received: by 2002:a17:906:27c9:b0:a40:bff7:6e72 with SMTP id k9-20020a17090627c900b00a40bff76e72mr9029914ejc.13.1709119755211; Wed, 28 Feb 2024 03:29:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709119755; cv=pass; d=google.com; s=arc-20160816; b=xv4NS3nn+6/z/mLNXx9lBnEauZ2iJx+BNMu4521hVyG907rSJF3owpR4pt46WBTfP1 9cci135Mq3MKKuTR5mN4CFK6jVv5KCIzzx65LdSKarar70cgeoFXEuibqFNwo/XmmOeC 0DRXqdOQQAsvHGDkxqoLzQ86l5rSrl5TPWspPw3PX5HHTqK2N2EusJ22WQzUscuObsLq QVd7Tn7txDIaVV6pQiI4H9OgiDf5qc1MpdS3tpfvkQ/53KfkLvKMvCqWhDE0tRQ41PJo HP0CpQ3p2BYlpc6IE2oMqxl2D8BmtyojpetR0eXWgGIRrprxMEpgN476o05ZiuwQ0NpZ vp3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=C31sOfsx4Qwt0tMTnh/5231c3KsGYLZuGcmz5uUT5No=; fh=EPukqbtYYUv2XVYn61DBb5+UkEjLMXm27dU+VmDlK6w=; b=Zu2yzifF8TlhsEKVw+RiFcRHdZxEMdtPuWaoqCWy2MhNfTtgZNP7t5KHRXZxs80gLh VrLzc2+sBq3dHyAp3ZniAgYwYiWis9l14V2vWI7cd78c8YCb/nb3q4MwwGdyJFCun6WH ulYfH0RLGYYtxYz8ZPXh6D2gRnbqHreMU5rWo9VyjWQQCHZwGQysFzyCilaphjudi8AE y5jBG6uTp/3x+eo3i8vFGingyGxjU1fFi/AeZun4Gf1VxKR+6vFvXeq+gMeK9j0q1CfW D8X//RyjjLF5SycExddtpubAy1djrqJyZuNC7qnF+IHMGSGSdgGmA8gb8kZM1Q2dJ1/e cZjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SteUhdZk; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-84881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v6-20020a1709061dc600b00a3ee0c7101fsi1570757ejh.1050.2024.02.28.03.29.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 03:29:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=SteUhdZk; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-84881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id F30031F2301D for ; Wed, 28 Feb 2024 11:29:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09B4913B7A1; Wed, 28 Feb 2024 11:28:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="SteUhdZk" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE3C912F362; Wed, 28 Feb 2024 11:28:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709119702; cv=none; b=a3GPovyI3eriGG58NBtwzWEbg2ve7+WNSjtiCOktPMzDdMjCxq23EX6e8KF8qq2LTcjJbiK9VqR7J1T3Cj7ycUJqMsCEbdr34xlGlOf/C3je2mMzs9huqI/5nbx/1FN5WKfFG5uWHyN0zKhL7gzgDfRQiTx1a5NVODk5c17D0fo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709119702; c=relaxed/simple; bh=PhCHo+nZepUT5U4u3onobcw9AuCrMUmtfoajPO5Nvcs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lvRp9zuxG3g977CSL9mYqG53wMKTrhfSYAZQUfMsLerV5e22eZzpH/pPAY2oRvmmp9zX8FLyeJkHRnFK2sQTjbnYVj3K7/0NBggznF/rr3fetYCIB1VFwrphfmydbfelebtMMfC0cFlM8PmWLoxbKQ8bCPyafQRstuJ0wL6wcKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=SteUhdZk; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 91A091BF215; Wed, 28 Feb 2024 11:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709119692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C31sOfsx4Qwt0tMTnh/5231c3KsGYLZuGcmz5uUT5No=; b=SteUhdZkvycZYAZExE9BH3zi8vEQwIAffFlFzp1N4nYCsQbrpIY591yQugm8kp8Ov+zQ4M CfIzZUkDWA05RBenCNXJyOoBXtyNegUbIeUnNA/HODedN7VrVANfM7UnekuWruJXUe0Qif H8CIzQit6IEb1wQEQ1SVLG1bfb0S9gKfRnFybd31i4ti1fqqqt/rMrYUPwOP4iKGw7M5pH HulxRYA1P6c5T/iz2QNsfJyjvwBdA9CiJtAO79wuCsSkLBIqlRPFFwOQW3Plbg+DTv3Tmo Le5DjBQJmT0rhvgvejyVuzi9kp7eRHxSKZ405Xnr7dKXckf24pFb7/9SjZRLCw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 28 Feb 2024 12:28:00 +0100 Subject: [PATCH v2 02/30] dt-bindings: gpio: nomadik: add optional ngpios property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240228-mbly-gpio-v2-2-3ba757474006@bootlin.com> References: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> In-Reply-To: <20240228-mbly-gpio-v2-0-3ba757474006@bootlin.com> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com This GPIO controller can support a lesser number of GPIOs than 32. Express that in devicetree using an optional, generic property. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij Signed-off-by: Théo Lebrun --- Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml b/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml index 69774f36e03f..4080e94702d5 100644 --- a/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml @@ -51,6 +51,10 @@ properties: gpio-ranges: maxItems: 1 + ngpios: + minimum: 0 + maximum: 32 + required: - compatible - reg -- 2.44.0