From patchwork Wed Feb 14 16:23:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Patchwork-Id: 201025 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1337422dyb; Wed, 14 Feb 2024 08:33:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWnJPeskJPITJLivjnzHgAKo7TLWzCn5nWF9MOyHyrwI3cDSDwa8zCL7TMwURxd058x02dDvI2YG/ACV7flIfEL2KkuCw== X-Google-Smtp-Source: AGHT+IHkyR4mkO6IBnRGwVfZiGNcSm5CxnMgeOOhwWybJ2vn35eu8IoONQ6hicdpMTfYpWO6c5eG X-Received: by 2002:a05:6a00:a01:b0:6db:d5b5:e380 with SMTP id p1-20020a056a000a0100b006dbd5b5e380mr3823882pfh.24.1707928410509; Wed, 14 Feb 2024 08:33:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707928410; cv=pass; d=google.com; s=arc-20160816; b=bG5SKH1rsavDHuDHR+GCR4ZZMExVjSjkoO7VAxZXWdqpr/OqyCQnD8wBLNx2cFUCDH nPsQWbEm6XTj7A7YgZAXX6mvk2lQjwAzZm09EdSaDmyZ6m6zKIM93Khd3DR3DFUg6gOY 1E+73ks+g33KGwr77qluj+RhxS7f7CT9CYykRSTJ+c5qD7rE4WeVclUBtS17gWVakNUw kdnopuZ7QO76MciVqF4i1PIcGhgHB9NoM/b/g4xhAxlgLtqtaSB6A5Ejt4lf/J9LYCpI idn52RkqJZ+LVUQfyZQCPXNW7SOYOLz2qTOiLs0QdeuYPlK7q2AHK1nKHwr/aSnsJNEn uWmw== 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=Sr89mPwum5IVh1O8BWPudxI+HPFpd3bOf9Ai7nzoba0=; b=TR46zOlQHyAGz4NNtgNEq4FaeO0bbXeouXZF+dC3jo1jEYR77bZbmJhtK7cQ0Y2e5M jU9JFtoRDAObxBbAC4+E2pEkn4tSaSlTroqQuFFkTHw/Bf2eqstOocVj9w7gb7qYQU8S P/TQK66k891kfO+mOAVaPrvIVraQKORl2WqJyQb7DdB7Brd0itjyCP7uMR8elnJAieJo Dc3EGLOKtqqgfJ0uM4TJv2+vLZyjLwrOUaqWLRPH1pV64xKzUywoVjZ7TgFw6+AYj4dl JU0wATrH3ovrI3pmDZC/8PjCdAXXtZbnf/uNjjIuu2YDO+5FuQkPHb3xYi479DTHp5Sl SEZQ==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65540-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCWNi61vgQkXqhoUsPqv8NQ4IBtD9bxh7n+xKmKEehwt1TkXReuzeoZXmXyIFpf08Kx0yh7aceUmM1P2bT/tMlsfAoaPIg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d128-20020a633686000000b005c600ffa335si4002840pga.217.2024.02.14.08.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:33:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65540-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65540-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E950287BF7 for ; Wed, 14 Feb 2024 16:32:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 235B8626D6; Wed, 14 Feb 2024 16:28:03 +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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790892740570700389 X-GMAIL-MSGID: 1790892740570700389 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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- 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