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:
LuK1337
2025-10-14 16:15:39 +02:00
parent e04c70fb91
commit 381413bfc9

View File

@@ -100,6 +100,19 @@
}; };
&soc { &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 //#ifdef OPLUS_FEATURE_RF_CABLE_DETECT
oplus_rf_cable { oplus_rf_cable {
compatible = "oplus,rf_cable"; compatible = "oplus,rf_cable";