Files
kernel_oneplus_sm8550-devic…/oplus/salami_overlay_common.dtsi
2023-09-18 21:23:08 +01:00

602 lines
14 KiB
Plaintext

&tlmm {
//#ifdef OPLUS_FEATURE_TP_BASIC
pmx_ts_int_active {
ts_int_active: ts_int_active {
mux {
pins = "gpio25";
function = "gpio";
};
config {
pins = "gpio25";
drive-strength = <8>;
bias-pull-up;
input-enable;
};
};
};
pmx_ts_reset_active {
ts_reset_active: ts_reset_active {
mux {
pins = "gpio24";
function = "gpio";
};
config {
pins = "gpio24";
drive-strength = <8>;
output-low;
bias-disable;
};
};
};
uphall_tri_state_key_active: uphall_tri_state_key_active {
mux {
pins = "gpio14";
function = "gpio";
};
config {
pins = "gpio14";
drive-strength = <2>;
bias-pull-up;
};
};
downhall_tri_state_key_active: downhall_tri_state_key_active {
mux {
pins = "gpio17";
function = "gpio";
};
config {
pins = "gpio17";
drive-strength = <2>;
bias-pull-up;
};
};
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;
};
};
aboard_pin_gpio1_sleep:aboard_pin_gpio1_sleep {
mux {
pins = "gpio91";
function = "gpio";
};
config {
pins = "gpio91";
drive-strength = <2>;
bias-pull-down;
input-enable;
};
};
aboard_pin_gpio1_active:aboard_pin_gpio1_active {
mux {
pins = "gpio91";
function = "gpio";
};
config {
pins = "gpio91";
drive-strength = <2>;
bias-pull-up;
input-enable;
};
};
aboard_pin_gpio1_idle:aboard_pin_gpio1_idle {
mux {
pins = "gpio91";
function = "gpio";
};
config {
pins = "gpio91";
bias-disable;
input-enable;
};
};
};
// 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 {
devinfo {
status = "disabled";
};
devinfo_wukong {
status = "disabled";
};
devinfo_salami {
compatible = "oplus-devinfo";
pinctrl-names = "default", "sleep", "active", "idle",
"gpio1_sleep", "gpio1_active", "gpio1_idle";
pinctrl-0 = <&hw_pins_default>;
pinctrl-1 = <&aboard_pin_gpio0_sleep>;
pinctrl-2 = <&aboard_pin_gpio0_active>;
pinctrl-3 = <&aboard_pin_gpio0_idle>;
pinctrl-4 = <&aboard_pin_gpio1_sleep>;
pinctrl-5 = <&aboard_pin_gpio1_active>;
pinctrl-6 = <&aboard_pin_gpio1_idle>;
main-sub {
compatible = "hw-match, main-sub";
use_double_tristate_gpio;
aboard-gpio0 = <&tlmm 126 0>;
aboard-patterns = <0 0 1 2 2>; /*0[high-resistance] 1[pull-down] 2[pull-up]*/
/*region id*/
region-patterns = <21 21 22 23 23>; /*21[CN/IN] 22[EU] 23[NA/TMO]*/
/*main board*/
match-projects = <22811 22861 22861 22861 22864>;
};
main-sub-a2 {
compatible = "hw-match, main-sub-a2";
use_double_tristate_gpio;
aboard-gpio1 = <&tlmm 91 0>;
aboard-patterns = <0 0 0 2 2>; /*0[high-resistance] 1[pull-down] 2[pull-up]*/
/*region id*/
region-patterns = <21 21 22 23 23>; /*21[CN/IN] 22[EU] 23[NA/TMO]*/
/*main board*/
match-projects = <22811 22861 22861 22861 22864>;
};
};
//#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";
};
};
&qupv3_se9_i2c {
status = "ok";
qcom,clk-freq-out = <400000>;
ist8801@19 {
compatible = "oplus,hall-ist8801,up";
reg = <0x19>;
dhall,id = <1>;
vdd-supply = <&L2B>;
vio-supply = <&L1B>;
magnachip,init-interval = <200>;
interrupt-parent = <&tlmm>;
interrups = <14 0x02>;
dhall,irq-gpio = <&tlmm 14 0x2008>;
pinctrl-names = "uphall_tri_state_key_active";
pinctrl-0 = <&uphall_tri_state_key_active>;
};
ist8801@18 {
compatible = "oplus,hall-ist8801,down";
reg = <0x18>;
dhall,id = <2>;
vdd-supply = <&L2B>;
vio-supply = <&L1B>;
magnachip,init-interval = <200>;
interrupt-parent = <&tlmm>;
interrups = <17 0x02>;
dhall,irq-gpio = <&tlmm 17 0x2008>;
pinctrl-names = "downhall_tri_state_key_active";
pinctrl-0 = <&downhall_tri_state_key_active>;
};
magnachip@0D {
compatible = "oplus,hall-mxm1120,up";
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 = "uphall_tri_state_key_active";
pinctrl-0 = <&uphall_tri_state_key_active>;
};
magnachip@0C {
compatible = "oplus,hall-mxm1120,down";
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 = "downhall_tri_state_key_active";
pinctrl-0 = <&downhall_tri_state_key_active>;
};
};
&L14B {
regulator-min-microvolt = <2800000>;
qcom,init-voltage = <3008000>;
};
&qupv3_se4_i2c {
#address-cells = <1>;
#size-cells = <0>;
status = "ok";
qcom,i2c-touch-active = "synaptics-s3908";
goodix-berlin@5d {
status = "disabled";
};
mtp_21001:synaptics20031@4B {
compatible = "synaptics-s3908";
reg = <0x4B>;
chip-name = "S3908";
/* Interrupt && Irq-gpio */
interrupt-parent = <&tlmm>;
interrupts = <25 0x2008>;
/* Power Config */
enable2v8_gpio = <&tlmm 10 0x1>;
//enable1v8_gpio = <&tlmm 97 0x1>;
//vdd_2v8-supply = <&L14B>;
vcc_1v8-supply = <&L4B>;
vdd_2v8_volt = <3008000>;
/* Other HW Resource */
irq-gpio = <&tlmm 25 0x2008>;
reset-gpio = <&tlmm 24 0x1>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_active &ts_reset_active>;
touchpanel,max-num-support = <10>;
touchpanel,tx-rx-num = <17 38>;
earsense,tx-rx-num = <17 18>;
touchpanel,panel-coords = <5760 12864>;
touchpanel,display-coords = <1440 3216>;
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 = <30>;
prevention,makeup_cnt_weight = <4 1 2 2 2>;
prevention,large_corner_range = <640 1581>;
prevention,large_corner_judge_condition = <500 400 600 4 4>;
prevention,trx_reject_condition = <8 7 7>;
prevention,trx_strict_reject_condition = <8 5 5>;
prevention,large_judge_time_ms = <500 50 40>;
prevention,large_exit_condition = <8 8 2>;
prevention,single_channel_width = <160 160>;
prevention,normal_tap_condition = <10 300>;
prevention,long_edge_condition = <230 90 180 80>;
prevention,long_strict_edge_condition = <160 60>;
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 = <2 2>;
prevention,top_corner_config = <280 800 240>;
prevention,edge_swipe_config = <160 600>;
prevention,curved_screen_V4;
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 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>;
touchpanel,smooth-level = <0 1 2 4 7 9>;
touchpanel,smooth-level-charging = <0 2 4 7 8 9>;
touchpanel,sensitive-level = <0 70 55 40 25 10>;
touchpanel,single-optimized-time = <8>;
touchpanel,high-frame-rate-time = <60>;
end_stretch_value = <480 250 16 16>;
touchpanel,tp_ic_type = <2>;
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","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;
//fw_edge_limit_support;
pressure_report_support;
charger_pump_support;
game_switch_support;
smart_gesture_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;
//grip_no_driver_support;
health_monitor_support;
black_gesture_indep_support;
algorithm_support;
snr_read_support;
exception_upload_support;
sportify_aod_gesture_support;
major_rate_limit_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>;
S3908 {
report_rate_default = <60>;
report_rate_game_value = <2>;
default_gesture_mask = <8191>;
fwupdate_bootloader = <1>;
};
};
};
//#endif /*OPLUS_FEATURE_TP_BASIC*/
&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";
};
};
&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;
};
};
//#ifdef OPLUS_FEATURE_WIFI_SMARTANTENNA
&tlmm {
oplus_wsa_pins {
cnss_wlan_wsa_high: cnss_wlan_wsa_high {
mux {
pins = "gpio98";
function = "gpio";
};
config {
pins = "gpio98";
drive-strength = <2>;
output-high;
bias-pull-up;
};
};
cnss_wlan_wsa_low: cnss_wlan_wsa_low {
mux {
pins = "gpio98";
function = "gpio";
};
config {
pins = "gpio98";
drive-strength = <2>;
output-low;
bias-pull-down;
};
};
};
};
&soc {
oplus_wsa: oplus,wlan-wsa {
compatible = "oplus,wlan-wsa";
wlan-wsa-gpio = <&tlmm 98 0>;
pinctrl-names = "cnss_wlan_wsa_high", "cnss_wlan_wsa_low";
pinctrl-0 = <&cnss_wlan_wsa_high>;
pinctrl-1 = <&cnss_wlan_wsa_low>;
vdd-supply = <&L15B>;
};
};
//#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 */