Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1682508rdd; Thu, 11 Jan 2024 06:30:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOyxoz0jXVVLirMVdnTE1NIqUJYHMNWDDHliGsctTVOVYo0QQ45DQ5at7pjxDPdZ/ZLAWk X-Received: by 2002:a17:90a:9743:b0:28d:5def:7b07 with SMTP id i3-20020a17090a974300b0028d5def7b07mr1322650pjw.32.1704983409215; Thu, 11 Jan 2024 06:30:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704983409; cv=none; d=google.com; s=arc-20160816; b=BuIrsKktUh0SSXZJzceGRkNGzta3GwFHlrkYPnzfYOkruQWjgfTFMRWGgjO/OVMwau iJEQTZBr+hPLxAN0wH2VbTPAmTVGR6ettWqI/oPQtEkMIvgyThk6eIDi4hVdxfgAmUQ7 2p4wkLGAsxIo1vo/Op/K0H5AfGjWTeTdV1b1HkJuSyqFfQXnuhwm1Xu8wgQZCtJGWZeh DF8hLs5Kpq7tZNWp7xVFPtGDB4v+q/YFbDdDfEQyQx/wvdLD9YyASSZ1ieuiqTRCeaWY KOZ1g//h34Nfc4//2SjLQvLC/TaPc6uf1ZoAaIv2G3FZ+uBJirhiihoTIM5mIS9HNQok f3tw== ARC-Message-Signature: i=1; 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=82LMk21rXTaOAuZPn/JpTaNt+mh1ufAOYBK06tgEzW4=; fh=A1NpI3gyMUjwKEee2gyAtA6lLwtqV/43KYIQqvCemCw=; b=R7sDKUBwfC//JIrbLnIpz4wHHbC9o4J0271JcESD9bS7YFRZNLGF9OgAemhNMeJUX/ G9MpJwjEw3xKuCs84BIRmtYgr33SfGgHlFjuHQM44PMa71J6w8y/oJqWo9aYmagoQl24 B8NJPZgk/t+7ZiuL3rjFwtGI6Otxp+LKoP3qIUlp5C4Y76qkslmXPc28N4OS/HG+L94H XFpcOXlNPUHMDTbByMHDq2CdeqEnR1i4b2LTh9S6EspENDTX/YfZ0iVFGzRAT/NuDiz2 6REqtv9RKeZZe9xtLP/EsazMQp4qPo1rCHEo68T8TOPjS0oeuQD+zte3py4+8vFyJto9 g4Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QAn4k2aZ; spf=pass (google.com: domain of linux-kernel+bounces-23708-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23708-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. [139.178.88.99]) by mx.google.com with ESMTPS id ga22-20020a17090b039600b0028d10a1c3d8si3835746pjb.68.2024.01.11.06.30.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 06:30:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23708-linux.lists.archive=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=@linaro.org header.s=google header.b=QAn4k2aZ; spf=pass (google.com: domain of linux-kernel+bounces-23708-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23708-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 364C828A27F for ; Thu, 11 Jan 2024 14:23:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A0E13D384; Thu, 11 Jan 2024 14:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QAn4k2aZ" Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (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 008633C485 for ; Thu, 11 Jan 2024 14:23:11 +0000 (UTC) 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-f182.google.com with SMTP id 00721157ae682-5e784ce9bb8so43137537b3.0 for ; Thu, 11 Jan 2024 06:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704982991; x=1705587791; 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=82LMk21rXTaOAuZPn/JpTaNt+mh1ufAOYBK06tgEzW4=; b=QAn4k2aZCIff0P4+zMaNwOlw7j7E6Rc65IA+hRIvMTZ2j95mOWc9rUwI3s2oqvKicC MubvgKeCBhWRkYygHSR1ep560tDm0qkhhGs2vuB4q2xk/zNKrJJ+qhnvFxqiNNymdHU4 lXppZKsBCtNm+j72T9nNXeJLQx97bkftmuvwXozOXo5cxC6J7BDiuwO4Qn9qlIsiZTtx p7PM04k++AL3Se8K4JBD0PnXrM2qup7EfI64PAaFhi2S9yVAtd2wNoMv7DAifUjTOACk /224MbRGLp5OaLYK4iYaAza6WGTMLYtF1iLWCXPJVwHd3C0v/+kb/kmN++DwVSAbJnnM 8a1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704982991; x=1705587791; 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=82LMk21rXTaOAuZPn/JpTaNt+mh1ufAOYBK06tgEzW4=; b=ZMrq3CeE8uEkkEth43RvYrfspF9yCkukBcKo0TXTbx+3JfvyFqZfOceS40BN55YPeN dN46zSrkkva64rBmXq45UtHyWisELse9Ok8Ao+0lb7uaRE+gu+wUcL58b0mJfRCG4Ys+ wkmnRbmJYe5KQa2Dusc/jRE83EZaCx8fyClz5vXAvCmQjXPAfY20Ev+h5JG6kqPnjpJB XBlU0J/m27k6nwXPHcqrQpuVcWWD8i5IsW6p/0p07iReWfASzigFojQcgnjd18D0mLQ8 3tfnm3qAP6lOEt8/aydVaHbj4ElpZqPmIWjUUKroGz/ACHlNytOR5PLqqr3Bd/Hx90C6 vjoQ== X-Gm-Message-State: AOJu0Yw3knasJT8+MtC4AVdYglq+XZDS2+b+Bp6YyOLicPwqee5rZAYp aNLlnOa1zqqOdX1jWyRhcuXm5Fg5hV0rFeUqNA8sPvR0v0MB1g== X-Received: by 2002:a0d:df4e:0:b0:5fa:1942:f055 with SMTP id i75-20020a0ddf4e000000b005fa1942f055mr349315ywe.48.1704982990940; Thu, 11 Jan 2024 06:23:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240111131904.1491496-1-hector.palacios@digi.com> <20240111131904.1491496-2-hector.palacios@digi.com> In-Reply-To: <20240111131904.1491496-2-hector.palacios@digi.com> From: Linus Walleij Date: Thu, 11 Jan 2024 15:22:59 +0100 Message-ID: Subject: Re: [PATCH 1/2] gpio: vf610: add support to DT 'ngpios' property To: Hector Palacios Cc: bartosz.golaszewski@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, haibo.chen@nxp.com, peng.fan@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 2:20=E2=80=AFPM Hector Palacios wrote: > Default to hardcoded VF610_GPIO_PER_PORT (32 pins) but allow optional > generic 'ngpios' property to be specified from the device tree. > > Signed-off-by: Hector Palacios Looks correct to me. Reviewed-by: Linus Walleij NB: this only makes sense when you use GPIOs 0...n where n < 31. We also have the .valid_mask and .init_valid_mask() callback if you want to mask out GPIOs in the middle or beginning or so. Yours, Linus Walleij Yours, Linus Walleij