From patchwork Thu Jun 13 08:07:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 13696292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF9B7C27C75 for ; Thu, 13 Jun 2024 08:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=u6rW4gRbF4g9rE66bFyc4+9ecA/29lBg9GnRQwb9/4M=; b=Gu9tBuIjGxBDlZORRuRQ/pciGa urWy4teJVkBsJmYgLeNgovFWxXPu7P61bvLDrrsGKOo6H0nJr0Oq08845z6BUZhyHYxuFHtAULiUA bFvIsFJXt+5PKkgPm8C4YwgG8kQJ1kvXn62thVhaRjsov5ZV5bvHe+9ExK5lgybk6VCO170Wr4u4g Wtu6UBnOCnyAHlmMI9Iys58WnVvwHknCYGx6o3uplofa8E3h6YImapsTjuZJjdxlJqeU7HnU4wmso /KN+0EP91jrpbTqa9PEAS8ghtiSXalzFeyNx3affsz7gZ40zHNt7juUnPZfH+eHlfFBSX+BFIZPwg VenYeX6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHfXc-0000000Fd2n-3hsR; Thu, 13 Jun 2024 08:10:40 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHfXZ-0000000Fd0Q-1cYp for linux-arm-kernel@lists.infradead.org; Thu, 13 Jun 2024 08:10:38 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1f480624d0dso6556895ad.1 for ; Thu, 13 Jun 2024 01:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718266234; x=1718871034; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=u6rW4gRbF4g9rE66bFyc4+9ecA/29lBg9GnRQwb9/4M=; b=QiTy6hjLTDUU03/rnEvfbiTcRCkcEPPTu3XO/e3Gz5ImknbMjx3tGWizrVvrxWi8lL jVJWSzwUSO6gSbc7HYB5a0rJGVVFiIXD3yK97rueTnYfpL6w9breJ/2AIme4lcOvH3O/ SFn7gQP99t0Sb5kQoEJNcBEdrJuHRInFLesJSQD1TbHGLyiFNHCneHcIg2EJaPYe08jv RrVG8Zht4i5C1dvqlmfrQCk29bp9oKMbb4/sB05+sm37pepS/qTAWOYxDIaYSZ/OCLxQ rIjDrG0mi9PRIkOAVbZelfRynDfvlyOEYdvFJedhXY+433wbvtoRD9395lZB9xseHp6T LASw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718266234; x=1718871034; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u6rW4gRbF4g9rE66bFyc4+9ecA/29lBg9GnRQwb9/4M=; b=w9Rc36ETG+9CNiVeu9x1Q4rj01soH8qHSmIV8KmCiSA9/tqPeXD5I6X/M4DZZgZvr1 eLnpqZHT7QfDXiu84kBwVlRhBJcTNCPlpsPrw8cLm/uww3ytkime6tUkRmNDZ0yj+8Er 3zbcMirzTMgZGipEG5p7o+r1RKwSUJ45wNdHybLqgXJYo1/+awOuBP4f1QY76Kr5mR7/ yaiKGgjkHMHYXL/iidX9meB3MSK1UR4YstiGfgRUQA3cT+1H69tD6OsQcVwEh+/7apx0 T88eWHpmjBQ1MEhRRkSexpxH44f7c/ukMijp2pLibH0KQLluhJUPzeGb1PgNzXJndUx4 wYCQ== X-Forwarded-Encrypted: i=1; AJvYcCU67/Ac7dz9CJtyIu+pucRs3mMHLU7meE1ZhAjkRYpwZwmWCi3T8zEGOSKtc3bwdbUyGxob/+4iFNQ+WRpVjquXU+H1TAn9Eq6GV1f+Kda7qxZXvaI= X-Gm-Message-State: AOJu0YycrfYqVnPMQor3sgt6EbQhYuwEksJ08oJmXpv5pTZWFWYqf9a2 xKZbW40bdPt5iK98m8SdxBNfIBex7yJQBvhmAGpFN1O8p9FXUl/z X-Google-Smtp-Source: AGHT+IFLEywWphtgn3X1PQp/3zfnSwArZcK1HQZIowNQFjRIz2BcmZ5KhpvO9dq6/2QAxDHqyog4wA== X-Received: by 2002:a17:902:ccc2:b0:1f7:2135:ce71 with SMTP id d9443c01a7336-1f83b566d82mr47972065ad.11.1718266234189; Thu, 13 Jun 2024 01:10:34 -0700 (PDT) Received: from localhost.localdomain (61-220-246-151.hinet-ip.hinet.net. [61.220.246.151]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f855e74c49sm7572965ad.104.2024.06.13.01.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:10:33 -0700 (PDT) From: Potin Lai To: Andrew Jeffery , Linus Walleij , Joel Stanley Cc: linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Patrick Williams , Cosmo Chou , Potin Lai , Potin Lai Subject: [PATCH 1/1] pinctrl: aspeed-g6: Add NCSI pin group config Date: Thu, 13 Jun 2024 16:07:25 +0800 Message-Id: <20240613080725.2531580-1-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240613_011037_513663_6D7EA339 X-CRM114-Status: GOOD ( 10.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In the NCSI pin table, the reference clock output pin (RMIIXRCLKO) is not needed on the management controller side. To optimize pin usage, add new NCSI pin groupis that excludes RMIIXRCLKO, reducing the number of required pins. Signed-off-by: Potin Lai --- drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c b/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c index 7938741136a2c..31e4e0b342a00 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c @@ -249,7 +249,9 @@ PIN_DECL_2(E26, GPIOD3, RGMII3RXD3, RMII3RXER); FUNC_GROUP_DECL(RGMII3, H24, J22, H22, H23, G22, F22, G23, G24, F23, F26, F25, E26); -FUNC_GROUP_DECL(RMII3, H24, J22, H22, H23, G23, F23, F26, F25, E26); +GROUP_DECL(RMII3, H24, J22, H22, H23, G23, F23, F26, F25, E26); +GROUP_DECL(NCSI3, J22, H22, H23, G23, F23, F26, F25, E26); +FUNC_DECL_2(RMII3, RMII3, NCSI3); #define F24 28 SIG_EXPR_LIST_DECL_SESG(F24, NCTS3, NCTS3, SIG_DESC_SET(SCU410, 28)); @@ -355,7 +357,9 @@ FUNC_GROUP_DECL(NRTS4, B24); FUNC_GROUP_DECL(RGMII4, F24, E23, E24, E25, D26, D24, C25, C26, C24, B26, B25, B24); -FUNC_GROUP_DECL(RMII4, F24, E23, E24, E25, C25, C24, B26, B25, B24); +GROUP_DECL(RMII4, F24, E23, E24, E25, C25, C24, B26, B25, B24); +GROUP_DECL(NCSI4, E23, E24, E25, C25, C24, B26, B25, B24); +FUNC_DECL_2(RMII4, RMII4, NCSI4); #define D22 40 SIG_EXPR_LIST_DECL_SESG(D22, SD1CLK, SD1, SIG_DESC_SET(SCU414, 8)); @@ -1976,6 +1980,8 @@ static const struct aspeed_pin_group aspeed_g6_groups[] = { ASPEED_PINCTRL_GROUP(MDIO2), ASPEED_PINCTRL_GROUP(MDIO3), ASPEED_PINCTRL_GROUP(MDIO4), + ASPEED_PINCTRL_GROUP(NCSI3), + ASPEED_PINCTRL_GROUP(NCSI4), ASPEED_PINCTRL_GROUP(NCTS1), ASPEED_PINCTRL_GROUP(NCTS2), ASPEED_PINCTRL_GROUP(NCTS3),