milanf: dts: stylus bu520xx bringup

- bringup stylus rohm bu52055 hall sensor;
- changes interrupt pin to gpio84;

Change-Id: I889c80009a7ec9b9ab3153c7b050afbedd66add9
Signed-off-by: huangjq9 <huangjq9@motorola.com>
Reviewed-on: https://gerrit.mot.com/2051945
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhihong Kang <kangzh@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
huangjq9 2021-08-26 17:25:50 +08:00 • committed by panyq6
commit abd2bba1c5
2 changed files with 52 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#include "milanf-fps-overlay.dtsi"
#include "milanf-display.dtsi"
#include "milanf-touchscreen.dtsi"
#include "milanf-sensors.dtsi"
#include "camera/blair-camera-sensor-mot-milanf-overlay.dtsi"
#include "milanf-wl286xx.dtsi"

51
qcom/milanf-sensors.dtsi Executable file
View file

@ -0,0 +1,51 @@
/*
* Copyright (c) 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.
*/
&tlmm {
pen_int_default: pen_int_default {
mux {
pins = "gpio84";
function = "gpio";
};
config {
pins = "gpio84";
num-grp-pins = <1>;
drive-strength = <2>;
bias-no-pull;
};
};
pen_int_sleep: pen_int_sleep {
mux {
pins = "gpio84";
function = "gpio";
};
config {
pins = "gpio84";
num-grp-pins = <1>;
drive-strength = <2>;
bias-no-pull;
};
};
};
&soc {
pen_detect{
compatible = "rohm,bu520xx_pen_detect";
pinctrl-names = "default","sleep";
pinctrl-0 = <&pen_int_default>;
pinctrl-1 = <&pen_int_sleep>;
rohm,nirq-gpio=<&tlmm 84 0x02>;
};
};