From patchwork Thu Jun 20 01:25:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 13704789 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 135DFC27C53 for ; Thu, 20 Jun 2024 01:27:46 +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:References:In-Reply-To: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:List-Owner; bh=u6rW4gRbF4g9rE66bFyc4+9ecA/29lBg9GnRQwb9/4M=; b=OtEYKn/suz9skqsG2wSCqfqJGH XKvq1jp6qmGrqRUgw4ELUK6XRxgsYzMb1NhYhxBmHf+3RiXAoBWkgdRjvr1BRsQfjDMUN3OAmv410 dQ4tf7hqgu+Gs8N1pSh+SplY381QyVo2hdah2ttU3YMVai+Y0/gfQxT3zh8Mc43iIErl0Dgf8SyAP 0JNVDklgLG97dm3axMeghroxdu1YXczUOoZ83Ait9DMgnjpAwzUrke94kmzhFu26QNZjUgY3gcLBj Bpy+t4z7SXoAPdWNlIl7Bue13rmo2XulHZZEDkCNKAoboiYdtG87FJDOpZWNF3a2c6v4HZpL4FYxK aAM4cXSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK6aM-00000003FL5-2Ld2; Thu, 20 Jun 2024 01:27:34 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK6aF-00000003FIr-34f3 for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2024 01:27:29 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1f700e4cb92so3293715ad.2 for ; Wed, 19 Jun 2024 18:27:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718846847; x=1719451647; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u6rW4gRbF4g9rE66bFyc4+9ecA/29lBg9GnRQwb9/4M=; b=FmJZYpa4ki7IIxPtlzuPjhESvtrBpZaOFVLeQBGF8V0DiF34miekZxGoNFXE9i/1E9 vsvEuY4z6gV5N7he2Pn0BfTVCG0vKrRpknslr3S6eQfEQu2OOQDkLmGf510kR1bZJkA+ HUwVpVYA2Pe27M4HFyhp3iNGcU1U7aUL06EaSW8JrY0Gb4ANo6aSC95djS3EuXhhqblj uYIKq28IiY534It3C5XKSOT7ctMSlmNAOkk/QCC1zxuvooelr9lFFHsKTE2KhlLb9Yxj ipB/sLW2lEdvcOq/+uZ6eC/FkwAP7UNkFNDa6BmXs8Upg6zX6HVKUO0iKrlOjepqd1gn txeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718846847; x=1719451647; h=content-transfer-encoding:mime-version:references:in-reply-to :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=DRjbjw8JjaJsCxKfeLXaynv/uWYOzc/4XYFRFZ6OX++FZDlEO3ReIIVZ6Vee4iUGCb 2rXwczssGb2TFjyBUvaEyCyIGsHL9ltr3y3cGWvAYpOd7CLY6sX32AxOp8ssjuRRZe1P d4izknTNSrBHrsxjOKLmTmEko8g0FMOURCLgKz6pdCZ5hZf4SI2/vMb6SJvr9+X1XNch Yg2k0GYhjb4bFmxhN6QZTEIlVE5rmHxur/JXbaMbdu4PgmOspt69uZ8OU849biMTdtJv 6KT6hBs3h3zY2dIs7PWriVjB5ThZ7R9nQ7iGjwKTAhUxIGnvWoiNy3CT1U0l2FTQnOBK HUBg== X-Forwarded-Encrypted: i=1; AJvYcCUY4F7aRkdACdjIC9GYmhJ81o0EINb8x3PkJuH10dD2TM31oCIqGTy8WFE7yONLWBhrh7yjS9Hm+0Jz17dDzZTGaaIoi1M0Yn3aDlT8tBJ1h2MTmhM= X-Gm-Message-State: AOJu0YzuZ4HSw02+N9l2dFCt8QIzsr7+tM0jKz5pc0ST9nA2CgcoelB3 UJ2nDzq9Poi+lNV4UJScfpDi0gtUh6CWBYqIWQd++8g6leX9235g X-Google-Smtp-Source: AGHT+IFHltDAazsMVth4tkcJZ+j2/bVyouoA9oII0f88tUI4qTUzL/WWNrangeocByNlrlSB2hmB2w== X-Received: by 2002:a17:902:daca:b0:1f8:67e4:3985 with SMTP id d9443c01a7336-1f9aa45eaa7mr51151795ad.49.1718846846933; Wed, 19 Jun 2024 18:27:26 -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-1f9d021b98fsm105855ad.33.2024.06.19.18.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 18:27:26 -0700 (PDT) From: Potin Lai To: Andrew Jeffery , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley Cc: linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Patrick Williams , Cosmo Chou , Potin Lai , Potin Lai Subject: [PATCH v2 1/2] pinctrl: aspeed-g6: Add NCSI pin group config Date: Thu, 20 Jun 2024 09:25:11 +0800 Message-Id: <20240620012512.3109518-2-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240620012512.3109518-1-potin.lai.pt@gmail.com> References: <20240620012512.3109518-1-potin.lai.pt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_182727_828876_D088B10D X-CRM114-Status: GOOD ( 11.83 ) 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), From patchwork Thu Jun 20 01:25:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 13704790 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 872EFC2BA1A for ; Thu, 20 Jun 2024 01:27:46 +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:References:In-Reply-To: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:List-Owner; bh=mAvyobvqI2HxWlvdnAeJsCk7w3GvVzpbdy8jdNQhefo=; b=Ym4zoygaqHAZrXvfEk2F6fntxw ZzVWHqHn8IzBx6xoH00jw8fmYDQTXk/r1wIwrDP+PAiDfMgeOw9TmjY4QraTpX4/EGNyBEgQk/q6V hzjvc7mzbZY5lhEb+IRFu7B3RYfDqOCoXev/hjGaENGsfRGZVaVnnYn1zGn+bZpz7VNTSvmwqi/ec JNwYsXcKJAp3Z+dMU/WvqjVn+vVJ+F7Ymx0QcY/jZKQ1mt0nZZZbKDF9PD78/FzoJO9VKt3agSiC7 Zw2G6pFQC3UtiEiMK0QQOJm53i+M1e2ZRx9FvivaTjdTOXg0B6p8SQccvWqI/RfJT8WzM+OV11bsg IKrH3+aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK6aO-00000003FMK-04eP; Thu, 20 Jun 2024 01:27:36 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK6aJ-00000003FJf-1w8p for linux-arm-kernel@lists.infradead.org; Thu, 20 Jun 2024 01:27:32 +0000 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-652fd0bb5e6so295241a12.0 for ; Wed, 19 Jun 2024 18:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718846850; x=1719451650; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mAvyobvqI2HxWlvdnAeJsCk7w3GvVzpbdy8jdNQhefo=; b=RyqFiC9quGWKFqX4kaXOZqxE3Toz/T5DSPRALIZrew3U013z0taqETYTcGrpPFCAYb uzFPRZN0BBtF1QwhEJvewGJFJRzcarl7xB1aJRx0vGACxxE1Vwc/6yRgiEL6lxCQpayw OviZmKkjgNoUgL20Gap6UQK0zISiX2USwQR8hVoreLufnkhWwc54zWt8YA5yTMs1NMiq Xq3J4FHXWNmvwQIwFH+xuWUzrxADZ3hLltyyNy20YF0yn6NRJ7zAOUL/76x/Yvk0o451 jJhmHZ23qQKfCWIfDjcp09Nm7KmtTGyGnsUiKzahbVGiYjqLG040O5HIilwdc+0hcV9B X4fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718846850; x=1719451650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mAvyobvqI2HxWlvdnAeJsCk7w3GvVzpbdy8jdNQhefo=; b=EkenGEDMC/AUEKGbti4SL4rwYTIGPdcgOa1u+1t/V8C+ZkkgEu37oXZHuuWWLq2j8q cgjKfMnCQOx3mbmIHKr2yvtfOOXYkTlC1XDKKpsuXAV8zA3mejxyzQFTcLR+kv93QjPd hSyxhYxD75TCS7YEXKtEuUuM2kCjx4XU9OBwHuwN/pzz8o+PJL1ILz5xWTKGSq5GNANb kDg9w93OyCrb+zLERjE/93a6TnIW43PvZQvQXLuN5WFdOVdckAC4IgIVOghGbAlRgHxr 40TaICh1Hz2HVluug0u5DKVMYHx0FifuefNKLIhs7s9pzM8vUB5YwgX8A6dK0aByWKGk x3dw== X-Forwarded-Encrypted: i=1; AJvYcCWKl9lH2/YDgc+XGs2Ac3na+gVHf93Dd56y5kG1E1kRzeTee0OA8VvhMkxI7JtgMcU7MHsEtdiK1jhEXnUEEfHIipUaMZSj7F0J+m/s9Xvotxxaxf4= X-Gm-Message-State: AOJu0YwDHYUDFSsZPqDE3G75sS1353ILTV2poXPVuxgs/0/PMvlXHrUp /cGmgSDnPZQtLn5YqCxRlClEk1Bjzc55qKBgMSR8m0Lk7GM0f1na X-Google-Smtp-Source: AGHT+IHTJJRiCMllRxkLRs+jMBPLwCcjfhogsXVOVPuvtCI4VC6AcvlRfF/4zLL0cmyB5XBOJCHl4g== X-Received: by 2002:a17:902:c40d:b0:1f7:126:5bab with SMTP id d9443c01a7336-1f9aa41228fmr47535535ad.40.1718846850068; Wed, 19 Jun 2024 18:27:30 -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-1f9d021b98fsm105855ad.33.2024.06.19.18.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 18:27:29 -0700 (PDT) From: Potin Lai To: Andrew Jeffery , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley Cc: linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Patrick Williams , Cosmo Chou , Potin Lai , Potin Lai Subject: [PATCH v2 2/2] dt-bindings: pinctrl: aspeed,ast2600-pinctrl: add NCSI group Date: Thu, 20 Jun 2024 09:25:12 +0800 Message-Id: <20240620012512.3109518-3-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240620012512.3109518-1-potin.lai.pt@gmail.com> References: <20240620012512.3109518-1-potin.lai.pt@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_182731_663469_E2EB3BA3 X-CRM114-Status: GOOD ( 10.99 ) 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. Add NCSI group to distinguish the pin group between RMII and NCSI. - RMII pins: - RMIIXRCLKI - RMIIXRXD0 - RMIIXRXD1 - RMIIXCRSDV - RMIIXRXER - RMIIXRCLKO - RMIIXTXEN - RMIIXTXD0 - RMIIXTXD1 - NCSI pins: - RMIIXRCLKI - RMIIXRXD0 - RMIIXRXD1 - RMIIXCRSDV - RMIIXRXER - RMIIXTXEN - RMIIXTXD0 - RMIIXTXD1 Signed-off-by: Potin Lai Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml index 00b6974a5ed3d..3f02dc94a7ce2 100644 --- a/Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml @@ -337,6 +337,8 @@ additionalProperties: - MDIO2 - MDIO3 - MDIO4 + - NCSI3 + - NCSI4 - NCTS1 - NCTS2 - NCTS3