mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
denver: dts: stylus bu520xx bringup
- bringup stylus rohm bu520xx hall sensor; - changes interrupt pin to gpio84; Change-Id: I11dfbd5848a10030ef79a481c47b5f80aceb98cd Signed-off-by: huangjq9 <huangjq9@motorola.com> Reviewed-on: https://gerrit.mot.com/1778524 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng <wengjun1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c2f0de91f0
commit
7816977859
2 changed files with 52 additions and 0 deletions
51
qcom/denver-sensors.dtsi
Executable file
51
qcom/denver-sensors.dtsi
Executable 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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
#include "holi-moto-common-overlay.dtsi"
|
||||
#include "denver-display.dtsi"
|
||||
#include "denver-touchscreen.dtsi"
|
||||
#include "denver-sensors.dtsi"
|
||||
#include "camera/holi-camera-sensor-mot-denver-overlay.dtsi"
|
||||
#include "holi-audio-wcd9370-aw882xx-overlay.dtsi"
|
||||
#include "holi-denver-fmr-overlay.dtsi"
|
||||
|
|
|
|||
Loading…
Reference in a new issue