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

ARM: dts: aspeed: tacoma: Add gpio-key definitions

Add gpio-keys for various signals on Tacoma.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Acked-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Eddie James and committed by
Joel Stanley
d0ba4f58 3ad7e458

+59
+59
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
··· 89 89 linux,code = <7>; 90 90 }; 91 91 }; 92 + 93 + gpio-keys { 94 + compatible = "gpio-keys"; 95 + 96 + air-water { 97 + label = "air-water"; 98 + gpios = <&gpio0 ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>; 99 + linux,code = <ASPEED_GPIO(Q, 7)>; 100 + }; 101 + 102 + checkstop { 103 + label = "checkstop"; 104 + gpios = <&gpio0 ASPEED_GPIO(E, 3) GPIO_ACTIVE_LOW>; 105 + linux,code = <ASPEED_GPIO(E, 3)>; 106 + }; 107 + 108 + ps0-presence { 109 + label = "ps0-presence"; 110 + gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>; 111 + linux,code = <ASPEED_GPIO(H, 3)>; 112 + }; 113 + 114 + ps1-presence { 115 + label = "ps1-presence"; 116 + gpios = <&gpio0 ASPEED_GPIO(E, 5) GPIO_ACTIVE_LOW>; 117 + linux,code = <ASPEED_GPIO(E, 5)>; 118 + }; 119 + }; 120 + 121 + gpio-keys-polled { 122 + compatible = "gpio-keys-polled"; 123 + #address-cells = <1>; 124 + #size-cells = <0>; 125 + poll-interval = <1000>; 126 + 127 + fan0-presence { 128 + label = "fan0-presence"; 129 + gpios = <&pca0 4 GPIO_ACTIVE_LOW>; 130 + linux,code = <4>; 131 + }; 132 + 133 + fan1-presence { 134 + label = "fan1-presence"; 135 + gpios = <&pca0 5 GPIO_ACTIVE_LOW>; 136 + linux,code = <5>; 137 + }; 138 + 139 + fan2-presence { 140 + label = "fan2-presence"; 141 + gpios = <&pca0 6 GPIO_ACTIVE_LOW>; 142 + linux,code = <6>; 143 + }; 144 + 145 + fan3-presence { 146 + label = "fan3-presence"; 147 + gpios = <&pca0 7 GPIO_ACTIVE_LOW>; 148 + linux,code = <7>; 149 + }; 150 + }; 92 151 }; 93 152 94 153 &fmc {