Fixing S922X input

This commit is contained in:
brooksytech 2024-04-03 22:18:53 +00:00
parent 1d6a12e075
commit a6e7022753
No known key found for this signature in database

View file

@ -133,7 +133,7 @@ index 30c48311f165..595b2a76157e 100644
+ sw11 { + sw11 {
gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>; gpios = <&gpio GPIOX_10 GPIO_ACTIVE_LOW>;
+ label = "GPIO F2"; + label = "GPIO F2";
+ linux,code = <BTN_TRIGGER_HAPPY2>; // 0x2c2 + linux,code = <BTN_MODE>; // 0x2c2
}; };
- f3-button { - f3-button {
- label = "F3"; - label = "F3";
@ -157,7 +157,7 @@ index 30c48311f165..595b2a76157e 100644
+ sw14 { + sw14 {
gpios = <&gpio GPIOX_13 GPIO_ACTIVE_LOW>; gpios = <&gpio GPIOX_13 GPIO_ACTIVE_LOW>;
+ label = "GPIO F5"; + label = "GPIO F5";
+ linux,code = <BTN_TRIGGER_HAPPY5>; // 0x13c + linux,code = <BTN_C>; // 0x13c
}; };
- f6-button { - f6-button {
- label = "F6"; - label = "F6";
@ -191,12 +191,12 @@ index 30c48311f165..595b2a76157e 100644
+ sw17 { + sw17 {
+ gpios = <&gpio GPIOX_16 GPIO_ACTIVE_LOW>; + gpios = <&gpio GPIOX_16 GPIO_ACTIVE_LOW>;
+ label = "GPIO F6"; + label = "GPIO F6";
+ linux,code = <BTN_TRIGGER_HAPPY6>; + linux,code = <BTN_START>;
+ }; + };
+ sw18 { + sw18 {
+ gpios = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>; + gpios = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>;
+ label = "GPIO F1"; + label = "GPIO F1";
+ linux,code = <BTN_TRIGGER_HAPPY1>; + linux,code = <BTN_SELECT>;
+ }; + };
+ sw19 { + sw19 {
gpios = <&gpio GPIOX_18 GPIO_ACTIVE_LOW>; gpios = <&gpio GPIOX_18 GPIO_ACTIVE_LOW>;