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

ARM: dts: aspeed: romulus: 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>
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Andrew Geissler and committed by
Joel Stanley
1f2c9d31 d5ece55c

+32 -3
+32 -3
arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
··· 231 231 }; 232 232 233 233 &gpio { 234 + gpio-line-names = 235 + /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","", 236 + /*B0-B7*/ "","","","","","","","", 237 + /*C0-C7*/ "","","","","","","","", 238 + /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","", 239 + /*E0-E7*/ "","","","","","","","", 240 + /*F0-F7*/ "","","","","","","","", 241 + /*G0-G7*/ "","","","","","","","", 242 + /*H0-H7*/ "","","","","","","","", 243 + /*I0-I7*/ "","","","power-button","","","","", 244 + /*J0-J7*/ "","","checkstop","","","","","", 245 + /*K0-K7*/ "","","","","","","","", 246 + /*L0-L7*/ "","","","","","","","", 247 + /*M0-M7*/ "","","","","","","","", 248 + /*N0-N7*/ "","","led-fault","", 249 + "led-identify","","","", 250 + /*O0-O7*/ "","","","","","","","", 251 + /*P0-P7*/ "","","","","","","","", 252 + /*Q0-Q7*/ "","","","","","","","id-button", 253 + /*R0-R7*/ "","","fsi-trans","","","led-power","","", 254 + /*S0-S7*/ "","","","","","","","seq_cont", 255 + /*T0-T7*/ "","","","","","","","", 256 + /*U0-U7*/ "","","","","","","","", 257 + /*V0-V7*/ "","","","","","","","", 258 + /*W0-W7*/ "","","","","","","","", 259 + /*X0-X7*/ "","","","","","","","", 260 + /*Y0-Y7*/ "","","","","","","","", 261 + /*Z0-Z7*/ "","","","","","","","", 262 + /*AA0-AA7*/ "fsi-clock","","fsi-data","","","","","", 263 + /*AB0-AB7*/ "","","","","","","","", 264 + /*AC0-AC7*/ "","","","","","","",""; 265 + 234 266 nic_func_mode0 { 235 267 gpio-hog; 236 268 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>; 237 269 output-low; 238 - line-name = "nic_func_mode0"; 239 270 }; 240 271 nic_func_mode1 { 241 272 gpio-hog; 242 273 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>; 243 274 output-low; 244 - line-name = "nic_func_mode1"; 245 275 }; 246 276 seq_cont { 247 277 gpio-hog; 248 278 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>; 249 279 output-low; 250 - line-name = "seq_cont"; 251 280 }; 252 281 }; 253 282