Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp689901rdh; Wed, 14 Feb 2024 08:33:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdlbWXcCeeBzhLnHAK3FnYY/9xic+KgAZKdYcTKtehSLR82k4v7DHOX90y3isvfGXr6bx10Wh8B+KyYoAmrGZrPAH5epafNt2C4FqJiQ== X-Google-Smtp-Source: AGHT+IH88Q2jMei8VyYDPMkjEMknGAov6K8EpXXwyxcGu2OI4gHin5iFSxduBWc7RrGOd8M4ZHdI X-Received: by 2002:a17:906:5a96:b0:a3c:8bed:86d5 with SMTP id l22-20020a1709065a9600b00a3c8bed86d5mr1838020ejq.12.1707928386019; Wed, 14 Feb 2024 08:33:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707928386; cv=pass; d=google.com; s=arc-20160816; b=qZ9Tig/yy5Hj0plC3But8Ptx6nUp1W7wAmhFBVbTDGpU3RXiHmUYjL8piMPsfq/Fi8 DPwOB7oD8RXgr5FY7LHEaA8Fo7poq1YgrXYcecJtbZAuVXTIW9HKhxwVPDvYu4VfDvUI 9vgQ+HbCdIShlZQVa8cwULr6wAqvcdK9iJbgldMy4GKywq6WLAUkHibBOEKhSVnG7E6V nX7dWaRgvDupCMrhuMrXPGpKoQQifnZYkPnSgd6dXKTzhZHlrmWHh5FUr0M7+M6Iskyl bgqmeSRoX6PvtGLc8f0QYinorFiQwkFvH69p7KmHxCkwtpO2stIxerAPWBERLzdDHjOZ IFdg== 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=v8Jcap2Chj1MHbo2CpOWyieR81O/+3SAG9cXjwd6SZI=; fh=o/R3y72rSwAFAOAQg6AscS7yXKMH7HqNy3+0wC0iINo=; b=L2P2wbddasXKo/XTmQIuYlqbdU8PB4GNmkmsxfoC7Q9W2gK/brxpiZ10HcE6pnxCsR 3XYICypJmfw3YJ3IH64GJpqOHOVLvXCZUp+cZ0VJWOqiMUkMjvLFXCDyZ9UduknpdG3E ACIByBGk+BNwPOkeCw6nfBQv1WjweZVPmGMoJXIH3mZVTY1Oha3xvj0RfQ5mZCRxiywd pPk+CP57s5asWMCajJCoAMB7S/D0T0r+nGXFvD8rdGa5B+G4iBbnuVl7UbsI7W/LFVE4 A5BcUBQvHyjlwRD4tjt4KXqQVygHxf4mUhpBdXHB0rje0gsAHpq3Bks1uYhbrhdYHDoZ L60g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IeJl9k0B; 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-65540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCXFo3A2+651rvz/T7RnBm3pgcPWHOSzVDk8cXMf/4d1+vOJheqsyeBg0d9gHDUjYgiSxXE06fZmdzBss0zoZxf5Tp3pKHFo6bKedxCDww== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j26-20020a170906475a00b00a3d5ea0bf23si425889ejs.274.2024.02.14.08.33.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:33:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65540-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=IeJl9k0B; 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-65540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65540-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 93D891F28D04 for ; Wed, 14 Feb 2024 16:31:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36B1E60EED; Wed, 14 Feb 2024 16:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="IeJl9k0B" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (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 75D876025C; Wed, 14 Feb 2024 16:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707928080; cv=none; b=ER3J8cRAUnxC2qBLDyRFEdIaqrAMGhhDIDg553Mu2nWJzsn5AOxQ5lJx2mMEiCb+eI89uifNWe4X+0dgV52Z12w+dsXpwP+iiTTEVlOrrY8Q5usvYC/81oiCf8Y3oJzOEpO+KZU4JgaERob0GuWq5nerbwdxUMioAFN2O3TeF7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707928080; c=relaxed/simple; bh=c/Rgi6OZdN5UF/IjNS97V3p/dpLK4o5ujnnGuwoRnN4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pyhORioHVq1beIFxfiIrSp64Su3YnS2FGU8ZZrvzqWCCxsvBieeFT6imB3DKKT0bN2WG1cA+P/MTCdTjCitdhoWn0LtVjv8lJRj/hsu5EBAGG6V0jKE/fd1ZY9GSpEryJRHIJT9yfYwxIiJhAYtbH7it7CovrZhR+ndrnNEvHXQ= 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=IeJl9k0B; arc=none smtp.client-ip=217.70.178.240 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: from relay3-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::223]) by mslow1.mail.gandi.net (Postfix) with ESMTP id CF2E2C36E0; Wed, 14 Feb 2024 16:24:53 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 712CC60011; Wed, 14 Feb 2024 16:24:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707927886; 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=v8Jcap2Chj1MHbo2CpOWyieR81O/+3SAG9cXjwd6SZI=; b=IeJl9k0Baf99CIXWtvGdgtOLUQhdIEchFjR83qZtjXkrtyfqZMhVABudt0VVg6CuCplatA KxJJvg+rVogBnoIkLhVkNfOUEIAYwhSiMwNqfA/3z88EjyVGtYQpHZ/5+rvI6eBUH+/vLD YLA2n0nD8TRO5+DEGCtPAJhJzmTSQb4gmcxIjJPw/m9aaNkjREvJ+KqTlcS/rUVhwKsH6u RXYuSq9pDQ72z02XfAAqDXnsLZvyGfogiE+UUUoIiKmwJxIbcwIqh9CpLYhHYAQnUntrqD UpZr8n42uiPWZW0Uf5yYUcOPXNphqg4Wmu+XLGDQ+hcev5N5a++B1qQJfJ0qeg== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 14 Feb 2024 17:23:55 +0100 Subject: [PATCH 02/23] 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: <20240214-mbly-gpio-v1-2-f88c0ccf372b@bootlin.com> References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> In-Reply-To: <20240214-mbly-gpio-v1-0-f88c0ccf372b@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?= X-Mailer: b4 0.12.4 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. 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 a999908173d2..bbd23daed229 100644 --- a/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml @@ -50,6 +50,10 @@ properties: gpio-ranges: maxItems: 1 + ngpios: + minimum: 0 + maximum: 32 + required: - compatible - reg -- 2.43.1