Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: aspeed: zaius: Add gpio line names

Name the GPIOs to help userspace work with them. The names describe the
functionality the lines provide, not the net or ball name. This makes it
easier to share userspace code across different systems and makes the
use of the lines more obvious.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Andrew Geissler and committed by
Joel Stanley
fa09a28c 1f2c9d31

+33 -4
+33 -4
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
··· 478 478 pinctrl-names = "default"; 479 479 pinctrl-0 = <&pinctrl_gpioh_unbiased>; 480 480 481 + gpio-line-names = 482 + /*A0-A7*/ "","cfam-reset","","","","","","", 483 + /*B0-B7*/ "","","","","","","","", 484 + /*C0-C7*/ "","","","","","","","", 485 + /*D0-D7*/ "fsi-enable","","","","","led-sys-boot-status","led-attention", 486 + "led-fault", 487 + /*E0-E7*/ "","","","","","","","presence-pcie-e2b", 488 + /*F0-F7*/ "","","","","","","","checkstop", 489 + /*G0-G7*/ "fsi-clock","fsi-data","","","","","","", 490 + /*H0-H7*/ "onewire0","onewire1","onewire2","onewire3","","","","", 491 + /*I0-I7*/ "","","","power-button","","","","", 492 + /*J0-J7*/ "","","","","","","","", 493 + /*K0-K7*/ "","","","","","","","", 494 + /*L0-L7*/ "","","","","","","","", 495 + /*M0-M7*/ "","","","","","","","", 496 + /*N0-N7*/ "","","","","","","","", 497 + /*O0-O7*/ "","","","","iso_u164_en","","fsi-trans","", 498 + /*P0-P7*/ "ncsi_mux_en_n","bmc_i2c2_sw_rst_n","","bmc_i2c5_sw_rst_n","", 499 + "","fsi-mux","", 500 + /*Q0-Q7*/ "","","","","","","","", 501 + /*R0-R7*/ "","","","","","","","", 502 + /*S0-S7*/ "","","","","","","","", 503 + /*T0-T7*/ "","","","","","","","", 504 + /*U0-U7*/ "","","","","","","","", 505 + /*V0-V7*/ "","","","","","","","", 506 + /*W0-W7*/ "","","","","","","","", 507 + /*X0-X7*/ "","","","","","","","", 508 + /*Y0-Y7*/ "","","","","","","","", 509 + /*Z0-Z7*/ "","","","","","","","", 510 + /*AA0-AA7*/ "","","led-hdd-fault","","","","","", 511 + /*AB0-AB7*/ "","","","","","","","", 512 + /*AC0-AC7*/ "","","","","","","",""; 513 + 481 514 line_iso_u146_en { 482 515 gpio-hog; 483 516 gpios = <ASPEED_GPIO(O, 4) GPIO_ACTIVE_HIGH>; 484 517 output-high; 485 - line-name = "iso_u164_en"; 486 518 }; 487 519 488 520 ncsi_mux_en_n { 489 521 gpio-hog; 490 522 gpios = <ASPEED_GPIO(P, 0) GPIO_ACTIVE_HIGH>; 491 523 output-low; 492 - line-name = "ncsi_mux_en_n"; 493 524 }; 494 525 495 526 line_bmc_i2c2_sw_rst_n { 496 527 gpio-hog; 497 528 gpios = <ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>; 498 529 output-high; 499 - line-name = "bmc_i2c2_sw_rst_n"; 500 530 }; 501 531 502 532 line_bmc_i2c5_sw_rst_n { 503 533 gpio-hog; 504 534 gpios = <ASPEED_GPIO(P, 3) GPIO_ACTIVE_HIGH>; 505 535 output-high; 506 - line-name = "bmc_i2c5_sw_rst_n"; 507 536 }; 508 537 }; 509 538