Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp933697rdb; Tue, 30 Jan 2024 03:10:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnC8yaIIPlfTAqqM9fxcTT2Smqh5du7Atw1ItlZ28cbXTyw+BNflgJblaQCVeAat8Ku7+0 X-Received: by 2002:a17:902:e5ce:b0:1d5:c0d9:31c1 with SMTP id u14-20020a170902e5ce00b001d5c0d931c1mr9336833plf.7.1706613009157; Tue, 30 Jan 2024 03:10:09 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p22-20020a170902b09600b001d6fb87b11csi7043505plr.265.2024.01.30.03.10.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 03:10:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-44390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44390-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6658CB2224B for ; Tue, 30 Jan 2024 10:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E4DB65BB0; Tue, 30 Jan 2024 10:36:32 +0000 (UTC) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 34CFF360AE; Tue, 30 Jan 2024 10:36:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706610991; cv=none; b=uTHDgiaiAENU8qMoHlZ/pDijKWIu/loBHc3iojXkycrAshLWjGI/q+/LT2TrPCuC/isjg8rRZs94gpBIuSgBbHYlLsq2VFAkQROZy1tAPQXmO/XkMuhKdu1BCNDgWt011r789R1Os5Q6RLukMJg6z8VxP7fraLJ/et1+t3FsH6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706610991; c=relaxed/simple; bh=1VEZsTwp9W5LxTMM5zFoUdxDncCyBRFtLz8ybVOricc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DitmvX2n8ILRqt1NM6glWem+rIDsVHF1/WUWr7kyWUf2VlW9RLzpiDrkNi5Zqkr/732kQ5BcBrYi3Q4Sj6kBgYvxMW/R1dmCN1Gu8zo/ViH+3JZdye6Q5wDkTiTom4mO0kjEFi7s82agswXwFRT9KCQb/okhtDsOVehVuBSPtXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-5edfcba97e3so42235207b3.2; Tue, 30 Jan 2024 02:36:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706610989; x=1707215789; 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=f0zKEeIH6XGdGj+q5gmx2XiQOnw1KXquglVBPd+xyto=; b=aYsnIpO0j8Fu0c8hMGLMxprwsqBhu+4/LtbKaNvy47RjmJ1Epvg0Ota+xDtCC8S1m7 3Eq2DOHqKEqcR2aRuLOfgYeeEyDaTfVTX7tQZA+qPSCVd2suAsOJkgpkxsb9Js6djxzV pM5G7azD04s4ofm21DMGVR1e46HcWGDRYzidnpPZVJQyRINWUlrX57eWToCPuyUpoLZ3 4PPv6QYkzSh9I8hL9FK8pmgHMd3BzztBCsYI+seNbiBzS4XF7/mblmwF/0eRzuO00qbo 8CE1lA8Mb97Vp3rmEctYb3Ix/rfNsOPaarTEX6/StE00YhcfAvbs4j1JxqJTkSKKXgKa +x9w== X-Gm-Message-State: AOJu0Ywk3Ofz3vDr9elSYv0uz48htbmSjaicnQkwnXRGF16q4EP0onpm lM6jU5w/I58DJm0Ib5HEUhNJcsjCAB3dvayd7xiSoBye5U5s9KI2N5kVe3Sg/FM= X-Received: by 2002:a81:bc54:0:b0:602:ab11:4264 with SMTP id b20-20020a81bc54000000b00602ab114264mr5716847ywl.43.1706610988934; Tue, 30 Jan 2024 02:36:28 -0800 (PST) Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com. [209.85.128.180]) by smtp.gmail.com with ESMTPSA id fr3-20020a05690c358300b0060033cc4fb0sm3088864ywb.13.2024.01.30.02.36.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 02:36:28 -0800 (PST) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-6029e069e08so50158837b3.0; Tue, 30 Jan 2024 02:36:28 -0800 (PST) X-Received: by 2002:a81:e207:0:b0:5e9:fa4a:fd56 with SMTP id p7-20020a81e207000000b005e9fa4afd56mr5491349ywl.13.1706610987546; Tue, 30 Jan 2024 02:36:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240129135556.63466-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240129135556.63466-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20240129135556.63466-3-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Tue, 30 Jan 2024 11:36:16 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 2/4] pinctrl: renesas: rzg2l: Include pinmap in RZG2L_GPIO_PORT_PACK() macro To: Prabhakar Cc: Magnus Damm , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Biju Das , Claudiu Beznea , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 29, 2024 at 2:56=E2=80=AFPM Prabhakar wrote: > From: Lad Prabhakar > > Currently we assume all the port pins are sequential ie always PX_0 to > PX_n (n=3D1..7) exist, but on RZ/Five SoC we have additional pins P19_1 t= o > P28_5 which have holes in them, for example only one pin on port19 is > available and that is P19_1 and not P19_0. So to handle such cases > include pinmap for each port which would indicate the pin availability > on each port. As the pincount can be calculated based on pinmap drop this > from RZG2L_GPIO_PORT_PACK() macro. > > Previously we had a max of 7 pins on each port but on RZ/Five Port-20 > has 8 pins, so move the single pin configuration to BIT(63). > > Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-pinctrl for v6.9. Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds