Skip to content

Commit f775c24

Browse files
potinlailinusw
authored andcommitted
pinctrl: aspeed-g6: Add NCSI pin group config
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 <[email protected]> Reviewed-by: Andrew Jeffery <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 49b2b5c commit f775c24

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ PIN_DECL_2(E26, GPIOD3, RGMII3RXD3, RMII3RXER);
249249

250250
FUNC_GROUP_DECL(RGMII3, H24, J22, H22, H23, G22, F22, G23, G24, F23, F26, F25,
251251
E26);
252-
FUNC_GROUP_DECL(RMII3, H24, J22, H22, H23, G23, F23, F26, F25, E26);
252+
GROUP_DECL(RMII3, H24, J22, H22, H23, G23, F23, F26, F25, E26);
253+
GROUP_DECL(NCSI3, J22, H22, H23, G23, F23, F26, F25, E26);
254+
FUNC_DECL_2(RMII3, RMII3, NCSI3);
253255

254256
#define F24 28
255257
SIG_EXPR_LIST_DECL_SESG(F24, NCTS3, NCTS3, SIG_DESC_SET(SCU410, 28));
@@ -355,7 +357,9 @@ FUNC_GROUP_DECL(NRTS4, B24);
355357

356358
FUNC_GROUP_DECL(RGMII4, F24, E23, E24, E25, D26, D24, C25, C26, C24, B26, B25,
357359
B24);
358-
FUNC_GROUP_DECL(RMII4, F24, E23, E24, E25, C25, C24, B26, B25, B24);
360+
GROUP_DECL(RMII4, F24, E23, E24, E25, C25, C24, B26, B25, B24);
361+
GROUP_DECL(NCSI4, E23, E24, E25, C25, C24, B26, B25, B24);
362+
FUNC_DECL_2(RMII4, RMII4, NCSI4);
359363

360364
#define D22 40
361365
SIG_EXPR_LIST_DECL_SESG(D22, SD1CLK, SD1, SIG_DESC_SET(SCU414, 8));
@@ -1977,6 +1981,8 @@ static const struct aspeed_pin_group aspeed_g6_groups[] = {
19771981
ASPEED_PINCTRL_GROUP(MDIO2),
19781982
ASPEED_PINCTRL_GROUP(MDIO3),
19791983
ASPEED_PINCTRL_GROUP(MDIO4),
1984+
ASPEED_PINCTRL_GROUP(NCSI3),
1985+
ASPEED_PINCTRL_GROUP(NCSI4),
19801986
ASPEED_PINCTRL_GROUP(NCTS1),
19811987
ASPEED_PINCTRL_GROUP(NCTS2),
19821988
ASPEED_PINCTRL_GROUP(NCTS3),

0 commit comments

Comments
 (0)