Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1181701rdb; Mon, 19 Feb 2024 06:56:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVRSE2/DyrjLkXWCoND2vQq5pxgJ/oRXqvffuyfSpLtmMM6sa4DsdA9Gt8KC2+EBN6OfGXLlI3pzViQNfvAiNGFHZOczb6UJc/1J/x+rA== X-Google-Smtp-Source: AGHT+IHOMAl9Bscnkuth4VB0n6Sx4Q0dSS6c9lRBqvnro0OtLtg/IoThRVMASI6AMDzvelqFfJ6x X-Received: by 2002:a0c:ca12:0:b0:68f:6be:9f94 with SMTP id c18-20020a0cca12000000b0068f06be9f94mr6121706qvk.12.1708354563959; Mon, 19 Feb 2024 06:56:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708354563; cv=pass; d=google.com; s=arc-20160816; b=NnRyhipvE/jDyvElV4smhna5QnN9QESQEtnLUOLU48HPV6jPLUAVDZ5TDHk49vCW89 Z1siYVz2G4bUnmsBtBpGw5IbHEjavtvccpAKxgXSzzJ764tFPHsKlQoTmXEPTD92ladq QEbF7DVu5WGaj40vCtbEG6FtmLNM50E6nJKO4HSh8WSm6gKASPf64KIbzWJXqdzBeQ0e vaJm7UNvRSOYgBwxUcqA3ENeNKybX1da4zaXQ0AgiYbPVkukPfxVNa94x76M8+JTIcY8 m6ODk3pFf71GfijMtB1DPgThWsccS2CLJwAHYENVtMcCkJLJbPBVfQXKFQ2kDxZWg7c9 0snA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:to:cc:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=lC1i1N0UNT/0y8QCJSxQOgeE4oJ6ZMsxZMZkpa3P++M=; fh=e+tSaZobpTn+mfrkgE1cPTa5xwbrqI9WeCP7kp+V0po=; b=FmL6YJiBBGKSMzQiHLlz84b45a81nGNx8dkNKe17/kXAk6K/R55z4SrwfTVQkaCxJW 9LLQVKA+Y6WKmKfbuLuL61f1aPLun7/BLS4A8J4CHrk5R3tc1g68e3Yt1aVfmkVS3j9I t5iLGaEEJ8shuAUiJbzMtKqSGCPVF5hDn30e+0nTypo6YnqYd/bM3YC5f4WX08mbiGQ0 f58T0gCA15hVOVLSWd764bMHi6CbtRCQI8FB9ow1EWjocAC2azejP9MxaIFPpYoRXbzF 5c3RJJs48SUzl1BDCQ2HdGQS3/FwtcS/zA9vxqhn5N8fvQ1273TmBKlkwe4OjQh4Ukc7 JgWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DQrOLR+8; 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-71522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71522-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gv8-20020a056214262800b0068f6580893dsi2996148qvb.134.2024.02.19.06.56.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DQrOLR+8; 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-71522-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71522-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B22851C20F35 for ; Mon, 19 Feb 2024 14:56:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DEE8B381DE; Mon, 19 Feb 2024 14:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DQrOLR+8" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 7BFB73C498; Mon, 19 Feb 2024 14:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354512; cv=none; b=jNapdEJcLoe8HZ56BttbMPzHLq9r7l4VlHE+dSrvNZ8nR1vSU4otUH05p6ErdHP7t2I/qA/bD3qzAegAK+j4DfEZNZ4may4UG8e8S4lY8V9lTn8DoHxYkS6W2Xl3wMiLvOeckI7jN4Fg6ft4CskbcAbDAdUt9k4x8UAUeW0XlFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708354512; c=relaxed/simple; bh=HfxplOuL4q2xzVZw2TcJFzzqRvoMGhVC0FGr2EalnFk=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=Unf5x23o891Jexzu68TLpUPK0XbPbeWWieGcndx0BSckvgMA2Nom//TXXLGKtNBaHuJcfwZvV1ZDEPP1Jt4GA0Hf1Uks35Fxi5IKTEoYa67sx87jH23YwpMC4UXi4PEp/2uIrjIJY8O9PEXLB9kcIuRPNtYwIeV9Jjs2HTdK8pU= 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=DQrOLR+8; arc=none smtp.client-ip=217.70.183.194 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 010D64000D; Mon, 19 Feb 2024 14:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708354507; 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=lC1i1N0UNT/0y8QCJSxQOgeE4oJ6ZMsxZMZkpa3P++M=; b=DQrOLR+8qm0bY5slL6AB6BEDjk5hcfQb6M/P+U/Yz4hAszxWqXlg7zof7bpVXHb6qdKWTw 6pfod3Ipext1BnHghowE0GYoMePMiFejmBxRovogdYzKujHPwRJTvaYD4GiMPuznwvlM5d pMcNd+J3Wioq1qwLUEzVT7jK2i3EnL+7NCruF52BF1DyUMdPAcVo5Qcq0QI5DjLxMEEvKN BEfpk6D7byjJwG/neMbHlQIBSnc4srjB+vBb4puI2KRovGSUl7jQL0gw+WP+C9GOxUJTmS 7Goniy3e24fzWP/GB2WPy1IT4jvkCxPUgtgtXZGZTXn/TH1g9AW4/UbqdWVcdg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 19 Feb 2024 15:55:06 +0100 Message-Id: Subject: Re: [PATCH 02/23] dt-bindings: gpio: nomadik: add optional ngpios property Cc: "Bartosz Golaszewski" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Philipp Zabel" , "Thomas Bogendoerfer" , , , , , , "Gregory CLEMENT" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Linus Walleij" From: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: aerc 0.15.2 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-2-f88c0ccf372b@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Mon Feb 19, 2024 at 3:50 PM CET, Linus Walleij wrote: > 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.yam= l 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 A min value is required, else it is equal to the max. There was no reason to pick anything bigger than zero. I'll admit it is not a setup I have tested so the driver might have issues with the ngpios=3D=3D0 edge-case. Of course I do not expect anyone to care. Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com