From patchwork Thu Jun 20 08:43:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 1949972 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=QfXBuAh/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W4YxB0jrCz20X6 for ; Thu, 20 Jun 2024 18:46:05 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=QfXBuAh/; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4W4Yx62M2bz3cFN for ; Thu, 20 Jun 2024 18:46:02 +1000 (AEST) X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=QfXBuAh/; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::42f; helo=mail-pf1-x42f.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=lists.ozlabs.org) Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4W4Yx075MMz30T1; Thu, 20 Jun 2024 18:45:56 +1000 (AEST) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-7061365d2f3so499430b3a.3; Thu, 20 Jun 2024 01:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718873155; x=1719477955; darn=lists.ozlabs.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=Fte78PnOfBiH+sJHP9JZR7QJmPh/4n6xzLMPWhbJ8Gc=; b=QfXBuAh/y9mx1uGq/JxtIb3LmmQ3OiiUG+fPgwJ2gtuMxgBZu8F9k5DW2F2FydIuYn eGa3FZU27fL75F7NwrOURuJOqJCTSutK6Rcnr6wzfKXJ6POqM9TEKjQHyE+OsRPZckfp zAhsg3Bpx8xm64L07neP3gjhpaQy1ANtLGQhDrZJmME8tp4voDMJ6yLiTS6MXPHHeKxq H2zMoWOslfanrfdZZLEFVxfgKRaJnmQ42DyqI67K37F49pcSMpMt82i86aWEtU+f5lMm gdcvGwrKqlfhRAo+6aAG0PqQpfMrUKwWuB4zQeyXiOdg5Q9576W3UCfZg3u14d/Ngmts FLMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718873155; x=1719477955; 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=Fte78PnOfBiH+sJHP9JZR7QJmPh/4n6xzLMPWhbJ8Gc=; b=wiWcXH/nlsIQEe8jOnqVNENkaMxgtAhAkKENzCXYga+dTpwNXvG7au+crN2bd+Ul7Z 88JVjMo0eW+fCjtf24NYS1TuDr6pZ022ZDjwqA7t+PdKFMjTs5avVSWNnhn2kCS1E0wU kR7UMZNvmpMl70eM6OGy5yg+IhMemtY+okDlN+SEwv8mr30K9do3fndEVe/TRsY0BMbr nucJHsH7PB+XalzW9VL+omg8k3BPNxDJElpeyzlUlZB9YdrIGNVPugFiL6opKEo7uUQQ yGZtxg63Dfuu6CCEYCx0y07USIlxpWX8tbNZPTR7TFUAKyr4r3tB/SQGjXVvHYE6jlK/ zehg== X-Forwarded-Encrypted: i=1; AJvYcCVbP51OgWszyJcmx9Fy8iQpOJjee0LMXeZbTdD4gtErhwrVQ0J/weAnjxbT1Ax+n04tGtUfc25i6jsG6rNz2/mf5uL8ILW2elQ= X-Gm-Message-State: AOJu0Yz6yDYPxlYAY+KPr7HyAS0IXN7g7iP1lMotUu8TYNIWdSUxEN+l DbGMj+ApPASYmtb7tYvNKw6ahEBvo78eNAxhqJIYCs4NbEJYsYPX X-Google-Smtp-Source: AGHT+IFxym5JK2ZJ/HsMfJgwaJm993/2O/e1hkkImoYa+PVFsL906eYHSVqcL7DY+taWQyuSWfH3Bw== X-Received: by 2002:a05:6a20:968e:b0:1b8:a13f:3a39 with SMTP id adf61e73a8af0-1bcbb5cb26fmr5082372637.38.1718873154815; Thu, 20 Jun 2024 01:45:54 -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 d2e1a72fcca58-705ccb6b9besm11895592b3a.165.2024.06.20.01.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 01:45:54 -0700 (PDT) From: Potin Lai To: Andrew Jeffery , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley Subject: [PATCH v3 1/2] dt-bindings: pinctrl: aspeed,ast2600-pinctrl: add NCSI group Date: Thu, 20 Jun 2024 16:43:36 +0800 Message-Id: <20240620084337.3525690-2-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240620084337.3525690-1-potin.lai.pt@gmail.com> References: <20240620084337.3525690-1-potin.lai.pt@gmail.com> MIME-Version: 1.0 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Patrick Williams , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai , linux-gpio@vger.kernel.org, Krzysztof Kozlowski , Cosmo Chou , Potin Lai , linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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 Acked-by: Krzysztof Kozlowski Signed-off-by: Potin Lai --- .../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 From patchwork Thu Jun 20 08:43:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 1949976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gsi+xw75; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W4YzC506Dz20X6 for ; Thu, 20 Jun 2024 18:47:51 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gsi+xw75; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4W4YzB3yMmz3cYx for ; Thu, 20 Jun 2024 18:47:50 +1000 (AEST) X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gsi+xw75; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::231; helo=mail-oi1-x231.google.com; envelope-from=potin.lai.pt@gmail.com; receiver=lists.ozlabs.org) Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4W4Yx45PL5z30Wc; Thu, 20 Jun 2024 18:46:00 +1000 (AEST) Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3cabac56b38so313757b6e.3; Thu, 20 Jun 2024 01:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718873159; x=1719477959; darn=lists.ozlabs.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=EiJfmKO8nNBSX1oUuFOSypNRXVZPBtzmshynKzoPzUw=; b=gsi+xw75pqDQn2BobzS7PAUrnsPFFgE0p65V7n+UU2FGqNDwy0sMNU+APSdlXmnDEt P7IVd8rgdNz76FnBbgc4JmQxzxTyldsv/blwW0wcXEoEygYGn5WlGGXDJv17rptYoGye rYNbh3nLZ3e+BJwHVOUjg37ZwrM3csGHFRwOb5UZ+d+w+rKQvMejQZJAgVKxoIcEoyeE 4hRy8eW0WIksnbKk60T7Q/GhC8s772CU+M1sqUAzjMBvmoNBeda/h6dFcSJdFhnXOlB/ lTRMBpmbApFw74KealMjdcJCBTJGmf1Gpf3+HYf3zQkzBt9kfIsatWdXJ4y5j7GXga2M g7Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718873159; x=1719477959; 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=EiJfmKO8nNBSX1oUuFOSypNRXVZPBtzmshynKzoPzUw=; b=I4I2zmBAm1mYfRAkLPpsdMgMNsioFGVHK5zjMLdvezk5Kferxv0d42yHMRF/1tp3Z/ eGsRv8gXhrWD/L+2j9M5pYlit/sfr7DStvX117z4PrTP5U2SbRPIHKGP4F5v7V4d67QK Au8q1+hFkfgdo7g4ZLtwOhDdPih/7H++zPCOlWGWurBhx8/vTr7llbuODiUaVy0fN8mj 90GyYZaLAXogOlACZ42wgd3VxXvkNvzU14y4t1BmQcxt2YIYMZxXWf75kkCTvxAUbEHs OnYsZh304c3npzzn0BLdZ26baFKq6jRQJqHxRHPen6skNSh1hwwFavWjKonij9vqBnYu IXbQ== X-Forwarded-Encrypted: i=1; AJvYcCX6AUlJ4wCV9lu7BphjxDBvcbPgc6lpRQR5V0lPeRvFJSooKsggswfWdZ4NY0nyIv4maVLtgUdNmgKgYhpyxtP2BR4LYcY6jCo= X-Gm-Message-State: AOJu0YzkebkvH9jFpdyU8oJUiPq/9frYXsEOWKoUppq6LpHIvYUaBkFJ kD6KzKdEzBValbGvJHDzGQdeBmRSViS5XGNmLitJ8kaVL3UbSMY4 X-Google-Smtp-Source: AGHT+IGhGDKSgAv0T6Xql5g7csBDAeTCcq8i/P2W7WhnsCqa2jWpcloUNmsMrFYRH/C43jnjpNWvwg== X-Received: by 2002:a05:6808:199c:b0:3d2:1e98:cb04 with SMTP id 5614622812f47-3d51b9824c4mr5393367b6e.7.1718873157886; Thu, 20 Jun 2024 01:45:57 -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 d2e1a72fcca58-705ccb6b9besm11895592b3a.165.2024.06.20.01.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 01:45:57 -0700 (PDT) From: Potin Lai To: Andrew Jeffery , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley Subject: [PATCH v3 2/2] pinctrl: aspeed-g6: Add NCSI pin group config Date: Thu, 20 Jun 2024 16:43:37 +0800 Message-Id: <20240620084337.3525690-3-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240620084337.3525690-1-potin.lai.pt@gmail.com> References: <20240620084337.3525690-1-potin.lai.pt@gmail.com> MIME-Version: 1.0 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Patrick Williams , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai , linux-gpio@vger.kernel.org, Cosmo Chou , Potin Lai , linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" Based on the NCSI pin table (Table 181) in NCSI spec[1], the reference clock output pin (RMIIXRCLKO) is not needed on the management controller side. To optimize pin usage, add new NCSI pin group that excludes RMIIXRCLKO, reducing the number of required pins. LINK: [1] https://www.dmtf.org/sites/default/files/standards/documents/DSP0222_1.2.0a.pdf 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),