Commit f25f586c authored by Mis012's avatar Mis012

sm-a300fu: add an entry for hall sensor to the device tree

parent 9436957f
......@@ -86,6 +86,19 @@
};
};
hall_gpio_default: hall-gpio-default {
pinmux {
function = "gpio";
pins = "gpio52";
};
pinconf {
pins = "gpio52";
drive-strength = <2>;
bias-disable;
};
};
usb_id_default: usb-id-default {
pinmux {
function = "gpio";
......
......@@ -98,7 +98,22 @@
linux,code = <KEY_HOMEPAGE>;
};
};
hall-gpio {
compatible = "gpio-keys";
input-name = "hall-sensor";
pinctrl-names = "default";
pinctrl-0 = <&hall_gpio_default>;
hall-sensor {
label = "hall_sensor";
gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>;
linux,input-type = <5>;
linux,code = <SW_LID>;
};
};
[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