Skip to contentSkip to conversation

add ast2600 NCSI pin groups

PATCH In review Potin Lai 3 participants 6 messages Jun 21, 2024 – Jun 26, 2024

Subsystems (5)
lore
Share & tools
lore

Potin Lai

author
#0 lore raw

v4 cover add ast2600 NCSI pin groups

In the NCSI pin table, the reference clock output pin (RMIIXRCLKO) is not needed on the management controller side.

changes v3 --> v4:
- remove pin list in dt-bindings commit message
- add note in dt-bindings document to descript the reason of adding NCSI groups

changes v2 --> v3:
- fix commit message typo
- move dt-bindings patch forward

changes v1 --> v2:
- add NCSI pin group in dt-bindings document

Potin Lai (2):
dt-bindings: pinctrl: aspeed,ast2600-pinctrl: add NCSI groups
pinctrl: aspeed-g6: Add NCSI pin group config

 .../bindings/pinctrl/aspeed,ast2600-pinctrl.yaml       |  7 +++++++
 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c             | 10 ++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH v4 1/2 dt-bindings: pinctrl: aspeed,ast2600-pinctrl: add NCSI groups

In the NCSI pin table, the reference clock output pin (RMIIXRCLKO) is not needed on the management controller side.

Add "NCSI" pin groups that are equivalent to the RMII pin groups, but without the RMIIXRCLKO pin.

---
 .../bindings/pinctrl/aspeed,ast2600-pinctrl.yaml           | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/pinctrl/aspeed,ast2600-pinctrl.yaml +7 -0
index 00b6974a5ed3d..80974c46f3ef9 100644
@@ -19,6 +19,11 @@ description: |+
   Refer to the bindings described in
   Documentation/devicetree/bindings/mfd/syscon.yaml
 
+  Note: According to the NCSI specification, the reference clock output pin
+  (RMIIXRCLKO) is not required on the management controller side. To optimize
+  pin usage, add "NCSI" pin groups that are equivalent to the RMII pin groups,
+  but without the RMIIXRCLKO pin.
+
 properties:
   compatible:
     const: aspeed,ast2600-pinctrl
@@ -337,6 +342,8 @@ additionalProperties:
         - MDIO2
         - MDIO3
         - MDIO4
+        - NCSI3
+        - NCSI4
         - NCTS1
         - NCTS2
         - NCTS3
Signature · 1 line
2.31.1
author
#3 lore raw

PATCH v4 2/2 pinctrl: aspeed-g6: Add NCSI pin group config

In reply to Potin Lai

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.

---
 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +8 -2
index 7938741136a2c..31e4e0b342a00 100644
@@ -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),
Signature · 1 line
2.31.1
maintainer Reviewed-by on v4 1/2
#2 lore raw

Re: [PATCH v4 1/2] dt-bindings: pinctrl: aspeed,ast2600-pinctrl: add NCSI groups

In reply to Potin Lai
Quoted 8 lines · Potin Lai

In the NCSI pin table, the reference clock output pin (RMIIXRCLKO) is not needed on the management controller side.

Add "NCSI" pin groups that are equivalent to the RMII pin groups, but without the RMIIXRCLKO pin.

maintainer Reviewed-by on v4 2/2
#4 lore raw

Re: [PATCH v4 2/2] pinctrl: aspeed-g6: Add NCSI pin group config

In reply to Potin Lai
Quoted 10 lines · Potin Lai

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.

#5 lore raw
In reply to Potin Lai
Quoted 2 lines · On Fri, Jun 21, 2024 at 11:33?AM Potin Lai <[email protected]> wrote:

In the NCSI pin table, the reference clock output pin (RMIIXRCLKO) is not needed on the management controller side.

This v4 patch set applied!

Yours,
Linus Walleij