ARM: dts: aspeed: rainier: Add gpio-keys-polled for fans
Subsystems (2)
PATCH 1/1 ARM: dts: aspeed: rainier: Add gpio-keys-polled for fans
Add a gpio-keys-polled section for the fan presence signals from the PCA9552 on i2c bus 7.
Signed-off-by Matthew Barth <[email protected]>
--- arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+)
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts +43 -0
@@ -96,6 +96,49 @@ ps3-presence { }; }; + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <1000>; + + fan0-presence { + label = "fan0-presence"; + gpios = <&pca0 6 GPIO_ACTIVE_LOW>; + linux,code = <6>; + }; + + fan1-presence { + label = "fan1-presence"; + gpios = <&pca0 7 GPIO_ACTIVE_LOW>; + linux,code = <7>; + }; + + fan2-presence { + label = "fan2-presence"; + gpios = <&pca0 8 GPIO_ACTIVE_LOW>; + linux,code = <8>; + }; + + fan3-presence { + label = "fan3-presence"; + gpios = <&pca0 9 GPIO_ACTIVE_LOW>; + linux,code = <9>; + }; + + fan4-presence { + label = "fan4-presence"; + gpios = <&pca0 10 GPIO_ACTIVE_LOW>; + linux,code = <10>; + }; + + fan5-presence { + label = "fan5-presence"; + gpios = <&pca0 11 GPIO_ACTIVE_LOW>; + linux,code = <11>; + }; + }; + i2c2mux: i2cmux { compatible = "i2c-mux-gpio"; #address-cells = <1>;
Signature · 1 line
2.28.0
Quoted 2 lines · Matthew Barth
Add a gpio-keys-polled section for the fan presence signals from the PCA9552 on i2c bus 7.
Reviewed-by Brandon Wyman <[email protected]>
Quoted 59 lines
Signed-off-by Matthew Barth <[email protected]>--- arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+)arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts +43
-0@@ -96,6 +96,49 @@ ps3-presence { }; }; + gpio-keys-polled { + compatible = "gpio-keys-polled"; + #address-cells = <1>; + #size-cells = <0>; + poll-interval = <1000>; + + fan0-presence { + label = "fan0-presence"; + gpios = <&pca0 6 GPIO_ACTIVE_LOW>; + linux,code = <6>; + }; + + fan1-presence { + label = "fan1-presence"; + gpios = <&pca0 7 GPIO_ACTIVE_LOW>; + linux,code = <7>; + }; + + fan2-presence { + label = "fan2-presence"; + gpios = <&pca0 8 GPIO_ACTIVE_LOW>; + linux,code = <8>; + }; + + fan3-presence { + label = "fan3-presence"; + gpios = <&pca0 9 GPIO_ACTIVE_LOW>; + linux,code = <9>; + }; + + fan4-presence { + label = "fan4-presence"; + gpios = <&pca0 10 GPIO_ACTIVE_LOW>; + linux,code = <10>; + }; + + fan5-presence { + label = "fan5-presence"; + gpios = <&pca0 11 GPIO_ACTIVE_LOW>; + linux,code = <11>; + }; + }; + i2c2mux: i2cmux { compatible = "i2c-mux-gpio"; #address-cells = <1>;