oplus: Configure erhai GPIO lid switch
Inspired by OnePlus SDM845 configuration, the GPIO number comes from the
following sensor config:
"bu52053nvx_0_platform":{
"owner": "sns_bu52053nvx",
".config":{
"owner": "sns_bu52053nvx",
"dri_irq_num":{ "type": "int", "ver": "0",
"data": "97"
},
Change-Id: I7db5e50b0e633faaf06fb417303adc7b974551b3
This commit is contained in:
@@ -100,6 +100,19 @@
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
lid {
|
||||
label = "lid";
|
||||
gpios = <&tlmm 97 1>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <97 0x0>;
|
||||
linux,input-type = <EV_SW>;
|
||||
linux,code = <0>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
};
|
||||
};
|
||||
|
||||
//#ifdef OPLUS_FEATURE_RF_CABLE_DETECT
|
||||
oplus_rf_cable {
|
||||
compatible = "oplus,rf_cable";
|
||||
|
||||
Reference in New Issue
Block a user