devicetree: Update from OOS 13.1.0.590(EX01)

This commit is contained in:
Bruno Martins
2023-09-14 11:21:15 +01:00
parent f995d08f27
commit 271a3a5716
17 changed files with 5165 additions and 2924 deletions

View File

@@ -1,7 +1,13 @@
KALAMA_BASE_DTB += ../qcom/kalama.dtb ../qcom/kalama-v2.dtb
KALAMA_APQ_BASE_DTB += ../qcom/kalamap.dtb ../qcom/kalamap-v2.dtb
OPLUS_KALAMA_BOARDS += wukong-21131-kalama-overlay.dtbo salami-22811-kalama-overlay.dtbo salami-22811-kalama-overlay-EVB.dtbo salami-22811-kalama-overlay-T0.dtbo wukong-21131-kalama-overlay-EVB.dtbo
OPLUS_KALAMA_BOARDS += \
wukong-21131-kalama-overlay.dtbo \
wukong-21131-kalama-overlay-EVB.dtbo \
salami-22811-kalama-overlay.dtbo \
salami-22811-kalama-overlay-EVB.dtbo \
salami-22811-kalama-overlay-T0.dtbo \
xueying-22003-kalama-overlay.dtbo
kalama-overlays-dtb-y += $(OPLUS_KALAMA_BOARDS) $(KALAMA_BASE_DTB) $(KALAMA_APQ_BASE_DTB)
dtb-y += $(OPLUS_KALAMA_BOARDS) $(KALAMA_BASE_DTB) $(KALAMA_APQ_BASE_DTB)

View File

@@ -0,0 +1,129 @@
#include <dt-bindings/clock/qcom,rpmh.h>
&soc {
//add for nfc_chipset
nfc_chipset {
compatible = "oplus-nfc-chipset";
chipset-22003 = "SN220T";//china
chipset-22899 = "SN220U";//oversea
chipset-22203 = "SN220U";//oversea
};
};
&tlmm {
nfc {
nfc_int_active: nfc_int_active {
/* active state */
mux {
/* GPIO 155 NFC Read Interrupt */
pins = "gpio155";
function = "gpio";
};
config {
pins = "gpio155";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
};
nfc_int_suspend: nfc_int_suspend {
/* sleep state */
mux {
/* GPIO 155 NFC Read Interrupt */
pins = "gpio155";
function = "gpio";
};
config {
pins = "gpio155";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
};
nfc_enable_active: nfc_enable_active {
mux {
pins = "gpio30";
function = "gpio";
};
config {
pins = "gpio30";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
};
nfc_enable_suspend: nfc_enable_suspend {
mux {
pins = "gpio30";
function = "gpio";
};
config {
pins = "gpio30";
drive-strength = <2>; /* 2 MA */
bias-disable;
};
};
nfc_clk_req_active: nfc_clk_req_active {
/* active state */
mux {
/* GPIO 31: NFC CLOCK REQUEST */
pins = "gpio31";
function = "gpio";
};
config {
pins = "gpio31";
drive-strength = <2>; /* 2 MA */
bias-pull-up;
};
};
nfc_clk_req_suspend: nfc_clk_req_suspend {
/* sleep state */
mux {
/* GPIO 31: NFC CLOCK REQUEST */
pins = "gpio31";
function = "gpio";
};
config {
pins = "gpio31";
drive-strength = <2>; /* 2 MA */
bias-disable;
};
};
};
};
&qupv3_se0_i2c {
status = "ok";
qcom,clk-freq-out = <400000>;
#address-cells = <1>;
#size-cells = <0>;
nq@28 {
compatible = "qcom,sn-nci";
reg = <0x28>;
qcom,sn-irq = <&tlmm 155 0x00>;
qcom,sn-ven = <&tlmm 30 0x00>;
qcom,sn-clkreq = <&tlmm 31 0x00>;
qcom,sn-vdd-1p8-supply = <&L15B>;
qcom,sn-vdd-1p8-voltage = <1760000 1800000>;
qcom,sn-vdd-1p8-current = <157000>;
interrupt-parent = <&tlmm>;
interrupts = <155 0>;
interrupt-names = "nfc_irq";
pinctrl-names = "nfc_active", "nfc_suspend";
pinctrl-0 = <&nfc_int_active &nfc_enable_active
&nfc_clk_req_active >;
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend
&nfc_clk_req_suspend >;
};
};

File diff suppressed because it is too large Load Diff

View File

@@ -13,8 +13,10 @@
};
&pm8550b_eusb2_repeater {
qcom,param-override-seq = <0x0e 0x51 0x06 0x53 0x06 0x54 0x06 0x57>;
qcom,param-override-seq-host = <0x0e 0x51 0x06 0x53 0x06 0x54 0x06 0x57>;
qcom,param-override-seq = <0x0 0x50 0x09 0x51 0x06 0x53 0x06 0x54 0x01 0x55 0x0 0x56
0x05 0x57 0x2 0x58 0x3 0x59 0x1 0x5a 0x2 0x5b>;
qcom,param-override-seq-host = <0x0 0x50 0x08 0x51 0x06 0x53 0x06 0x54 0x01 0x55 0x0 0x56
0x05 0x57 0x2 0x58 0x3 0x59 0x1 0x5a 0x2 0x5b>;
};
&regulator_ocp_notifier {
@@ -35,6 +37,7 @@
qcom,cal-data-restore;
qcom,fifo-empty-threshold = <480>;
qcom,vibrator-type = <8151>;//sla0815
oplus,livetap_support;
};
&usb_qmp_dp_phy {
@@ -220,6 +223,19 @@
track,voocphy_type = <1>;
track,wired_max_power = <100000>;
track,wired_fast_chg_scheme = <0>;
track,wls_max_power = <50000>;
track,wls_bpp_chg_scheme = <0>;
track,wls_epp_chg_scheme = <0>;
track,wls_fast_chg_scheme = <0>;
};
};
&usb0 {
dwc3@a600000 {
compatible = "snps,dwc3";
maximum-speed = "super-speed";
dr_mode = "otg";
};
};
@@ -265,14 +281,15 @@
qcom,recharge-mv = <100>;
qcom,batt_capacity_mah = <5000>;/*typical capacity*/
//qcom,batt_capacity_mah = <4400>; /*rated capacity*/
qcom,removed_bat_decidegc = <390>; /*<-39C*/
qcom,cold_bat_decidegc = <100>; /*-10C~0C*/
qcom,temp_cold_vfloat_mv = <4465>;
qcom,temp_cold_vfloat_mv = <4460>;
qcom,temp_cold_fastchg_current_ma = <610>;
qcom,little_cold_bat_decidegc = <0>; /*0C~5C*/
qcom,temp_little_cold_vfloat_mv = <4465>;
qcom,temp_little_cold_vfloat_mv = <4460>;
qcom,temp_little_cold_fastchg_current_ma_high = <1100>;
qcom,temp_little_cold_fastchg_current_ma_low = <1100>;
qcom,temp_little_cold_fastchg_current_ma = <1100>;
@@ -282,7 +299,7 @@
qcom,qc_temp_little_cold_fastchg_current_ma_low = <1600>;
qcom,cool_bat_decidegc = <50>; /*5C~12C*/
qcom,temp_cool_vfloat_mv = <4465>;
qcom,temp_cool_vfloat_mv = <4460>;
qcom,temp_cool_fastchg_current_ma_high = <1100>;
qcom,temp_cool_fastchg_current_ma_low = <1100>;
qcom,pd_temp_cool_fastchg_current_ma_high = <2000>;
@@ -291,14 +308,14 @@
qcom,qc_temp_cool_fastchg_current_ma_low = <2000>;
qcom,little_cool_bat_decidegc = <120>; /*12C~16C*/
qcom,temp_little_cool_vfloat_mv = <4465>;
qcom,temp_little_cool_vfloat_mv = <4460>;
qcom,temp_little_cool_fastchg_current_ma = <1100>;
qcom,pd_temp_little_cool_fastchg_current_ma = <2000>;
qcom,qc_temp_little_cool_fastchg_current_ma = <2000>;
qcom,normal_bat_decidegc = <160>; /*16C~44C*/
qcom,temp_normal_fastchg_current_ma = <1100>;
qcom,temp_normal_vfloat_mv = <4465>;
qcom,temp_normal_vfloat_mv = <4460>;
qcom,pd_temp_normal_fastchg_current_ma = <2000>;
qcom,qc_temp_normal_fastchg_current_ma = <2000>;
@@ -326,13 +343,13 @@
qcom,charger_hv_thr = <11000>;
qcom,charger_recv_thr = <10500>;
qcom,vbatt_hv_thr = <4600>;
qcom,vfloat_step_mv = <8>;
qcom,vfloat_step_mv = <10>;
qcom,non_standard_vfloat_over_sw_limit = <3990>;
qcom,cold_vfloat_over_sw_limit = <4475>;
qcom,little_cold_vfloat_over_sw_limit = <4475>;
qcom,cool_vfloat_over_sw_limit = <4475>;
qcom,little_cool_vfloat_over_sw_limit = <4475>;
qcom,normal_vfloat_over_sw_limit = <4475>;
qcom,cold_vfloat_over_sw_limit = <4468>;
qcom,little_cold_vfloat_over_sw_limit = <4468>;
qcom,cool_vfloat_over_sw_limit = <4468>;
qcom,little_cool_vfloat_over_sw_limit = <4468>;
qcom,normal_vfloat_over_sw_limit = <4468>;
qcom,warm_vfloat_over_sw_limit = <4140>;
qcom,smart_chg_soh_support;
@@ -406,13 +423,13 @@
qcom,default_iterm_ma = <132>;
qcom,default_temp_normal_fastchg_current_ma = <1100>;
qcom,default_normal_vfloat_sw_limit = <4415>;
qcom,default_temp_normal_vfloat_mv = <4465>;
qcom,default_normal_vfloat_over_sw_limit = <4475>;
qcom,default_temp_normal_vfloat_mv = <4460>;
qcom,default_normal_vfloat_over_sw_limit = <4468>;
qcom,default_temp_little_cool_fastchg_current_ma = <1100>;
qcom,default_little_cool_vfloat_sw_limit = <4415>;
qcom,default_temp_little_cool_vfloat_mv = <4465>;
qcom,default_little_cool_vfloat_over_sw_limit = <4475>;
qcom,default_temp_little_cool_vfloat_mv = <4460>;
qcom,default_little_cool_vfloat_over_sw_limit = <4468>;
///qcom,offset_temp = <30>;
//for control:
@@ -681,7 +698,7 @@
pins = "gpio5";
function = "normal";
bias-disable;
power-source = <1>;
power-source = <0>;
output-high;
qcom,drive-strength = <3>;
};
@@ -689,7 +706,7 @@
pins = "gpio5";
function = "normal";
bias-disable;
power-source = <1>;
power-source = <0>;
output-low;
qcom,drive-strength = <3>;
};
@@ -831,6 +848,7 @@
oplus,support_fastchg;
oplus,support_epp_plus;
oplus,support_wls_and_tx_boost;
oplus,support_wls_chg_bcc;
oplus,wls_chg_fw = "IDT_P9415_45W";
oplus,ext_pwr_en-gpio = <&pm8550ve_f_gpios 7 0x00>;//ext pwr to reduce rx temp
@@ -849,6 +867,7 @@
oplus,wls-fast-chg-camera-on-curr-ma = <600>;
oplus,wls_power_mw = <50000>;
oplus,wls_phone_id = <0x0D>;
oplus,wls-bcc-fcc-to-icl-factor = <2>;
/*
* | temp_min | temp_max | target_curr_ma(mA) |
*
@@ -936,6 +955,15 @@
cool-down-airvooc = <0 400 400 950 950 950 950>;
cool-down-airsvooc = <0 400 950 750 750 1000 1250 1500 1500 2000 2000 2500 2500>;
/*
* | bcc_stop_curr |
* The three parameters of each array
* correspond to three temperature intervals: 0-5; 5-12; 12-44
*/
bcc_stop_curr_0_to_30 = <1000 1000 1300 1300 1300>;
bcc_stop_curr_30_to_70 = <1000 1000 1300 1300 1300>;
bcc_stop_curr_70_to_90 = <1000 1000 1300 1300 1300>;
/*
* | curr_ma | fallback_step | switch_to_bpp
* curr_ma: wls icl in this step
@@ -960,6 +988,7 @@
oplus,fastchg-match-q = /bits/ 8 <0x00 0x41
0x01 0x41
0x02 0x46
0x03 0x48
0x1f 0x46>;
/*oplus,fastchg-fod-parm = /bits/ 8 <0xac 0x32 0xac 0x28 0xa0 0x1e
0x9a 0x37 0x9a 0x32 0x9f 0xc4>;
@@ -990,28 +1019,28 @@
strategy_temp_0_to_50 = <0 440 1000 4184 1
0 440 750 4454 1
0 440 500 4460 0>;
strategy_temp_50_to_120 = <50 440 1250 4184 1
strategy_temp_50_to_120 = <50 395 1250 4184 1
50 440 1000 4454 1
50 440 750 4454 1
50 440 500 4460 0>;
strategy_temp_120_to_160 = <120 360 2500 4184 1
340 390 2000 4484 1
340 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_120_to_160 = <120 320 2500 4184 1
300 350 2000 4484 1
330 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
strategy_temp_160_to_400 = <120 360 2500 4184 1
340 390 2000 4454 1
340 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_160_to_400 = <120 320 2500 4184 1
300 350 2000 4454 1
330 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
strategy_temp_400_to_440 = <120 360 2500 4184 1
340 390 2000 4454 1
340 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_400_to_440 = <120 320 2500 4184 1
300 350 2000 4454 1
330 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
@@ -1023,21 +1052,21 @@
strategy_temp_50_to_120 = <50 440 1000 4454 1
50 440 750 4454 1
50 440 500 4460 0>;
strategy_temp_120_to_160 = <120 390 2000 4484 1
340 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_120_to_160 = <120 350 2000 4484 1
330 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
strategy_temp_160_to_400 = <120 390 2000 4484 1
340 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_160_to_400 = <120 350 2000 4484 1
330 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
strategy_temp_400_to_440 = <120 390 2000 4484 1
340 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_400_to_440 = <120 350 2000 4484 1
330 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
@@ -1046,23 +1075,82 @@
strategy_soc_70_to_90 {
strategy_temp_0_to_50 = <0 440 500 4460 0>;
strategy_temp_50_to_120 = <50 440 500 4460 0>;
strategy_temp_120_to_160 = <120 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_120_to_160 = <120 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
strategy_temp_160_to_400 = <120 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_160_to_400 = <120 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
strategy_temp_400_to_440 = <120 400 1500 4514 1
340 420 1250 4514 1
strategy_temp_400_to_440 = <120 380 1500 4514 1
340 395 1250 4514 1
360 440 1000 4514 1
420 440 750 4514 1
420 440 650 4520 0>;
};
};
/*
* | max_batt_volt | max_current | min_current | end
*
* max_batt_volt: Maximum battery voltage.
* max_current: The maximum current in this interval.
* min_current: The result obtained by subtracting 1A from the
* minimum current in this interval. Minimum not less than 1A.
* exit: Whether the curve ends or not.
*/
wireless_bcc_table {
bcc_soc_0_to_30 {
bcc_temp_0_to_50 = <4184 2000 1000 0
4454 1500 1000 0
4460 1000 1000 1>;
bcc_temp_50_to_120 = <4184 2500 1000 0
4454 2000 1000 0
4460 1000 1000 1>;
bcc_temp_120_to_160 = <4184 5000 3500 0
4484 4000 3000 0
4514 3000 1000 0
4520 1300 1000 1>;
bcc_temp_160_to_400 = <4184 5000 3500 0
4454 4000 3000 0
4514 3000 1000 0
4520 1300 1000 1>;
bcc_temp_400_to_440 = <4184 5000 3500 0
4454 4000 3000 0
4514 3000 1000 0
4520 1300 1000 1>;
};
bcc_soc_30_to_70 {
bcc_temp_0_to_50 = <4454 1500 1000 0
4460 1000 1000 1>;
bcc_temp_50_to_120 = <4454 2000 1000 0
4460 1000 1000 1>;
bcc_temp_120_to_160 = <4484 4000 3000 0
4514 3000 1000 0
4520 1300 1000 1>;
bcc_temp_160_to_400 = <4484 4000 3000 0
4514 3000 1000 0
4520 1300 1000 1>;
bcc_temp_400_to_440 = <4484 4000 3000 0
4514 3000 1000 0
4520 1300 1000 1>;
};
bcc_soc_70_to_90 {
bcc_temp_0_to_50 = <4460 1000 1000 1>;
bcc_temp_50_to_120 = <4460 1000 1000 1>;
bcc_temp_120_to_160 = <4514 3000 1000 0
4520 1300 1000 1>;
bcc_temp_160_to_400 = <4514 3000 1000 0
4520 1300 1000 1>;
bcc_temp_400_to_440 = <4514 3000 1000 0
4520 1300 1000 1>;
};
};
};
};

File diff suppressed because it is too large Load Diff

View File

@@ -10,9 +10,9 @@
};
&pm8550b_eusb2_repeater {
qcom,param-override-seq = <0x03 0x50 0x09 0x51 0x06 0x53 0x07 0x54
0x01 0x55 0x00 0x56 0x05 0x57>;
qcom,param-override-seq-host = <0x03 0x50 0x07 0x51 0x07 0x53 0x07 0x54
qcom,param-override-seq = <0x00 0x50 0x0C 0x51 0x06 0x53 0x04 0x54
0x02 0x55 0x00 0x56 0x06 0x57>;
qcom,param-override-seq-host = <0x03 0x50 0x05 0x51 0x07 0x53 0x07 0x54
0x01 0x55 0x00 0x56 0x05 0x57>;
};
@@ -279,11 +279,11 @@
//qcom,batt_capacity_mah = <4400>; /*rated capacity*/
qcom,removed_bat_decidegc = <390>; /*<-39C*/
qcom,cold_bat_decidegc = <100>; /*-10C~0C*/
qcom,temp_cold_vfloat_mv = <4465>;
qcom,temp_cold_vfloat_mv = <4460>;
qcom,temp_cold_fastchg_current_ma = <610>;
qcom,little_cold_bat_decidegc = <0>; /*0C~5C*/
qcom,temp_little_cold_vfloat_mv = <4465>;
qcom,temp_little_cold_vfloat_mv = <4460>;
qcom,temp_little_cold_fastchg_current_ma_high = <1100>;
qcom,temp_little_cold_fastchg_current_ma_low = <1100>;
qcom,temp_little_cold_fastchg_current_ma = <1100>;
@@ -293,7 +293,7 @@
qcom,qc_temp_little_cold_fastchg_current_ma_low = <1600>;
qcom,cool_bat_decidegc = <50>; /*5C~12C*/
qcom,temp_cool_vfloat_mv = <4465>;
qcom,temp_cool_vfloat_mv = <4460>;
qcom,temp_cool_fastchg_current_ma_high = <1100>;
qcom,temp_cool_fastchg_current_ma_low = <1100>;
qcom,pd_temp_cool_fastchg_current_ma_high = <2000>;
@@ -302,14 +302,14 @@
qcom,qc_temp_cool_fastchg_current_ma_low = <2000>;
qcom,little_cool_bat_decidegc = <120>; /*12C~16C*/
qcom,temp_little_cool_vfloat_mv = <4465>;
qcom,temp_little_cool_vfloat_mv = <4460>;
qcom,temp_little_cool_fastchg_current_ma = <1100>;
qcom,pd_temp_little_cool_fastchg_current_ma = <2000>;
qcom,qc_temp_little_cool_fastchg_current_ma = <2000>;
qcom,normal_bat_decidegc = <160>; /*16C~44C*/
qcom,temp_normal_fastchg_current_ma = <1100>;
qcom,temp_normal_vfloat_mv = <4465>;
qcom,temp_normal_vfloat_mv = <4460>;
qcom,pd_temp_normal_fastchg_current_ma = <2000>;
qcom,qc_temp_normal_fastchg_current_ma = <2000>;
@@ -337,13 +337,13 @@
qcom,charger_hv_thr = <11000>;
qcom,charger_recv_thr = <10500>;
qcom,vbatt_hv_thr = <4600>;
qcom,vfloat_step_mv = <8>;
qcom,vfloat_step_mv = <10>;
qcom,non_standard_vfloat_over_sw_limit = <3990>;
qcom,cold_vfloat_over_sw_limit = <4475>;
qcom,little_cold_vfloat_over_sw_limit = <4475>;
qcom,cool_vfloat_over_sw_limit = <4475>;
qcom,little_cool_vfloat_over_sw_limit = <4475>;
qcom,normal_vfloat_over_sw_limit = <4475>;
qcom,cold_vfloat_over_sw_limit = <4465>;
qcom,little_cold_vfloat_over_sw_limit = <4465>;
qcom,cool_vfloat_over_sw_limit = <4465>;
qcom,little_cool_vfloat_over_sw_limit = <4465>;
qcom,normal_vfloat_over_sw_limit = <4465>;
qcom,warm_vfloat_over_sw_limit = <4140>;
qcom,smart_chg_soh_support;
@@ -417,13 +417,13 @@
qcom,default_iterm_ma = <132>;
qcom,default_temp_normal_fastchg_current_ma = <1100>;
qcom,default_normal_vfloat_sw_limit = <4415>;
qcom,default_temp_normal_vfloat_mv = <4465>;
qcom,default_normal_vfloat_over_sw_limit = <4475>;
qcom,default_temp_normal_vfloat_mv = <4460>;
qcom,default_normal_vfloat_over_sw_limit = <4465>;
qcom,default_temp_little_cool_fastchg_current_ma = <1100>;
qcom,default_little_cool_vfloat_sw_limit = <4415>;
qcom,default_temp_little_cool_vfloat_mv = <4465>;
qcom,default_little_cool_vfloat_over_sw_limit = <4475>;
qcom,default_temp_little_cool_vfloat_mv = <4460>;
qcom,default_little_cool_vfloat_over_sw_limit = <4465>;
///qcom,offset_temp = <30>;
//for control:

View File

@@ -392,13 +392,13 @@
prevention,edge_swipe_config = <160 600>;
prevention,curved_screen_V4;
prevention,long_eliminate_point_type = <2 5760 4288 180 12864 300 0>;
prevention,long_eliminate_point_type = <2 5760 4288 140 12864 300 1>;
prevention,long_fingerhold_condition2 = <370 800 0 0>;
prevention,top_corner_config2 =<3 80 420 600 0>;
prevention,hor_long_top_corner_config =<152 1054 0 0>;
prevention,top_middle_config =<5760 527 527 0>;
prevention,corner_eliminate_point_type =<0 640 1054 0>;
prevention,finger_hold_differ_size = <1 0 120 100>;
prevention,corner_eliminate_point_type =<0 640 1054 1>;
prevention,finger_hold_differ_size = <1 0 180 300>;
prevention,finger_hold_max_rx_exit_distance = <5 160 1000>;
prevention,max_rx_exit_distance = <1 5 150 160 800>;
prevention,dynamic_finger_hold_exit_distance = <1 160 1000 320>;
@@ -412,12 +412,12 @@
end_stretch_value = <480 250 16 16>;
touchpanel,tp_ic_type = <2>;
panel_type = <8 8 8>;
panel_type = <8 8 8 8 8>;
// type of tp_dev ,TP-SAMSUNG = 8;
firmware_name = "SS";
platform_support_project = <22811 22861 22862 22863 22864>;
platform_support_project_dir = <22811 22811 22811 22811 22811>;
platform_support_project_commandline = "mdss_dsi_panel_samsung_amb670yf07_1440_3216_dsc_cmd","mdss_dsi_panel_samsung_amb670yf07_cs_1440_3216_dsc_cmd","mdss_dsi_panel_samsung_amb670yf07_fs_1440_3216_dsc_cmd";
platform_support_project_commandline = "mdss_dsi_panel_samsung_amb670yf07_1440_3216_dsc_cmd","mdss_dsi_panel_samsung_amb670yf07_cs_1440_3216_dsc_cmd","mdss_dsi_panel_samsung_amb670yf07_fs_1440_3216_dsc_cmd","mdss_dsi_panel_samsung_amb670yf08_cs_1440_3216_dsc_cmd","mdss_dsi_panel_samsung_amb670yf08_fs_1440_3216_dsc_cmd";
/* SW Support Feature Control */
black_gesture_support;
@@ -469,25 +469,6 @@
};
//#endif /*OPLUS_FEATURE_TP_BASIC*/
//#ifdef OPLUS_FEATURE_DISPLAY
&pmk8550_gpios {
/delete-property/ pinctrl-0;
pinctrl-0 = <&alt_sleep_clk_default &pxlw_clk_default>;
pinctrl-names = "default";
pxlw_clk {
pxlw_clk_default: pxlw_clk_default {
pins = "gpio5";
function = "func2";
input-disable;
output-enable;
bias-disable;
power-source = <0>;
};
};
};
//#endif /* OPLUS_FEATURE_DISPLAY */
&soc {
//#ifdef OPLUS_FEATRUE_ESIM
oplus-gpio {
@@ -599,3 +580,22 @@
};
};
//#endif /* OPLUS_FEATURE_WIFI_SMARTANTENNA */
/* #if defined(CONFIG_PXLW_IRIS) */
&pmk8550_gpios {
/delete-property/ pinctrl-0;
pinctrl-0 = <&alt_sleep_clk_default &pxlw_clk_default>;
pinctrl-names = "default";
pxlw_clk {
pxlw_clk_default: pxlw_clk_default {
pins = "gpio5";
function = "func2";
input-disable;
output-enable;
bias-disable;
power-source = <0>;
};
};
};
/* #endif */

View File

@@ -246,7 +246,7 @@
};
//#endif /*OPLUS_FEATURE_TP_BASIC*/
//#ifdef OPLUS_FEATURE_DISPLAY
/* #if defined(CONFIG_PXLW_IRIS) */
&pmk8550_gpios {
/delete-property/ pinctrl-0;
pinctrl-0 = <&alt_sleep_clk_default &pxlw_clk_default>;
@@ -263,4 +263,4 @@
};
};
};
//#endif /* OPLUS_FEATURE_DISPLAY */
/* #endif */

View File

@@ -19,11 +19,12 @@
};
ssc_interactive: ssc_interactive{
sup-power-fb;
sup-hbm-mode = <1>;
need_lb_algo = <1>;
primary_lb_brl_info {
brl_thrd_num = <2>;
brl_thrd = <500 850>;
brl_thrd = <600 850>;
brl_l2h_thrd = <850>;
};
};

View File

@@ -0,0 +1,66 @@
/**********************************************************************************
* Copyright (c) 2022-2024 Guangdong oplus Mobile Comm Corp., Ltd
* Description: oplus sensor dtsi
*
* Version: 1.0
* Date: 2022-07-04
*
* ------------------------------ Revision History: --------------------------------
* <version> <date> <author> <desc>
***********************************************************************************/
&soc {
//#ifdef OPLUS_FEATURE_SENSOR_SMEM
sensor_fb: sensor_fb {
compatible = "oplus,sensor-feedback";
master-id = <3>;
smem-id = <608>;
};
ssc_interactive {
is-folding-device;
need_lb_algo = <1>;
// big screen
primary_lb_brl_info {
brl_thrd_num = <4>;
brl_thrd = <45 90 270 330>;
};
// small screen
secondary_lb_brl_info {
brl_thrd_num = <2>;
brl_thrd = <850 1000>;
};
};
oplus_sensor {
compatible = "oplus,sensor-devinfo";
/*virtual sensor*/
mag_fusion {
sensor-type = <6>;//OPLUS_MAG_FUSION
is-virtual-sensor;
fusion-type = <1>;//AKM_FUSION
fold-feature = <1>;
};
};
consumer_ir_core {
compatible = "oplus,kookong_ir_core";
status = "okay";
vdd-type = <0>; /*0: internal LDO , 1: external LOD*/
vdd-supply = <&pm_humu_l9>;
vdd-min-vol = <3160000>;
vdd-max-vol = <3160000>;
};
//#endif /*OPLUS_FEATURE_SENSOR_SMEM*/
};
//add for oplus consumerIr SPI mode
&qupv3_se11_spi{
status = "ok";
consumerIr@0 {
compatible = "oplus,kookong_ir_spi";
reg = <0>;
status = "ok";
spi-max-frequency = <5000000>; /*4800000,9600000,15000000,19200000*/
ir-spi-mode = <0>;
};
};

View File

@@ -208,8 +208,8 @@
compatible = "synaptics-s3910";
reg = <0x0>;
chip-name = "S3910";
status = "disabled";
spi-max-frequency = <6000000>;
status = "ok";
spi-max-frequency = <15000000>;
/* Interrupt && Irq-gpio */
interrupt-parent = <&tlmm>;
@@ -231,32 +231,45 @@
touchpanel,max-num-support = <10>;
touchpanel,tx-rx-num = <17 38>;
earsense,tx-rx-num = <17 18>;
touchpanel,panel-coords = <14400 32160>;
touchpanel,display-coords = <1440 3216>;
touchpanel,panel-coords = <14400 31680>;
touchpanel,display-coords = <1440 3168>;
touchpanel,touchmajor-limit = <256 256>;
touchpanel,int-mode = <1>; /*0: interrupt and disable, 1:interrupt and not disable*/
touchpanel,curved-size = <45>;
prevention,curved_screen_V2;
prevention,grip_disable_level = <6>;
prevention,updelay_time_ms = <45>;
prevention,makeup_cnt_weight = <5 1 2 2 2>;
prevention,large_corner_range = <960 2400>;
prevention,large_corner_judge_condition = <850 100 800 7 7>;
prevention,updelay_time_ms = <30>;
prevention,makeup_cnt_weight = <4 1 2 2 2>;
prevention,large_corner_range = <1800 4000>;
prevention,large_corner_judge_condition = <500 300 1300 6 6>;
prevention,trx_reject_condition = <8 7 7>;
prevention,trx_strict_reject_condition = <8 6 6>;
prevention,large_judge_time_ms = <500 50 30>;
prevention,large_exit_condition = <8 8 2>;
prevention,single_channel_width = <160 160>;
prevention,normal_tap_condition = <10 350>;
prevention,long_edge_condition = <240 150 180 80>;
prevention,single_channel_width = <420 420>;
prevention,normal_tap_condition = <10 300>;
prevention,long_edge_condition = <210 90 180 80>;
prevention,long_strict_edge_condition = <160 60>;
prevention,long_fingerhold_condition = <100 6 4 4>;
prevention,long_fingerhold_condition = <50 6 4 4>;
prevention,short_edge_condition = <200 90 180 80>;
prevention,short_strict_edge_condition = <160 60>;
prevention,large_strict_exit_condition = <6 6>;
prevention,top_corner_config = <250 750 100>;
prevention,edge_swipe_config = <150 500>;
prevention,large_strict_exit_condition = <4 4>;
prevention,top_corner_config = <150 500 480>;
prevention,edge_swipe_config = <400 1500>;
prevention,curved_screen_V4;
prevention,long_eliminate_point_type = <2 14400 10560 300 31680 300 1>;
prevention,long_fingerhold_condition2 = <650 2000 0 0>;
prevention,top_corner_config2 =<3 80 600 1500 0>;
prevention,hor_long_top_corner_config =<350 2270 0 0>;
prevention,top_middle_config =<14400 1000 1000 0>;
prevention,corner_eliminate_point_type =<0 1380 2280 1>;
prevention,finger_hold_differ_size = <1 0 400 300>;
prevention,finger_hold_max_rx_exit_distance = <5 350 2300>;
prevention,max_rx_exit_distance = <1 5 150 350 2000>;
prevention,dynamic_finger_hold_exit_distance = <1 350 2300 450>;
prevention,edge_sliding_matched_support = <1 250 3 0>;
touchpanel,smooth-level = <0 1 2 4 7 9>;
touchpanel,smooth-level-charging = <0 2 4 7 8 9>;
@@ -265,8 +278,7 @@
touchpanel,high-frame-rate-time = <60>;
end_stretch_value = <480 250 16 16>;
touchpanel,tp_ic_type = <2>;
//touchpanel,tp_ic_type = <2>;
panel_type = <8 8 8>;
// type of tp_dev ,TP-SAMSUNG = 8;
firmware_name = "AA367", "AA367";
@@ -299,6 +311,7 @@
spi_port_support;
exception_upload_support;
sportify_aod_gesture_support;
glove_mode_support;
/*
*Virtual Key Config:
@@ -319,8 +332,8 @@
S3910 {
switch_report_rate;
report_rate_default = <60>;
report_rate_game_value = <1>;
fps_report_rate = <60 2 90 1 120 3>;//1:360Hz 2:125Hz 3:240Hz
report_rate_game_value = <3>;
fps_report_rate = <60 2 90 3 120 3>;//1:360Hz 2:125Hz 3:240Hz
default_gesture_mask = <8191>;
fwupdate_bootloader = <1>;
normal_config_version = <2>;
@@ -331,8 +344,9 @@
compatible = "synaptics,tcm-spi-hbp";
reg = <0x0>;
chip-name = "S3910";
status = "okay";
status = "disabled";
spi-max-frequency = <15000000>;
qcom,rt;
/* Interrupt && Irq-gpio */
interrupt-parent = <&tlmm>;
@@ -363,8 +377,8 @@
synaptics,power-delay-ms = <200>;
synaptics,irq-on-state = <0>;
synaptics,reset-on-state = <0>;
synaptics,reset-active-ms = <20>;
synaptics,reset-delay-ms = <200>;
synaptics,reset-active-ms = <10>;
synaptics,reset-delay-ms = <80>;
synaptics,spi-mode = <0>;
synaptics,spi-byte-delay-us = <0>;
synaptics,spi-block-delay-us = <0>;

View File

@@ -0,0 +1,559 @@
&qupv3_se10_i2c {
status = "disabled";
};
&qupv3_se10_spi{
/delete-property/ pinctrl-0;
/delete-property/ pinctrl-1;
pinctrl-0 = <&qupv3_se10_spi_mosi_active>, <&qupv3_se10_spi_miso_active>,
<&qupv3_se10_spi_clk_active>, <&qupv3_se10_spi_cs_active>;
pinctrl-1 = <&qupv3_se10_spi_sleep>, <&qupv3_se10_spi_cs_sleep>;
};
&soc {
devinfo {
status = "disabled";
};
devinfo_xueying {
compatible = "oplus-devinfo";
pinctrl-names = "default", "sleep", "active", "idle";
pinctrl-0 = <&hw_pins_default>;
pinctrl-1 = <&aboard_pin_gpio0_sleep>;
pinctrl-2 = <&aboard_pin_gpio0_active>;
pinctrl-3 = <&aboard_pin_gpio0_idle>;
main-sub {
compatible = "hw-match, main-sub";
use_tristate_gpio;
aboard-gpio0 = <&tlmm 126 0>;
aboard-patterns = <0 0 0>; /*0[high-resistance] 1[pull-down] 2[pull-up]*/
/*main board*/
match-projects = <22003 22203 22899>;
};
};
};
&tlmm {
//#ifdef OPLUS_FEATURE_TP_BASIC
//#ifdef OPLUS_FEATURE_ABOARD
hw_pins_default:hw_pins_default {
};
aboard_pin_gpio0_sleep:aboard_pin_gpio0_sleep {
mux {
pins = "gpio126";
function = "gpio";
};
config {
pins = "gpio126";
drive-strength = <2>;
bias-pull-down;
input-enable;
};
};
aboard_pin_gpio0_active:aboard_pin_gpio0_active {
mux {
pins = "gpio126";
function = "gpio";
};
config {
pins = "gpio126";
drive-strength = <2>;
bias-pull-up;
input-enable;
};
};
aboard_pin_gpio0_idle:aboard_pin_gpio0_idle {
mux {
pins = "gpio126";
function = "gpio";
};
config {
pins = "gpio126";
bias-disable;
input-enable;
};
};
//#ifdef OPLUS_FEATURE_TRI_KEY
uphall_tri_state_key_active: uphall_tri_state_key_active {
mux {
pins = "gpio17";
function = "gpio";
};
config {
pins = "gpio17";
drive-strength = <2>;
bias-pull-up;
};
};
downhall_tri_state_key_active: downhall_tri_state_key_active {
mux {
pins = "gpio14";
function = "gpio";
};
config {
pins = "gpio14";
drive-strength = <2>;
bias-pull-up;
};
};
/*gpio_wakeup: gpio_wakeup {
compatible = "gpio_wakeup";
gpio_table = <4 5 7 10 11 42 57 64 67 68
70 71 92 98 117 126 144 145
151 152 153 155 159 160 161
171 172 173 178 181 194 195
205 206 207>;
};
*/
/* add primary for touchscreen */
pmx_ts_int_active_primary {
ts_int_active_primary: ts_int_active_primary {
mux {
pins = "gpio25";
function = "gpio";
};
config {
pins = "gpio25";
drive-strength = <8>;
bias-disable;
input-enable;
};
};
};
pmx_ts_int_suspend_primary {
ts_int_suspend_primary: ts_int_suspend_primary {
mux {
pins = "gpio25";
function = "gpio";
};
config {
pins = "gpio25";
drive-strength = <8>;
//bias-pull-down;
bias-pull-up;
input-enable;
};
};
};
pmx_ts_reset_active_primary {
ts_reset_active_primary: ts_reset_active_primary {
mux {
pins = "gpio24";
function = "gpio";
};
config {
pins = "gpio24";
drive-strength = <8>;
output-low;
bias-disable;
};
};
};
pmx_ts_reset_suspend_primary {
ts_reset_suspend_primary: ts_reset_suspend_primary {
mux {
pins = "gpio24";
function = "gpio";
};
config {
pins = "gpio24";
drive-strength = <2>;
bias-pull-down;
};
};
};
//#endif
pmx_ts_int_active_secondary {
ts_int_active_secondary: ts_int_active_secondary {
mux {
pins = "gpio174";
function = "gpio";
};
config {
pins = "gpio174";
drive-strength = <8>;
bias-pull-up;
input-enable;
};
};
};
qupv3_se10_spi_pins: qupv3_se10_spi_pins {
qupv3_se10_spi_miso_active: qupv3_se10_spi_miso_active {
mux {
pins = "gpio64";
function = "qup2_se2_l0";
};
config {
pins = "gpio64";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se10_spi_mosi_active: qupv3_se10_spi_mosi_active {
mux {
pins = "gpio65";
function = "qup2_se2_l1";
};
config {
pins = "gpio65";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se10_spi_clk_active: qupv3_se10_spi_clk_active {
mux {
pins = "gpio66";
function = "qup2_se2_l2";
};
config {
pins = "gpio66";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se10_spi_cs_active: qupv3_se10_spi_cs_active {
mux {
pins = "gpio67";
function = "qup2_se2_l3";
};
config {
pins = "gpio67";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se10_spi_sleep: qupv3_se10_spi_sleep {
mux {
pins = "gpio64", "gpio65",
"gpio66";
function = "gpio";
};
config {
pins = "gpio64", "gpio65",
"gpio66";
drive-strength = <6>;
bias-disable;
};
};
qupv3_se10_spi_cs_sleep: qupv3_se10_spi_cs_sleep {
mux {
pins = "gpio67";
function = "gpio";
};
config {
pins = "gpio67";
drive-strength = <6>;
bias-disable;
output-high;
};
};
};
};
&pm8550ve_f_gpios {
ts_reset_active_secondary: ts_reset_active_secondary {
pins = "gpio7";
function = "normal";
bias-disable;
output-low;
power-source = <1>;
};
};
&pm8550b_gpios {
ts_avdd_active_secondary: ts_avdd_active_secondary {
pins = "gpio12";
function = "normal";
bias-disable;
input-disable;
output-enable;
output-high;
power-source = <0>;
};
};
&qupv3_se9_i2c {
status = "ok";
qcom,clk-freq-out = <400000>;
magnachip@0C {
compatible = "oplus,hall-mxm1120,up";
reg = <0x0C>;
vdd-supply = <&L2B>;
vio-supply = <&L1B>;
magnachip,init-interval = <200>;
interrupt-parent = <&tlmm>;
interrups = <17 0x02>;
dhall,irq-gpio = <&tlmm 17 0x2008>;
pinctrl-names = "uphall_tri_state_key_active";
pinctrl-0 = <&uphall_tri_state_key_active>;
};
magnachip@0D {
compatible = "oplus,hall-mxm1120,down";
reg = <0x0D>;
vdd-supply = <&L2B>;
vio-supply = <&L1B>;
magnachip,init-interval = <200>;
interrupt-parent = <&tlmm>;
interrups = <14 0x02>;
dhall,irq-gpio = <&tlmm 14 0x2008>;
pinctrl-names = "downhall_tri_state_key_active";
pinctrl-0 = <&downhall_tri_state_key_active>;
};
};
//#ifdef /*OPLUS_FEATURE_TP_BASIC*/
&qupv3_se4_i2c {
status = "disabled";
};
&qupv3_se4_spi {
status = "ok";
#address-cells = <1>;
#size-cells = <0>;
qcom,spi-touch-active = "goodix-gt9966";
//qcom,la-vm;
/delete-node/ focaltech@0;
focaltech@0 {
status = "disabled";
};
st_fts@49 {
status = "disabled";
};
focaltech@38 {
status = "disabled";
};
novatek@0 {
status = "disabled";
};
goodix_gt9966@0 {
status = "ok";
compatible = "goodix-gt9966";
reg = <0x0>;
spi-max-frequency = <12000000>;
chip-name = "GT9966";
/* Interrupt && Irq-gpio */
irq-gpio = <&tlmm 25 0x2002>;
interrupt-parent = <&tlmm>;
interrupts = <25 0x2002>;
reset-gpio = <&tlmm 24 0x1>;
/* Power Config */
enable2v8_gpio = <&tlmm 10 0x1>;
vcc_1v8-supply = <&L4B>;
/* Other HW Resource */
pinctrl-names = "default";
pinctrl-0 = <&ts_int_active_primary &ts_reset_active_primary>;
touchpanel,max-num-support = <10>;
touchpanel,tx-rx-num = <36 38>;
earsense,tx-rx-num = <36 38>;
touchpanel,panel-coords = <24400 22680>;
touchpanel,display-coords = <2440 2268>;
touchpanel,touchmajor-limit = <128 216>;
touchpanel,single-optimized-time = <8>;
touchpanel,high-frame-rate-time = <60>;
project_id = <22003>;
vid_len = <2>;
touchpanel,tp-index = <0>;
touchpanel,tp_ic_type = <2>;
panel_type = <3>; // type of tp_dev ,TP-BOE = 3;
firmware_name = "AC052", "AC052", "AC052";
platform_support_project = <22003 22203 22899>;
platform_support_project_dir = <22003 22003 22003>;
platform_support_project_commandline = "default_commandline", "default_commandline", "default_commandline";
//black_gesture_support;
pressure_report_support;
charger_pump_support;
//game_switch_support;
//smart_gesture_support;
spi_port_support;
fw_update_app_support;
//fingerprint_underscreen_support;
//freq_hop_simulate_support;
report_flow_unlock_support;
//screenoff_fingerprint_info_support;
irq_need_dev_resume_ok;
//enable_point_auto_change;
//report_rate_white_list_support;
//kernel_grip_support;
exception_upload_support;
//grip_no_driver_support;
//health_monitor_support;
//black_gesture_indep_support;
//algorithm_support;
//snr_read_support;
//touchpanel,get_motor_coord = <0 370 70>;
//sportify_aod_gesture_support;
//pen_support;
/*
*Virtual Key Config:
*1:touchpanel,button-type: <virtualkey_type supportted_button-map>
*virtualkey_type:
*Type 1: using board_properties
*Type 2: using same IC (button zone&& touch zone are seprate)
*Type 3: using diffrent IC (button zone&& touch zone are seprate)
*Type 4: No need of virtual key process
*supportted_button-map:select|menu|home|back
*
*2:touchpanel,button-map
*type (X1,Y1)(X2,Y2)(X3,Y3)(Width_X,Hight_Y)--Only when button-type is 0
*/
touchpanel,button-type = <4>;
touchpanel.button-TRx = <0 0>;
GT9966 {
support_gesture_type = <0x10002>;
support_disp_rate = <60 120>;
};
};
//#endif /*OPLUS_FEATURE_TP_BASIC*/
};
&qupv3_se10_spi {
status = "ok";
qcom,spi-touch-active = "goodix-gt9916";
#address-cells = <1>;
#size-cells = <0>;
/delete-node/ focaltech@0;
goodix-berlin@5d {
status = "disabled";
};
focaltech@0 {
status = "disabled";
};
synaptics_tcm@0{
compatible = "goodix-gt9916";
reg = <0x0>;
chip-name = "GT9916";
status = "ok";
spi-max-frequency = <12000000>;
/* Interrupt && Irq-gpio */
interrupt-parent = <&tlmm>;
interrupts = <174 0x2008>;
/* Power Config */
enable2v8_gpio = <&pm8550b_gpios 12 0x1>;
vcc_1v8-supply = <&L4B>;
/* Other HW Resource */
irq-gpio = <&tlmm 174 0x2008>;
reset-gpio = <&pm8550ve_f_gpios 7 0x1>;
pinctrl-names = "default";
pinctrl-0 = <&ts_avdd_active_secondary &ts_int_active_secondary &ts_reset_active_secondary>;
touchpanel,max-num-support = <10>;
touchpanel,tx-rx-num = <18 40>;
earsense,tx-rx-num = <18 40>;
touchpanel,panel-coords = <11160 24840>;
touchpanel,display-coords = <1116 2484>;
touchpanel,touchmajor-limit = <256 256>;
touchpanel,int-mode = <1>; /*0: interrupt and disable, 1:interrupt and not disable*/
touchpanel,curved-size = <45>;
touchpanel,single-optimized-time = <8>;
touchpanel,high-frame-rate-time = <60>;
project_id = <22003>;
vid_len = <2>;
touchpanel,tp-index = <1>;
touchpanel,tp_ic_type = <2>;
panel_type = <3>; // type of tp_dev ,TP-BOE = 3;
firmware_name = "AC052", "AC052", "AC052";
platform_support_project = <22003 22203 22899>;
platform_support_project_dir = <22003 22003 22003>;
platform_support_project_commandline = "default_commandline", "default_commandline", "default_commandline";
/* SW Support Feature Control */
//black_gesture_support;
//fw_edge_limit_support;
pressure_report_support;
//charger_pump_support;
//game_switch_support;
//smart_gesture_support;
fw_update_app_support;
freq_hop_simulate_support;
report_flow_unlock_support;
irq_need_dev_resume_ok;
//firmware_in_dts;
enable_point_auto_change;
//grip_no_driver_support;
//health_monitor_support;
//black_gesture_indep_support;
spi_port_support;
/*
*Virtual Key Config:
*1:touchpanel,button-type: <virtualkey_type supportted_button-map>
*virtualkey_type:
*Type 1: using board_properties
*Type 2: using same IC (button zone&& touch zone are seprate)
*Type 3: using diffrent IC (button zone&& touch zone are seprate)
*Type 4: No need of virtual key process
*supportted_button-map:select|menu|home|back
*
*2:touchpanel,button-map
*type (X1,Y1)(X2,Y2)(X3,Y3)(Width_X,Hight_Y)--Only when button-type is 0
*/
touchpanel,button-type = <4>;
touchpanel.button-TRx = <0 0>;
S3910 {
switch_report_rate;
report_rate_default = <60>;
report_rate_game_value = <1>;
fps_report_rate = <60 2 90 1 120 3>;//1:360Hz 2:125Hz 3:240Hz
default_gesture_mask = <8191>;
fwupdate_bootloader = <1>;
normal_config_version = <2>;
};
};
};
//#endif /*OPLUS_FEATURE_TP_BASIC*/

View File

@@ -0,0 +1,57 @@
&soc {
// #ifdef OPLUS_FEATURE_UFF_FINGERPRINT
fingerprint_dev {
status = "ok";
compatible = "oplus,fp_spi";
interrupt-parent = <&tlmm>;
interrupts = <40 0>;
power-mode = <1> ; /*0: power mode not set, 1: ldo power, 2: gpio power, 3: auto power */
ldo-supply = <&L14B>;
ldo-config = <3008000 3008000 150000>;
uff,gpio_irq = <&tlmm 40 0x1>;
uff,gpio_reset = <&tlmm 42 0x0>;
pinctrl-names = "default";
pinctrl-0 = <&fp_irq_gpio_default>,<&fp_reset_gpio_default>;
notify_tpinfo_flag = <1>;
power-num = <1>;
power_source_1 {
power-mode = <1>;
power-name = "ldo";
power-config = "ldo-config";
delay-time = <0>;
};
};
//#endif /*OPLUS_FEATURE_UFF_FINGERPRINT*/
};
&tlmm {
// #ifdef OPLUS_FEATURE_UFF_FINGERPRINT
fingerprint_dev{
fp_irq_gpio_default: fp_irq_gpio_default {
mux {
pins = "gpio40";
function = "gpio";
};
config {
pins = "gpio40";
drive-strength = <2>;
bias-disable;
input-enable;
};
};
fp_reset_gpio_default: fp_reset_gpio_default {
mux {
pins = "gpio42";
function = "gpio";
};
config {
pins = "gpio42";
drive-strength = <2>;
bias-disable;
output-low;
};
};
};
//#endif /*OPLUS_FEATURE_UFF_FINGERPRINT*/
};

View File

@@ -31,35 +31,6 @@
};
};
//#endif /* OPLUS_FEATURE_RF_CABLE_DETECT */
//#ifdef OPLUS_FEATURE_BT_SMART_ANTENNA
oplus_bsa_pins {
bt_bsa_high: bt_bsa_high {
mux {
pins = "gpio98";
function = "gpio";
};
config {
pins = "gpio98";
drive-strength = <2>;
output-high;
bias-pull-up;
};
};
bt_bsa_low: bt_bsa_low {
mux {
pins = "gpio98";
function = "gpio";
};
config {
pins = "gpio98";
drive-strength = <2>;
output-low;
bias-pull-down;
};
};
};
//#endif
};
&soc {
@@ -74,15 +45,4 @@
pinctrl-0 = <&rf_cable0_active>;
};
//#endif /* OPLUS_FEATURE_RF_CABLE_DETECT */
//#ifdef OPLUS_FEATURE_BT_SMART_ANTENNA
oplus_bsa {
compatible = "oplus-bt-bsa";
bt-bsa-gpio = <&tlmm 98 0>;
pinctrl-names = "bt_bsa_high", "bt_bsa_low";
pinctrl-0 = <&bt_bsa_high>;
pinctrl-1 = <&bt_bsa_low>;
vdd-supply = <&L15B>;
};
//#endif
};

View File

@@ -152,6 +152,7 @@
};
&pm8550ve_f_gpios {
cam_sensor_laser_intr_active: cam_sensor_laser_intr_active {
pins = "gpio6";
function = "normal";
@@ -168,6 +169,16 @@
power-source = <1>; /* 1.8V */
qcom,drive-strength = <2>;
};
cam_sensor_laser_enable: cam_sensor_laser_enable {
pins = "gpio5";
function = "normal";
bias-disable;
power-source = <1>;
output-high;
qcom,drive-strength = <2>;
};
};
&qupv3_se0_i2c {
@@ -176,9 +187,10 @@
reg = <0x41>;
tof,tof_poll_period = <0xA>; /*poll period (100 usec)*/
laser_vdd-supply = <&L6M>;
pinctrl-names = "laser_default", "laser_suspend";
pinctrl-names = "laser_default", "laser_suspend", "default";
pinctrl-0 = <&cam_sensor_laser_intr_active>;
pinctrl-1 = <&cam_sensor_laser_intr_suspend>;
pinctrl-2 = <&cam_sensor_laser_enable>;
interrupt-parent = <&pm8550ve_f_gpios>;
enable-gpios = <&pm8550ve_f_gpios 5 0>;
irq-gpios = <&pm8550ve_f_gpios 6 0>;

View File

@@ -0,0 +1,88 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/oplus/hw-id.h>
#include "../qcom/kalama-mtp-overlay.dts"
#include "kalama_overlay_common.dtsi"
#include "xueying_overlay_common.dtsi"
#include "oplus_chg/oplus-chg-22003.dtsi"
#include "sensor/xueying-sensor-22003.dtsi"
#include "uff_sm8550_22003.dtsi"
#include "nfc/xueying_nfc_sn220.dtsi"
#include "tp/xueying-oplus_tp-22003.dtsi"
/ {
model = "Qualcomm Technologies, Inc. Kalama MTP,xueying";
oplus,project-id = <22003 22203 22899>;
oplus,hw-id = <OPLUS_EVB1 OPLUS_T0 OPLUS_EVT1 OPLUS_EVT2 OPLUS_DVT1 OPLUS_DVT2 OPLUS_PVT1 OPLUS_MP1>;
};
&tlmm {
//#ifdef OPLUS_FEATURE_RF_CABLE_DETECT
rf_cable0_active: rf_cable0_active {
mux {
pins = "gpio51";
function = "gpio";
};
config {
pins = "gpio51";
drive-strength = <2>;
input-enable;
bias-pull-up;
};
};
//#endif /* OPLUS_FEATURE_RF_CABLE_DETECT */
//#ifdef OPLUS_FEATURE_BT_SMART_ANTENNA
oplus_bsa_pins {
bt_bsa_high: bt_bsa_high {
mux {
pins = "gpio98";
function = "gpio";
};
config {
pins = "gpio98";
drive-strength = <2>;
output-high;
bias-pull-up;
};
};
bt_bsa_low: bt_bsa_low {
mux {
pins = "gpio98";
function = "gpio";
};
config {
pins = "gpio98";
drive-strength = <2>;
output-low;
bias-pull-down;
};
};
};
//#endif
};
&soc {
//#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 51 0>;
rf,cable-support-timer = <0>;
pinctrl-names = "rf_cable_active";
pinctrl-0 = <&rf_cable0_active>;
};
//#endif /* OPLUS_FEATURE_RF_CABLE_DETECT */
//#ifdef OPLUS_FEATURE_BT_SMART_ANTENNA
oplus_bsa {
compatible = "oplus-bt-bsa";
bt-bsa-gpio = <&tlmm 98 0>;
pinctrl-names = "bt_bsa_high", "bt_bsa_low";
pinctrl-0 = <&bt_bsa_high>;
pinctrl-1 = <&bt_bsa_low>;
vdd-supply = <&L15B>;
};
//#endif
};

View File

@@ -0,0 +1,200 @@
// Add the thermistors of explorer and svooc
&pmk8550_vadc {
pinctrl-0 = <&pm8550_svooc_therm_default>;
pinctrl-names = "default";
pm8550_svooc_therm {
reg = <PM8550_ADC5_GEN3_AMUX4_GPIO12_100K_PU>;
label = "pm8550_svooc_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
qcom,adc-tm-type = <1>;
};
};
&pm8550_gpios {
pm8550_svooc_therm {
pm8550_svooc_therm_default: pm8550_svooc_therm_default {
pins = "gpio12";
function = "normal"; //normal
bias-high-impedance;
bias-disable;
};
};
};
/*
&pmk8550_vadc {
pm8550_exp2_therm {
reg = <PM8550_ADC5_GEN3_AMUX_THM6_GPIO2_100K_PU>;
label = "pm8550_exp2_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
qcom,adc-tm-type = <1>;
};
};
*/
&thermal_zones {
pm8550_exp2_usr {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX_THM6_GPIO2_100K_PU>;
wake-capable-sensor;
trips {
active-config0 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
pm8550_svooc_usr {
polling-delay-passive = <0>;
polling-delay = <0>;
thermal-governor = "user_space";
thermal-sensors = <&pmk8550_vadc PM8550_ADC5_GEN3_AMUX4_GPIO12_100K_PU>;
wake-capable-sensor;
trips {
active-config0 {
temperature = <125000>;
hysteresis = <1000>;
type = "passive";
};
};
};
};
&soc {
//#ifdef OPLUS_FEATRUE_ESIM
oplus-gpio {
compatible = "oplus,oplus-gpio";
pinctrl-names = "default", "sim2_det_no_pull", "sim2_det_pull_high", "sim2_det_pull_low";
pinctrl-0 = <&esim_gpio &esim_det_gpio &sim2_det_no_pull>;
pinctrl-1 = <&sim2_det_no_pull>;
pinctrl-2 = <&sim2_det_pull_high>;
pinctrl-3 = <&sim2_det_pull_low>;
oplus,oplus-gpio-esim = <&pm8550vs_g_gpios 4 0>;
oplus,oplus-esim-det = <&pm8550_gpios 9 0>;
oplus,oplus-sim2-det = <&pm8550vs_c_gpios 5 0>;
oplus,uim-reset-pin = "modem_solution";
};
//#endif /* OPLUS_FEATRUE_ESIM */
oplus_sim_detect {
compatible = "oplus, sim_detect";
Hw,sim_det = "modem_det";
};
//#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 */
midas_pdev {
compatible = "oplus,midas-pdev";
};
};
&pm8550vs_c_gpios {
sim2_det_no_pull: sim2_det_no_pull {
pins = "gpio5";
function = "normal";
input-enable;
power-source = <1>;
bias-disable;
};
sim2_det_pull_high: sim2_det_pull_high {
pins = "gpio5";
function = "normal";
input-enable;
power-source = <1>;
bias-pull-up;
};
sim2_det_pull_low: sim2_det_pull_low {
pins = "gpio5";
function = "normal";
input-enable;
power-source = <1>;
bias-pull-down;
};
};
&pm8550vs_g_gpios {
esim_gpio: esim_gpio {
pins = "gpio4";
function = "normal";
bias-disable; /* NO pull */
qcom,drive-strength = <2>; /* 2 MA */
output-high;
};
};
&pm8550_gpios {
esim_det_gpio: esim_det_gpio {
pins = "gpio9";
function = "normal";
bias-disable; /* NO pull */
qcom,drive-strength = <2>; /* 2 MA */
output-high;
};
};
&pm8550ve_f_gpios {
cam_sensor_laser_intr_active: cam_sensor_laser_intr_active {
pins = "gpio6";
function = "normal";
bias-disable;
power-source = <1>; /* 1.8V */
qcom,drive-strength = <2>;
};
cam_sensor_laser_intr_suspend: cam_sensor_laser_intr_suspend {
pins = "gpio6";
function = "normal";
bias-pull-down; /* PULL DOWN */
output-low;
power-source = <1>; /* 1.8V */
qcom,drive-strength = <2>;
};
cam_sensor_laser_enable: cam_sensor_laser_enable {
pins = "gpio5";
function = "normal";
bias-disable;
power-source = <1>;
output-high;
qcom,drive-strength = <2>;
};
};
&qupv3_se0_i2c {
tof8801: tof8801@41 {
compatible = "ams,tof8801";
reg = <0x41>;
tof,tof_poll_period = <0xA>; /*poll period (100 usec)*/
laser_vdd-supply = <&L6M>;
pinctrl-names = "laser_default", "laser_suspend", "default";
pinctrl-0 = <&cam_sensor_laser_intr_active>;
pinctrl-1 = <&cam_sensor_laser_intr_suspend>;
pinctrl-2 = <&cam_sensor_laser_enable>;
interrupt-parent = <&pm8550ve_f_gpios>;
enable-gpios = <&pm8550ve_f_gpios 5 0>;
irq-gpios = <&pm8550ve_f_gpios 6 0>;
status = "ok";
};
};