@@ -277,37 +277,61 @@ static const struct artpec6_pin_group artpec6_pin_groups[] = {
277277 .config = ARTPEC6_CONFIG_3 ,
278278 },
279279 {
280- .name = "uart0grp0" ,
280+ .name = "uart0grp0" , /* All pins. */
281281 .pins = uart0_pins0 ,
282282 .num_pins = ARRAY_SIZE (uart0_pins0 ),
283283 .config = ARTPEC6_CONFIG_1 ,
284284 },
285285 {
286- .name = "uart0grp1" ,
286+ .name = "uart0grp1" , /* RX/TX and RTS/CTS */
287287 .pins = uart0_pins1 ,
288288 .num_pins = ARRAY_SIZE (uart0_pins1 ),
289289 .config = ARTPEC6_CONFIG_1 ,
290290 },
291291 {
292- .name = "uart1grp0" ,
292+ .name = "uart0grp2" , /* Only RX/TX pins. */
293+ .pins = uart0_pins1 ,
294+ .num_pins = ARRAY_SIZE (uart0_pins1 ) - 2 ,
295+ .config = ARTPEC6_CONFIG_1 ,
296+ },
297+ {
298+ .name = "uart1grp0" , /* RX/TX and RTS/CTS */
293299 .pins = uart1_pins0 ,
294300 .num_pins = ARRAY_SIZE (uart1_pins0 ),
295301 .config = ARTPEC6_CONFIG_2 ,
296302 },
297303 {
298- .name = "uart2grp0" ,
304+ .name = "uart1grp1" , /* Only RX/TX pins. */
305+ .pins = uart1_pins0 ,
306+ .num_pins = 2 ,
307+ .config = ARTPEC6_CONFIG_2 ,
308+ },
309+ {
310+ .name = "uart2grp0" , /* Full pinout */
299311 .pins = uart2_pins0 ,
300312 .num_pins = ARRAY_SIZE (uart2_pins0 ),
301313 .config = ARTPEC6_CONFIG_1 ,
302314 },
303315 {
304- .name = "uart2grp1" ,
316+ .name = "uart2grp1" , /* RX/TX and RTS/CTS */
305317 .pins = uart2_pins1 ,
306318 .num_pins = ARRAY_SIZE (uart2_pins1 ),
307319 .config = ARTPEC6_CONFIG_1 ,
308320 },
309321 {
310- .name = "uart3grp0" ,
322+ .name = "uart2grp2" , /* Only RX/TX */
323+ .pins = uart2_pins1 ,
324+ .num_pins = 2 ,
325+ .config = ARTPEC6_CONFIG_1 ,
326+ },
327+ {
328+ .name = "uart3grp0" , /* RX/TX and CTS/RTS */
329+ .pins = uart3_pins0 ,
330+ .num_pins = ARRAY_SIZE (uart3_pins0 ),
331+ .config = ARTPEC6_CONFIG_0 ,
332+ },
333+ {
334+ .name = "uart3grp1" , /* Only RX/TX */
311335 .pins = uart3_pins0 ,
312336 .num_pins = ARRAY_SIZE (uart3_pins0 ),
313337 .config = ARTPEC6_CONFIG_0 ,
@@ -319,13 +343,19 @@ static const struct artpec6_pin_group artpec6_pin_groups[] = {
319343 .config = ARTPEC6_CONFIG_2 ,
320344 },
321345 {
322- .name = "uart5grp0" ,
346+ .name = "uart5grp0" , /* TX/RX and RTS/CTS */
323347 .pins = uart5_pins0 ,
324348 .num_pins = ARRAY_SIZE (uart5_pins0 ),
325349 .config = ARTPEC6_CONFIG_2 ,
326350 },
327351 {
328- .name = "uart5nocts" ,
352+ .name = "uart5grp1" , /* Only TX/RX */
353+ .pins = uart5_pins0 ,
354+ .num_pins = 2 ,
355+ .config = ARTPEC6_CONFIG_2 ,
356+ },
357+ {
358+ .name = "uart5nocts" , /* TX/RX/RTS */
329359 .pins = uart5_pins0 ,
330360 .num_pins = ARRAY_SIZE (uart5_pins0 ) - 1 ,
331361 .config = ARTPEC6_CONFIG_2 ,
@@ -457,8 +487,9 @@ static const char * const gpiogrps[] = {
457487 "cpuclkoutgrp0" , "udlclkoutgrp0" , "i2c1grp0" , "i2c2grp0" ,
458488 "i2c3grp0" , "i2s0grp0" , "i2s1grp0" , "i2srefclkgrp0" ,
459489 "spi0grp0" , "spi1grp0" , "pciedebuggrp0" , "uart0grp0" ,
460- "uart0grp1" , "uart1grp0" , "uart2grp0" , "uart2grp1" ,
461- "uart4grp0" , "uart5grp0" ,
490+ "uart0grp1" , "uart0grp2" , "uart1grp0" , "uart1grp1" ,
491+ "uart2grp0" , "uart2grp1" , "uart2grp2" , "uart4grp0" , "uart5grp0" ,
492+ "uart5grp1" , "uart5nocts" ,
462493};
463494static const char * const cpuclkoutgrps [] = { "cpuclkoutgrp0" };
464495static const char * const udlclkoutgrps [] = { "udlclkoutgrp0" };
@@ -471,12 +502,15 @@ static const char * const i2srefclkgrps[] = { "i2srefclkgrp0" };
471502static const char * const spi0grps [] = { "spi0grp0" };
472503static const char * const spi1grps [] = { "spi1grp0" };
473504static const char * const pciedebuggrps [] = { "pciedebuggrp0" };
474- static const char * const uart0grps [] = { "uart0grp0" , "uart0grp1" };
475- static const char * const uart1grps [] = { "uart1grp0" };
476- static const char * const uart2grps [] = { "uart2grp0" , "uart2grp1" };
505+ static const char * const uart0grps [] = { "uart0grp0" , "uart0grp1" ,
506+ "uart0grp2" };
507+ static const char * const uart1grps [] = { "uart1grp0" , "uart1grp1" };
508+ static const char * const uart2grps [] = { "uart2grp0" , "uart2grp1" ,
509+ "uart2grp2" };
477510static const char * const uart3grps [] = { "uart3grp0" };
478- static const char * const uart4grps [] = { "uart4grp0" };
479- static const char * const uart5grps [] = { "uart5grp0" , "uart5nocts" };
511+ static const char * const uart4grps [] = { "uart4grp0" , "uart4grp1" };
512+ static const char * const uart5grps [] = { "uart5grp0" , "uart5grp1" ,
513+ "uart5nocts" };
480514static const char * const nandgrps [] = { "nandgrp0" };
481515static const char * const sdio0grps [] = { "sdio0grp0" };
482516static const char * const sdio1grps [] = { "sdio1grp0" };
@@ -601,7 +635,7 @@ static int artpec6_pmx_get_functions_count(struct pinctrl_dev *pctldev)
601635}
602636
603637static const char * artpec6_pmx_get_fname (struct pinctrl_dev * pctldev ,
604- unsigned int function )
638+ unsigned int function )
605639{
606640 return artpec6_pmx_functions [function ].name ;
607641}
0 commit comments