Add TFT bonnet keys & joystick to the device tree

This commit is contained in:
Peter Frost 2021-03-13 22:40:48 +00:00 committed by GitHub
parent f8564631a4
commit ca58673271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,51 @@
};
};
};
fragment@3 {
target-path = "/";
__overlay__ {
keypad: tft_bonnet_keys {
compatible = "gpio-keys";
button@17 {
label = "Controller Up";
linux,code = <103>;
gpios = <&gpio 17 1>;
};
button@22 {
label = "Controller Down";
linux,code = <108>;
gpios = <&gpio 22 1>;
};
button@27 {
label = "Controller Left";
linux,code = <105>;
gpios = <&gpio 27 1>;
};
button@23 {
label = "Controller Right";
linux,code = <106>;
gpios = <&gpio 23 1>;
};
button@4 {
label = "Controller Center";
linux,code = <28>;
gpios = <&gpio 4 1>;
};
button@5 {
label = "Controller B";
linux,code = <48>;
gpios = <&gpio 5 1>;
};
button@6 {
label = "Controller A";
linux,code = <30>;
gpios = <&gpio 6 1>;
};
};
};
};
__overrides__ {
speed = <&pitft>,"spi-max-frequency:0";