You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
970 B
37 lines
970 B
/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
&soc {
|
|
hall {
|
|
status = "okay";
|
|
compatible = "hall";
|
|
linux,input-type = <1>;
|
|
linux,code = <21>;
|
|
hall,gpio_flip_cover = <&pm6150_gpios 10 0x1>;
|
|
debounce-interval = <15>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hall_default>;
|
|
};
|
|
};
|
|
|
|
&pm6150_gpios {
|
|
hall {
|
|
hall_default: hall_default {
|
|
pins = "gpio10";
|
|
function = "normal";
|
|
output-disable;
|
|
input-enable;
|
|
bias-disable;
|
|
power-source = <0>;
|
|
};
|
|
};
|
|
};
|
|
|