nctgpio: change default pin names to those used by the datasheet(s)

That is, instead of the current GPIO00 - GPIO15 the names will be GPIO00
- GPIO07, GPIO10 - GPIO17.  The first digit is a GPIO "bank" / group
number and the second one is a pin number within the bank.  Alternative
view is that the pin names are changed from decimal numbering scheme to
octal one (as there are 8 pins per bank).

Discussed with:	cem, gonzo
MFC after:	2 weeks
This commit is contained in:
Andriy Gapon 2019-07-01 15:43:48 +00:00
parent 9aba06377d
commit 0222625608
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349579

View File

@ -529,7 +529,7 @@ nct_attach(device_t dev)
pin->gp_caps = NCT_GPIO_CAPS;
pin->gp_flags = 0;
snprintf(pin->gp_name, GPIOMAXNAME, "GPIO%02u", i);
snprintf(pin->gp_name, GPIOMAXNAME, "GPIO%02o", i);
pin->gp_name[GPIOMAXNAME - 1] = '\0';
if (nct_pin_is_input(sc, i))