[PATCH dev-5.1] ARM: dts: aspeed: fp5280g2: Fix gpio-keys key code

John Wang wangzqbj at inspur.com
Mon Jun 17 18:59:33 AEST 2019


KEY_RESERVED is defined as 0 and is not supposed
to be transmitted to userspace,so the key code in fan0-presence
should not be 0.
This changes fan-presence's key codes 0-7 to 1-8.

Signed-off-by: John Wang <wangzqbj at inspur.com>
---
 arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts b/arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts
index c822f49..c762c02 100644
--- a/arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-inspur-fp5280g2.dts
@@ -101,49 +101,49 @@
 		fan0-presence {
 			label = "fan0-presence";
 			gpios = <&pca1 0 GPIO_ACTIVE_LOW>;
-			linux,code = <0>;
+			linux,code = <1>;
 		};
 
 		fan1-presence {
 			label = "fan1-presence";
 			gpios = <&pca1 1 GPIO_ACTIVE_LOW>;
-			linux,code = <1>;
+			linux,code = <2>;
 		};
 
 		fan2-presence {
 			label = "fan2-presence";
 			gpios = <&pca1 2 GPIO_ACTIVE_LOW>;
-			linux,code = <2>;
+			linux,code = <3>;
 		};
 
 		fan3-presence {
 			label = "fan3-presence";
 			gpios = <&pca1 3 GPIO_ACTIVE_LOW>;
-			linux,code = <3>;
+			linux,code = <4>;
 		};
 
 		fan4-presence {
 			label = "fan4-presence";
 			gpios = <&pca1 4 GPIO_ACTIVE_LOW>;
-			linux,code = <4>;
+			linux,code = <5>;
 		};
 
 		fan5-presence {
 			label = "fan5-presence";
 			gpios = <&pca1 5 GPIO_ACTIVE_LOW>;
-			linux,code = <5>;
+			linux,code = <6>;
 		};
 
 		fan6-presence {
 			label = "fan6-presence";
 			gpios = <&pca1 6 GPIO_ACTIVE_LOW>;
-			linux,code = <6>;
+			linux,code = <7>;
 		};
 
 		fan7-presence {
 			label = "fan7-presence";
 			gpios = <&pca1 7 GPIO_ACTIVE_LOW>;
-			linux,code = <7>;
+			linux,code = <8>;
 		};
 	};
 
-- 
2.7.4



More information about the openbmc mailing list