Files
kernel_oneplus_8750-devicet…/oplus/erhai_overlay_common.dtsi
LuK1337 381413bfc9 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
2025-10-14 16:28:31 +02:00

178 lines
3.0 KiB
Plaintext

&pmk8550_vadc {
pm8550_gpio02_therm {
reg = <PM8550_ADC5_GEN3_AMUX_THM6_GPIO2_100K_PU>;
label = "pm8550_gpio02_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
qcom,adc-tm-type = <1>;
};
};
&thermal_zones {
pm8550_gpio02_usr {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM6_GPIO2_100K_PU>;
trips {
active-config0 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
};
&pm8550_flash0 {
qcom,ires-ua = <5000>;
};
&pm8550_flash1 {
qcom,ires-ua = <5000>;
};
&pm8550_flash2 {
qcom,ires-ua = <5000>;
};
&pm8550_flash3 {
qcom,ires-ua = <5000>;
};
&pm8550_torch0 {
qcom,ires-ua = <5000>;
};
&pm8550_torch1 {
qcom,ires-ua = <5000>;
};
&pm8550_torch2 {
qcom,ires-ua = <5000>;
};
&pm8550_torch3 {
qcom,ires-ua = <5000>;
};
&L11B {
/delete-property/ qcom,proxy-consumer-enable;
};
&pmk8550_gpios {
/delete-property/ pinctrl-0;
/delete-property/ pinctrl-names;
/delete-node/ alt_sleep_clk;
};
&L12B {
regulator-name = "pm_humu_l12";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1900000>;
qcom,init-voltage = <1900000>;
/delete-property/ qcom,proxy-consumer-enable;
};
&tlmm {
//#ifdef OPLUS_FEATURE_RF_CABLE_DETECT
rf_cable0_active: rf_cable0_active {
mux {
pins = "gpio47";
function = "gpio";
};
config {
pins = "gpio47";
drive-strength = <2>;
input-enable;
bias-pull-up;
};
};
//#endif /* OPLUS_FEATURE_RF_CABLE_DETECT */
};
&soc {
devinfo_erhai {
compatible = "oplus-devinfo";
without-hw-match;
};
};
&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";
interrupt-parent = <&tlmm>;
rf_cable_support_num = <1>;
rf,cable0-gpio = <&tlmm 47 0>;
rf,cable-support-timer = <0>;
pinctrl-names = "rf_cable_active";
pinctrl-0 = <&rf_cable0_active>;
};
//#endif /* OPLUS_FEATURE_RF_CABLE_DETECT */
ram@c3f0000 {
compatible = "qcom,rpmh-stats-v4";
reg = <0x0c3f0000 0x400>;
qcom,qmp = <&aoss_qmp>;
ss-name = "adsp", "adsp_island",
"cdsp", "apss";
};
//#ifdef OPLUS_FEATURE_THERMAL_HORAE
shell_front {
compatible = "oplus,shell-temp";
};
shell_frame {
compatible = "oplus,shell-temp";
};
shell_back {
compatible = "oplus,shell-temp";
};
//#endif /* OPLUS_FEATURE_THERMAL_HORAE */
//#ifdef CONFIG_HMBIRD_SCHED
oplus,hmbird {
version_type {
type = "HMBIRD_GKI";
};
};
//#endif /* CONFIG_HMBIRD_SCHED */
};
&modem_pas {
status = "no";
};
&dsm_partition_1_mem {
status = "disabled";
};
&dsm_partition_2_mem{
status = "disabled";
};
&mpss_mem{
status = "disabled";
};
&qdss_apps_mem {
status = "disabled";
};
&adspslpi_mem {
reg = <0x0 0x9ee00000 0x0 0x5080000>;
};