Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1179354rdb; Mon, 19 Feb 2024 06:51:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUD0gM5fD1PWJ1y9mpvTAFRDcK6RCwI4q6J/vEI3IwJL5gcC5CwFgMahbJa6pNI66UkTrjmeeC4crhHQnsoH91QPFKLYt/GT7n+H2avdw== X-Google-Smtp-Source: AGHT+IEFI54X6cgFmc6pvXdz8XhZofYKKvz+j9zYdRRbFD81h0AJHmlYdkdayu40nvdqNH366R0r X-Received: by 2002:a17:90a:fc83:b0:299:bb08:e83a with SMTP id ci3-20020a17090afc8300b00299bb08e83amr1198785pjb.28.1708354279855; Mon, 19 Feb 2024 06:51:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708354279; cv=pass; d=google.com; s=arc-20160816; b=ArUq7uKNPWfL2owbeHQF3jsgda7UHh6K4PJIZNksIdAI7xXq/5WY8DotFcZIzriOky 9oDcJZCA3E2/vcjViITmsyOh/7GVJEn7itl1LAI1vqQaIK9eWL/JcS8GKmjzRDIcRJ7r POnyRuwhkjH6VjtL/CxzjXPm17j3h5AKopCBeuG9LGEL7A5WsVAdDWr2kZ76lI5Gso2r LSQM75UR2ScuPTFmQUsIwxo2nPUe90gmdMdk6DNOD24xl/vARKoRN6aMW4LWpO+5dXam SUoeoANYy+VW5Usbhudk1WhxsCsZ7cIh1RoC+1FHJF3uxNKxzqIJcUNs1wSwBD5g2OHh ikcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=3uK6DW6wRUhapLpjMNPru+6tefOfW563KnlrWQg8HD0=; fh=6hyRNLyR1t/P0vaKKLfH2LjpdMtxPzrXWrkJZi/EXyI=; b=EpawKJ6qiP9lue81YtIIb5PHBZ7CKWhH5yHXT06ghcuYmhqy7Wr9KKnY8wmI2qZwSj yuz8v1qJaAIdqZ4h2YJxuK2uG2fwNlmTFdxz8gV8DEGkA+w8JCSvhtlISbM6mSMzZ+Rj Zq9kMjNs1c3+Kh++pyxxJCm2giOB/iaMxi1L5Zn0H9vmOySJSwnURuxukBncMOm56POe QziDGiaxDRNGCFfak7O81W2hCQcqkcDyy52CcRFV1VMSwtG6yLoWrg401kMMZEMS+l8B BRGTnIX6b6kFk3ufwIoSH5zTAGr17J1WjaHjSqPqQqQpWTmYZVdNxpr6zk7s/gZzyyYL 6jhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RffIvzM7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b5-20020a17090acc0500b002991fd04889si4574559pju.95.2024.02.19.06.51.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:51:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RffIvzM7; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-71508-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71508-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 822AB283506 for ; Mon, 19 Feb 2024 14:51:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA0B1376F6; Mon, 19 Feb 2024 14:51:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RffIvzM7" Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 1C3E225614 for ; Mon, 19 Feb 2024 14:51:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354272; cv=none; b=qT0ab+eAcNvJQug66vzrY4R7kVI5t9GK/uvU3aTZC2d9P630psA1MgI/2HM6E8/gZZRmx81eHwmER9hgYaXhAkr6Wia+iI4pMFtm0pchXeddXDN2qANzBrM3pXV2nToykoyMpN74NttHXU8+WwCmTUOWet5xkfYTOX8fCE08/PA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354272; c=relaxed/simple; bh=VwezCsSQ9DJibqG86kh85HBeHbyDtKdujvrran4hZNM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UVjR7gPvtchnpxqVkRNh42bqevw2lvEz3SD2+DIn5AA8Fn3oIb/cyzSR8xP0Zb0LsPV/JMtGs2/hvm3eIdQsBResoJqj8kHY7SkheZWcuygMnR7WhoYVLbGFbd2s4iUpoqmaoq43GX3749rwuoFK0zw4plPFvkLIWz4bRTLvzxE= 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=RffIvzM7; arc=none smtp.client-ip=209.85.128.174 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 Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-607f8894550so22268947b3.1 for ; Mon, 19 Feb 2024 06:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708354270; x=1708959070; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3uK6DW6wRUhapLpjMNPru+6tefOfW563KnlrWQg8HD0=; b=RffIvzM7PIwXi9fO8mlQ+5JFl2XbP5ps9CIz/aUfK8dlhJ61+Q9RwP+ed5eJuAZUgJ 51fWgahW3RrD+oHxFe/ppW8sXxMxqfPnBij2H26VozgvYvdf5koHKpJ26GB6JAbuDZKv OkxkCaDQPLW3kLZoLKwccZlYm6bNyrM5o+nPpG4+VS4uvHm8O2CM4opBnEuOtsAju48c O5r6wwW7w+lBlV/+Zv9M5x7frAXvN66nu7X7n3IPIbS93dIP7cHaMddDd+PsbG7meqTG 1VU6XpNNoXSsGkKYFUK0cvIxwz01jaUr22PuNbE0NevqmISz0leS/k8H7uTQUTwaVeeu 24yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708354270; x=1708959070; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3uK6DW6wRUhapLpjMNPru+6tefOfW563KnlrWQg8HD0=; b=WtYhL2bjsHH98xTW54E1vM/2NAYY34Jem1LA9QjoBUvxm7MtZaC+HgH/iw77SbL7ev nnpDkKAcgyUAsMHWQVlDZxU/WLrOSmqKanxrj2nelOfIcvxQYqv5kATkkR0iZk3Tb0hH LYal8oB2iGiCRCHhckBOwMS+6KyAalxs5JDUj6sQlCHnz9dY0V16sRHhFl84CCL4xjtK yzVgLV/qQ93PAlYXuPEKQuCd5sK62H4dgbDdhvyOshwLUako1ipW8uuYQb+PZ73K9Eke nZTWZyXMEbt6mH5G6kkxWdLDap7/juhk4ROYrTrFpXin8yOnVhSca6iCLsqV9BxNYaeW 9oxg== X-Forwarded-Encrypted: i=1; AJvYcCVqPorBoOvFvcmB1A/I48IfJ6RIl9eYBQQ16zVfn9q4ctdfKSKbbmkMS+NLYMvuAd8vkwRgyckgshOmpGh9S/tFyrd1qBsdEq2+VUuT X-Gm-Message-State: AOJu0YzDc9w0nCHy/YkjkSq1LeD5azu3mKm7NgBlru4Djs5HaseF3tae 7FIB1NjqvAFqWB7/EN4G0mqU6/TCZ6Rs7/iTTnmjIhK5y5PjCQZfgb6KJf44vQdM1jSRDXvseno fM0I+sUCdxNGRYwNtN/0N2dYTZWFK3AZTtVuP62KRr1tDJ7x1MLM= X-Received: by 2002:a81:ae05:0:b0:608:5b8:ac3 with SMTP id m5-20020a81ae05000000b0060805b80ac3mr7651706ywh.18.1708354270183; Mon, 19 Feb 2024 06:51:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-2-f88c0ccf372b@bootlin.com> In-Reply-To: <20240214-mbly-gpio-v1-2-f88c0ccf372b@bootlin.com> From: Linus Walleij Date: Mon, 19 Feb 2024 15:50:59 +0100 Message-ID: Subject: Re: [PATCH 02/23] dt-bindings: gpio: nomadik: add optional ngpios property To: =?UTF-8?B?VGjDqW8gTGVicnVu?= Cc: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 14, 2024 at 5:24=E2=80=AFPM Th=C3=A9o Lebrun wrote: > 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=C3=A9o 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 I can't help but wonder what good is ngpios =3D <0>; but OK. Reviewed-by: Linus Walleij Yours, Linus Walleij