Commit b42bb275 authored by Guido Gunther's avatar Guido Gunther
Browse files

arm64: dts: librem5: Don't use kill switches as keys

Using them as keys has several problems:

- the pressed state can trigger auto repeat in other parts of the stack
- userspace expects the switches to mean 'toggle' not 'indicate'. So
  flipping e.g. the wifi killswitch toggles airplane mode although it
  should indicate: hks engaged.
parent a2caa72f
......@@ -42,13 +42,6 @@ gpio-keys {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_keys>, <&pinctrl_hsw>;
camera {
label = "CAMERA";
gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_CAMERA>;
wakeup-source;
};
vol-down {
label = "VOL_DOWN";
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
......@@ -62,27 +55,6 @@ vol-up {
linux,code = <KEY_VOLUMEUP>;
wakeup-source;
};
wlan {
label = "WLAN";
gpios = <&gpio4 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WLAN>;
wakeup-source;
};
wwan {
label = "WWAN";
gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WWAN>;
wakeup-source;
};
wwan-wake {
label = "WWAN_WAKE";
gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
linux,code = <KEY_PHONE>;
wakeup-source;
};
};
pwmleds {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment