Commit 63250b42 authored by Mis012's avatar Mis012

sm-a300fu: add gpio-keys to dts

parent cee652fe
......@@ -72,6 +72,20 @@
};
};
gpio_keys_default: gpio-keys-default {
pinmux {
function = "gpio";
pins = "gpio107", "gpio109";
};
pinconf {
pins = "gpio107", "gpio109";
drive-strength = <2>;
bias-pull-up;
};
};
usb_id_default: usb-id-default {
pinmux {
function = "gpio";
......
......@@ -61,6 +61,29 @@
pinctrl-1 = <&blsp1_uart2_sleep>;
};
gpio-keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_default>;
volume-up {
label = "volume_up";
gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_VOLUMEUP>;
};
volume-down {
label = "home_key";
gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
linux,input-type = <1>;
linux,code = <KEY_HOMEPAGE>;
};
};
[email protected] {
vmmc-supply = <&pm8916_l8>;
vqmmc-supply = <&pm8916_l5>;
......
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